mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
246d1621f5
As requested on #121
37 lines
2.1 KiB
PHP
37 lines
2.1 KiB
PHP
|
|
<div toolbox class="floating-toolbox">
|
|
|
|
<div class="tabs primary-background-light">
|
|
<span toolbox-toggle><i class="zmdi zmdi-caret-left-circle"></i></span>
|
|
<span tab-button="tags" title="Page Tags" class="active"><i class="zmdi zmdi-tag"></i></span>
|
|
</div>
|
|
|
|
<div tab-content="tags" ng-controller="PageTagController" page-id="{{ $page->id or 0 }}">
|
|
<h4>Page Tags</h4>
|
|
<div class="padded tags">
|
|
<p class="muted small">Add some tags to better categorise your content. <br> You can assign a value to a tag for more in-depth organisation.</p>
|
|
<table class="no-style" tag-autosuggestions style="width: 100%;">
|
|
<tbody ui-sortable="sortOptions" ng-model="tags" >
|
|
<tr ng-repeat="tag in tags track by $index">
|
|
<td width="20" ><i class="handle zmdi zmdi-menu"></i></td>
|
|
<td><input autosuggest="/ajax/tags/suggest/names" autosuggest-type="name" class="outline" ng-attr-name="tags[@{{$index}}][name]" type="text" ng-model="tag.name" ng-change="tagChange(tag)" ng-blur="tagBlur(tag)" placeholder="Tag"></td>
|
|
<td><input autosuggest="/ajax/tags/suggest/values" autosuggest-type="value" class="outline" ng-attr-name="tags[@{{$index}}][value]" type="text" ng-model="tag.value" ng-change="tagChange(tag)" ng-blur="tagBlur(tag)" placeholder="Tag Value (Optional)"></td>
|
|
<td width="10" ng-show="tags.length != 1" class="text-center text-neg" style="padding: 0;" ng-click="removeTag(tag)"><i class="zmdi zmdi-close"></i></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="no-style" style="width: 100%;">
|
|
<tbody>
|
|
<tr class="unsortable">
|
|
<td width="34"></td>
|
|
<td ng-click="addEmptyTag()">
|
|
<button type="button" class="text-button">Add another tag</button>
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</div> |