Grey submit button on send mail page after click.
[platal.git] / templates / admin / geocoding.tpl
index f3a5564..96bcf9a 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2014 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {foreach from=$lists item=list key=list_description}
 {if $list_description eq "manquant"}
 {assign var="fields" value=$main_fields}
+{assign var="action" value="add"}
 {else}
 {assign var="fields" value=$all_fields}
+{assign var="action" value="edit"}
 {/if}
 
 <h2>{$list|@count} {$name} {$list_description}{if $list|@count > 1}s{/if}.</h2>
@@ -37,6 +39,7 @@
     {foreach from=$fields item=field}
     <th>{$field}</th>
     {/foreach}
+    <th>{$action}</th>
   </tr>
 {foreach from=$list item=item key=key}
   <tr>
@@ -46,6 +49,7 @@
     {assign var="warning" value=$field|cat:'_warning'}
     <td{if t($item.$error)} class="error"{elseif t($item.$warning)} class="warning"{/if}>{$item.$field}</td>
     {/foreach}
+    <td><a href="admin/geocoding/{$category}/{$action}/{$key}">{icon name="page_edit"}</a></td>
   </tr>
 {/foreach}
   <tr>
     {foreach from=$fields item=field}
     <th>{$field}</th>
     {/foreach}
+    <th>{$action}</th>
   </tr>
 </table>
 {/if}
 {/foreach}
 
-{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}
+<form method="post" action="admin/geocoding/{$category}/add">
+  {xsrf_token_field}
+  <p>
+    Ajouter un champ (n'indiquer que l'indentifiant principal)&nbsp;:
+    <input type="text" name="new_id" size="3" maxlength="3" />
+    <input type="submit" value="Ajouter" />
+  </p>
+</form>
+
+{* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}