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:
@@ -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" />
|
||||
');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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>
|
||||
|
1
site/plugins/admin/views/partials/tags.html
Normal file
1
site/plugins/admin/views/partials/tags.html
Normal 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>
|
Reference in New Issue
Block a user