blocktypecontainerediting.tpl 2.35 KB
Newer Older
1
<div class="js-blockinstance blockinstance panel panel-secondary {if $configure} configure{elseif $retractable} retractable{/if}" data-id="{$id}" id="blockinstance_{$id}{if $configure}_configure{/if}">
Naomi Guyer's avatar
Naomi Guyer committed
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
    <h3 class="panel-heading js-heading drag-handle {if !$title}panel-heading-placeholder{/if}">
        <span class="fa fa-arrows move-indicator"></span>
        <span class="blockinstance-header">
            {if $configure}{$configtitle}: {str tag=Configure section=view}{else}{$title|default:"[$strnotitle]"}{/if}

        </span>
        {if $retractable && !$configure}
        <span class="fa fa-chevron-down text-watermark fa-sm pull-right"></span>
        {/if}
        <span class="blockinstance-controls pull-right">

            <button class="keyboardmovebutton btn btn-default hidden sr-only" name="action_moveblockinstance_id_{$id}" alt="{$strmovetitletext}"  data-id="{$id}">
                {$strmovetitletext}
            </button>


            {foreach from=$movecontrols item=item}
                <button class="movebutton hidden" name="action_moveblockinstance_id_{$id}_row_{$row}_column_{$item.column}_order_{$item.order}" data-id="{$id}">
                    {$item.title}
                </button>
            {/foreach}



            <span class="prl pull-right btn-group btn-group-top">



                {if $configurable && !$configure}
                <button class="configurebutton btn btn-inverse btn-xs" name="action_configureblockinstance_id_{$id}" alt="{$strconfigtitletext}" data-id="{$id}">
                    <span class="fa fa-cog"></span>
                </button>
                {/if}

                {if $configure}
                    <button class="deletebutton btn btn-inverse btn-xs" name="action_removeblockinstance_id_{$id}" alt="{str tag=Close}" data-id="{$id}">
                        <span class="fa fa-trash text-danger"></span>
                    </button>
                </button>
                {else}
                    <button class="deletebutton btn btn-inverse btn-xs" name="action_removeblockinstance_id_{$id}" alt="{$strremovetitletext}" data-id="{$id}">
                        <span class="fa fa-trash text-danger"></span>
                    </button>
                {/if}
            </span>
        </span>
    </h3>
    <div class="block blockinstance-content js-blockinstance-content">
        {$content|safe}
    </div>
52
</div>