Merged older paper pi with the newer, with some recent updates.

This commit is contained in:
kplaczek
2018-04-02 22:34:15 +02:00
parent 3c0ebd26ed
commit ad53e0c861
19 changed files with 1071 additions and 160 deletions

View File

@@ -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>