/
_admin_edit_block_li.tpl
28 lines (27 loc) · 1.22 KB
/
_admin_edit_block_li.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% with is_editable|default:id.is_editable as is_editable %}
<li id="{{ #block }}" class="block do_adminwidget" data-minifier="1">
<div class="widget">
<div class="widget-header" title="{_ Drag to change position _}">
{{ blk.type|make_list|capfirst|replace:"_":" " }} {_ block _}
<a title="{_ Disconnect _}" class="z-btn-remove block-remove"></a>
</div>
<div class="widget-content">
<input type="text" class="form-control block-name" name="block-{{#s}}-name" id="block-{{#s}}-name" value="{{ blk.name|escape }}" title="{_ Block name _}" placeholder="{_ name _}" />
<input type="hidden" class="block-type" name="block-{{#s}}-type" value="{{ blk.type }}" />
{% optional include ["blocks/_admin_edit_block_li_",blk.type,".tpl"]|join name=#s blk=blk id=id is_editable=is_editable is_new=is_new %}
</div>
</div>
{% if is_new %}
{% javascript %}
z_editor_init();
{% endjavascript %}
{% endif %}
{% include "_admin_edit_block_addblock.tpl" %}
</li>
{% endwith %}
{% if is_new %}
{% javascript %}
$("#{{ #block }} .widget").effect("highlight");
z_admin_ensure_block_names();
{% endjavascript %}
{% endif %}