BookStack/resources/views/search/parts/term-list.blade.php
Dan Brown a61c9c5e98
Reorgranised blade view files to form a convention
- Primarily moved and re-organised view files.
- Included readme within views to document the convention.
- Fixed some issues with page field select list in previous commit.
- Tweaked some route names while going through.
- Split some views out further.

Closes #2805
2021-08-22 13:17:32 +01:00

26 lines
No EOL
909 B
PHP

{{--
@type - Type of term (exact, tag)
@currentList
--}}
<table component="add-remove-rows"
option:add-remove-rows:remove-selector="button.text-neg"
option:add-remove-rows:row-selector="tr"
class="no-style">
@foreach(array_merge($currentList, ['']) as $term)
<tr @if(empty($term)) class="hidden" refs="add-remove-rows@model" @endif>
<td class="pb-s pr-m">
<input class="exact-input outline" type="text" name="{{$type}}[]" value="{{ $term }}">
</td>
<td>
<button type="button" class="text-neg text-button">@icon('close')</button>
</td>
</tr>
@endforeach
<tr>
<td colspan="2">
<button refs="add-remove-rows@add" type="button" class="text-button">
@icon('add-circle'){{ trans('common.add') }}
</button>
</td>
</tr>
</table>