mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 12:16:07 +00:00
![Dan Brown](/assets/img/avatar_default.png)
- 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
25 lines
1.2 KiB
PHP
25 lines
1.2 KiB
PHP
@foreach(array_merge($tags, [null, null]) as $index => $tag)
|
|
<div class="card drag-card {{ $loop->last ? 'hidden' : '' }}" @if($loop->last) refs="add-remove-rows@model" @endif>
|
|
<div class="handle">@icon('grip')</div>
|
|
@foreach(['name', 'value'] as $type)
|
|
<div component="auto-suggest"
|
|
option:auto-suggest:url="{{ url('/ajax/tags/suggest/' . $type . 's') }}"
|
|
option:auto-suggest:type="{{ $type }}"
|
|
class="outline">
|
|
<input value="{{ $tag->$type ?? '' }}"
|
|
placeholder="{{ trans('entities.tag_' . $type) }}"
|
|
aria-label="{{ trans('entities.tag_' . $type) }}"
|
|
name="tags[{{ $loop->parent->last ? 'randrowid' : $index }}][{{ $type }}]"
|
|
type="text"
|
|
refs="auto-suggest@input"
|
|
autocomplete="off"/>
|
|
<ul refs="auto-suggest@list" class="suggestion-box dropdown-menu"></ul>
|
|
</div>
|
|
@endforeach
|
|
<button type="button"
|
|
aria-label="{{ trans('entities.tags_remove') }}"
|
|
class="text-center drag-card-action text-neg">
|
|
@icon('close')
|
|
</button>
|
|
</div>
|
|
@endforeach |