Merged older paper pi with the newer, with some recent updates.
This commit is contained in:
@@ -8,7 +8,11 @@
|
||||
<div class="ui container">
|
||||
<div class="ui one column middle aligned stackable grid">
|
||||
<div class="ui column">
|
||||
<h2><a href="/">Lista</a> » Edycja notatki</h2>
|
||||
@if($type == 'template')
|
||||
<h2><a href="/">Lista</a> » Edycja szablonu</h2>
|
||||
@else
|
||||
<h2><a href="/">Lista</a> » Edycja notatki</h2>
|
||||
@endif
|
||||
@include('form.create')
|
||||
<br><br>
|
||||
</div>
|
||||
|
||||
@@ -8,22 +8,38 @@
|
||||
<div class="field">
|
||||
|
||||
<label>Treść</label>
|
||||
{{--width: 284px; height: 400px;--}}
|
||||
<textarea class="js-content content"
|
||||
name="text">{{ $text }}</textarea>
|
||||
<i class="align left icon command" title="left"></i>
|
||||
<i class="align center icon command" title="center"></i>
|
||||
<i class="align right icon command" title="right"></i>
|
||||
<i class="bold icon command" title="bold"></i>
|
||||
<i class="italic icon command" title="italic"></i>
|
||||
<i class="underline icon command" title="underline"></i>
|
||||
<div id="editor" contenteditable="true" id="editor">{{ $text }}</div>
|
||||
<input type="hidden" name="icon" id="icon" value="{{ $icon_selected }}"/>
|
||||
<div class="icons">
|
||||
|
||||
|
||||
|
||||
<span class="icon @if(!isset($icon_selected) ) selected @endif empty" title="empty"></span>
|
||||
@foreach ($icons as $icon)<span
|
||||
class="icon {{ str_before($icon, '.') }} @if(isset($icon_selected) && $icon == basename($icon_selected)) selected @endif " title="{{ $icon }}">
|
||||
</span>@endforeach
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<button class="ui submit button yellow" type="submit" name="save">Zapisz</button>
|
||||
|
||||
@if(isset($type) && $type == 'template')
|
||||
<button class="ui submit button yellow" type="submit" name="save">Zapisz jako notatkę</button>
|
||||
<button class="ui submit button orange" type="submit" name="save_template">Zapisz szablon</button>
|
||||
@else
|
||||
<button class="ui submit button yellow" type="submit" name="save">Zapisz</button>
|
||||
<button class="ui submit button orange" type="submit" name="save_template">Zapisz jako szablon</button>
|
||||
@endif
|
||||
|
||||
<button class="ui submit button primary" type="submit" name="print">Drukuj</button>
|
||||
<button class="ui reset button js-reset" type="reset">Wyczyść</button>
|
||||
@if(isset($id))
|
||||
<button class="ui delete button js-delete red" type="submit" name="delete">Usuń</button>
|
||||
|
||||
|
||||
@endif
|
||||
</form>
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
@section('content')
|
||||
<div class="ui container">
|
||||
<h1 class="ui header">Szybka notatka</h1>
|
||||
|
||||
<div class="ui container">
|
||||
<div class="ui one column middle aligned stackable grid">
|
||||
<div class="ui column">
|
||||
@include('form.create')
|
||||
|
||||
<div class="ui container">
|
||||
<div class="ui one column middle aligned stackable grid">
|
||||
<div class="ui column">
|
||||
@include('form.create')
|
||||
|
||||
|
||||
<form method="POST" class="ui form" action="/printImage" enctype="multipart/form-data">
|
||||
@@ -17,30 +17,29 @@
|
||||
<div class="field">
|
||||
<label for="photo">Plik do wydrukowania:</label>
|
||||
<div class="ui fluid file input action">
|
||||
<input type="text" class="url" name="url" placeholder="Wklej link do zdjęcia, albo wybierz plik z dysku obok">
|
||||
<input type="text" class="url" name="url"
|
||||
placeholder="Wklej link do zdjęcia, albo wybierz plik z dysku obok">
|
||||
<input type="text" readonly>
|
||||
<input type="file" id="photo" name="photo" autocomplete="off" accept=".jpg,.png,.gif,.jpeg,.bmp">
|
||||
<input type="file" id="photo" name="photo" autocomplete="off"
|
||||
accept=".jpg,.png,.gif,.jpeg,.bmp">
|
||||
<div class="ui button trigger">
|
||||
Wybierz plik...
|
||||
</div>
|
||||
<button class="ui submit button primary" type="submit" name="print-image">Drukuj</button>
|
||||
<button class="ui submit button primary" type="submit" name="print-image">Drukuj
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="ui container">
|
||||
|
||||
<h1 class="ui header">Lista notatek</h1>
|
||||
<div class="ui middle aligned divided list">
|
||||
|
||||
@foreach($notes as $note)
|
||||
|
||||
<div class="item">
|
||||
<div class="right floated content">
|
||||
<form method="post" action="/print/{{ $note->id }}">
|
||||
@@ -49,13 +48,26 @@
|
||||
</form>
|
||||
</div>
|
||||
<div class="content">
|
||||
<a href="/edit/{{ $note->id }}/{{ $note->topic_slug?$note->topic_slug:str_limit($note->text, 30, '...') }}"> {{ $note->topic?$note->topic:str_limit($note->text, 30, '...') }} </a>
|
||||
<a href="/edit/{{ $note->id }}/{{ $note->topic_slug?$note->topic_slug:str_limit($note->text, 30, '...') }}"><span
|
||||
class="icon {{ $note->icon }} "
|
||||
title="{{ $note->icon }}"></span>{{ $note->topic?$note->topic:str_limit($note->text, 30, '...') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<h1 class="ui header">Szablony notatek</h1>
|
||||
<div class="ui middle aligned divided list">
|
||||
@foreach($templates as $template)
|
||||
<div class="item">
|
||||
<div class="content">
|
||||
<a href="/edit/{{ $template->id }}/{{ $template->topic_slug?$template->topic_slug:str_limit($template->text, 30, '...') }}"><span
|
||||
class="icon {{ $template->icon }} "
|
||||
title="{{ $template->icon }}"></span> {{ $template->topic?$template->topic:str_limit($template->text, 30, '...') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ui teal tiny buttons">
|
||||
@@ -83,6 +95,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui teal tiny buttons pointing top left">
|
||||
<a class="ui button" href="/airly">Airly</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
19
resources/views/template_edit.blade.php
Normal file
19
resources/views/template_edit.blade.php
Normal file
@@ -0,0 +1,19 @@
|
||||
@extends('layouts.base')
|
||||
|
||||
@section('content')
|
||||
<style>
|
||||
body .column .ui.form textarea:not([rows]) {max-height: inherit; height: 20em}
|
||||
|
||||
</style>
|
||||
<div class="ui container">
|
||||
<div class="ui one column middle aligned stackable grid">
|
||||
<div class="ui column">
|
||||
|
||||
<h2><a href="/">Lista</a> » Edycja notatki</h2>
|
||||
@include('form.create')
|
||||
<br><br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user