|
9 | 9 | <a href="#" class="subheader-opener button item_action" data-open-id="bulk-tag-action-delete">{'Delete tags'|t}</a>
|
10 | 10 | </div>
|
11 | 11 | </div>
|
12 |
| - {/if} |
| 12 | + |
13 | 13 |
|
14 | 14 | {$addDelete=['add', 'delete']}
|
15 |
| -{loop="$addDelete"} |
16 |
| -<div id="bulk-tag-action-{$value}" class="subheader-form"> |
17 |
| - <form class="pure-g" action="{$base_path}/admin/shaare/update-tags" method="post"> |
18 |
| - <div class="pure-u-1"> |
19 |
| - <span> |
20 |
| - <input |
21 |
| - type="text" name="tag" class="autofocus" |
22 |
| - aria-label="{$value === 'add' ? t('Tag to add') : t('Tag to delete')}" |
23 |
| - placeholder="{$value === 'add' ? t('Tag to add') : t('Tag to delete')}" |
24 |
| - autocomplete="off" data-multiple data-autofirst data-minChars="1" |
25 |
| - data-list="{loop="$tags"}{$key}, {/loop}" |
26 |
| - > |
27 |
| - <input type="hidden" name="action" value="{$value}" /> |
28 |
| - <input type="hidden" name="id" value="" /> |
29 |
| - <input type="hidden" name="token" value="{$token}" /> |
30 |
| - </span> |
31 |
| - <a href="" class="button action"> |
32 |
| - <i class="fa fa-tag" aria-hidden="true"></i> |
33 |
| - {$value === 'add' ? t('Add tag') : t('Delete tag')} |
34 |
| - </a> |
35 |
| - <a href="" class="subheader-opener button cancel" data-open-id="actions">{'Cancel'|t}</a> |
36 |
| - </div> |
37 |
| - </form> |
38 |
| -</div> |
39 |
| - {/loop} |
40 |
| - |
| 15 | + {loop="$addDelete"} |
| 16 | + <div id="bulk-tag-action-{$value}" class="subheader-form"> |
| 17 | + <form class="pure-g" action="{$base_path}/admin/shaare/update-tags" method="post"> |
| 18 | + <div class="pure-u-1"> |
| 19 | + <span> |
| 20 | + <input |
| 21 | + type="text" name="tag" class="autofocus" |
| 22 | + aria-label="{$value === 'add' ? t('Tag to add') : t('Tag to delete')}" |
| 23 | + placeholder="{$value === 'add' ? t('Tag to add') : t('Tag to delete')}" |
| 24 | + autocomplete="off" data-multiple data-autofirst data-minChars="1" |
| 25 | + data-list="{loop="$tags"}{$key}, {/loop}" |
| 26 | + > |
| 27 | + <input type="hidden" name="action" value="{$value}" /> |
| 28 | + <input type="hidden" name="id" value="" /> |
| 29 | + <input type="hidden" name="token" value="{$token}" /> |
| 30 | + </span> |
| 31 | + <a href="" class="button action"> |
| 32 | + <i class="fa fa-tag" aria-hidden="true"></i> |
| 33 | + {$value === 'add' ? t('Add tag') : t('Delete tag')} |
| 34 | + </a> |
| 35 | + <a href="" class="subheader-opener button cancel" data-open-id="actions">{'Cancel'|t}</a> |
| 36 | + </div> |
| 37 | + </form> |
| 38 | + </div> |
| 39 | + {/loop} |
| 40 | + {/if} |
41 | 41 |
|
42 | 42 | <nav id="nav-links">
|
43 | 43 | <ul>
|
|
0 commit comments