1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 21:33:01 +02:00

feat(core): add new field - tags #186

This commit is contained in:
Awilum
2019-09-03 12:24:44 +03:00
parent 7cfdf71ee1
commit 65bf8db068
3 changed files with 5 additions and 1 deletions

View File

@@ -361,7 +361,9 @@ class Forms
*/
protected function tagsField($name, $value, $property)
{
return Form::input($name, $value, $property['attributes']);
return ('
<input type="text" value="'.$value.'" name="'.$name.'" class="form-control" data-role="tagsinput" />
');
}
/**

View File

@@ -256,6 +256,7 @@
{% include "plugins/admin/views/partials/codemirror.html" %}
{% include "plugins/admin/views/partials/forms-save.html" %}
{% include "plugins/admin/views/partials/datetimepicker.html" %}
{% include "plugins/admin/views/partials/tags.html" %}
{% block tail %}{% endblock %}
</body>

View File

@@ -0,0 +1 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.min.js" integrity="sha256-tQ3x4V2JW+L0ew/P3v2xzL46XDjEWUExFkCDY0Rflqc=" crossorigin="anonymous"></script>