1 {extends file="page.tpl"}
4 <form action="{path_for name="titles"}" method="post" enctype="multipart/form-data">
5 <table class="listing">
8 <th class="id_row">#</th>
9 <th>{_T string="Short form"}</th>
10 <th>{_T string="Long form"}</th>
11 <th>{_T string="Actions"}</th>
17 <span class="row-title">
18 {_T string="Add title"}
21 <td class="left" data-title="{_T string="Short form"}">
22 <input size="20" type="text" name="short_label"/>
24 <td class="left" data-title="{_T string="Long form"}">
25 <input size="20" type="text" name="long_label"/>
27 <td class="center actions_row">
28 <input type="hidden" name="new" value="1" />
29 <button type="submit" name="valid">
30 <i class="fas fa-plus" aria-hidden="true"></i>
37 {foreach from=$titles_list item=title name=alltitles}
38 <tr class="{if $smarty.foreach.alltitles.iteration % 2 eq 0}even{else}odd{/if}">
40 {if $preferences->pref_show_id}
43 {$smarty.foreach.alltitles.iteration}
45 <span class="row-title">
46 <a href="{path_for name="editTitle" data=["id" => $title->id]}">
47 {_T string="%s title" pattern="/%s/" replace=$title->short|escape}
51 <td class="left" data-title="{_T string="Short form"}">{$title->short|escape}</td>
52 <td class="left" data-title="{_T string="Long form"}">{$title->long|escape}</td>
53 <td class="center actions_row">
55 href="{path_for name="editTitle" data=["id" => $title->id]}"
56 class="tooltip action"
58 <i class="fas fa-edit fa-fw"></i>
59 <span class="sr-only">{_T string="Edit '%s' title" pattern="/%s/" replace=$title->short|escape}</span>
61 {if $title->id eq 1 or $title->id eq 2}
62 <img src="{base_url}/{$template_subdir}images/icon-empty.png" alt="" width="16px" height="16px"/>
65 href="{path_for name="removeTitle" data=["id" => $title->id]}"
66 class="delete tooltip"
68 <i class="fa fa-trash fa-fw"></i>
69 <span class="sr-only">{_T string="Delete '%s' title" pattern="/%s/" replace=$title->short|escape}</span>
77 {include file="forms_types/csrf.tpl"}
81 {block name="javascripts"}
82 <script type="text/javascript">
84 {include file="js_removal.tpl"}