<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>
        <textarea class="js-content content"
                  name="text">{{ $text }}</textarea>
        <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>

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