Clicking on icon next to note title will filter list to notes that has been assigned with clicked icon.
This commit is contained in:
@@ -47,22 +47,24 @@
|
||||
|
||||
</div>
|
||||
<div class="ui container">
|
||||
<h1 class="ui header">Lista notatek</h1>
|
||||
<h1 class="ui header"> @if(isset($filter)) <a href="/">Lista notatek</a> z ikonką <span
|
||||
class="icon {{ $filter }} display-inline-block"></span>@else Lista notatek @endif</h1>
|
||||
<div class="ui middle aligned divided list">
|
||||
@foreach($notes as $note)
|
||||
<div class="item">
|
||||
<div class="left floated content">
|
||||
<a href="/filter/{{ $note->icon }}" class="left floated"><span
|
||||
class="icon @if($note->icon){{ $note->icon }} @else empty @endif "
|
||||
title="{{ $note->icon }}"></span></a><a class="note-title"
|
||||
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>
|
||||
</div>
|
||||
<div class="right floated content">
|
||||
<form method="post" action="/print/{{ $note->id }}">
|
||||
{{ csrf_field() }}
|
||||
<button type="primary" class="ui tiny button primary">Drukuj</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="content">
|
||||
<a href="/edit/{{ $note->id }}/{{ $note->topic_slug?$note->topic_slug:str_limit($note->text, 30, '...') }}"><span
|
||||
class="icon @if($note->icon){{ $note->icon }} @else empty @endif "
|
||||
title="{{ $note->icon }}"></span>{{ $note->topic?$note->topic:str_limit($note->text, 30, '...') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user