Add inc editor and filter
This commit is contained in:
@@ -35,3 +35,11 @@ if (value != {{ param }}) {
|
|||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
{% macro setValue(name, param, type="tinymce") -%}
|
||||||
|
{% if type=="tinymce" %}
|
||||||
|
tinymce.get("{{ name }}").setContent({{ param }});
|
||||||
|
{% elif type=="ckeditor" %}
|
||||||
|
CKEDITOR.instances["{{ name }}"].setData({{ param }});
|
||||||
|
{% endif %}
|
||||||
|
{%- endmacro %}
|
||||||
|
|||||||
15
myapp/templates/inc/filter.html
Normal file
15
myapp/templates/inc/filter.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<div class="row" v-if="panels.filter.visible">
|
||||||
|
<div class="col">
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="input-group">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<button class="btn btn-outline-danger" type="button" id="button-addon1" v-on:click="filterClear"><i class="fa fa-remove"></i></button>
|
||||||
|
</div>
|
||||||
|
<input class="form-control" id="filter" placeholder="Фильтр" v-model="filter" />
|
||||||
|
<div class="input-group-append">
|
||||||
|
<button class="btn btn-outline-success" type="button" id="button-addon1" v-on:click="filterApply"><i class="fa fa-check"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user