34 lines
1.2 KiB
PHP
34 lines
1.2 KiB
PHP
<form method="POST" class="ui form">
|
|
{{ csrf_field() }}
|
|
|
|
<div class="field">
|
|
<label>Tytuł</label>
|
|
<input type="text" name="title" value="{{ $title }}">
|
|
</div>
|
|
<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>
|
|
</div>
|
|
<button class="ui submit button yellow" type="submit" name="save">Zapisz</button>
|
|
<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>
|
|
|
|
|
|
|
|
|
|
|