aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/yoga/admin/extend_for_templates.tpl
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-07-14 21:42:40 +0000
committervdigital <vdigital@piwigo.org>2008-07-14 21:42:40 +0000
commitdf29ffbde72e88635f454d5d6d84c5a7209460f3 (patch)
tree0a35be2731fe75fe86e11adad6f0147f180956d8 /admin/template/yoga/admin/extend_for_templates.tpl
parentb7709eae0dcb81df9eb668407b64f2cde38ba1f0 (diff)
Feature template-extension based on 2006 chrisaga's idea.
chrisaga wrote: "If you want to make some template customization without building a brand new template, you should use ..." git-svn-id: http://piwigo.org/svn/trunk@2434 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/template/yoga/admin/extend_for_templates.tpl34
1 files changed, 34 insertions, 0 deletions
diff --git a/admin/template/yoga/admin/extend_for_templates.tpl b/admin/template/yoga/admin/extend_for_templates.tpl
new file mode 100644
index 000000000..fdac49b7d
--- /dev/null
+++ b/admin/template/yoga/admin/extend_for_templates.tpl
@@ -0,0 +1,34 @@
+{* $Id$ *}
+<div class="titrePage"><h2>{'extend_for_templates'|@translate}</h2>
+</div>
+{if isset($extents)}
+<h4>{'Replacement of original templates'|@translate}</h4>
+<form method="post" name="extend_for_templates" id="extend_for_templates" action="{$F_ACTION}">
+ <table class="table2">
+ <tr class="throw">
+ <th>{'Replacers'|@translate}</th>
+ <th>{'Original templates'|@translate}</th>
+ <th>{'Optional URL keyword'|@translate}</th>
+ </tr>
+ {foreach from=$extents item=tpl name=extent_loop}
+ <tr class="{if $smarty.foreach.extent_loop.index is odd}row1{else}row2{/if}">
+ <td>
+ <input type="hidden" name=reptpl[] value="{$tpl.replacer}" />
+ {$tpl.replacer}
+ </td>
+ <td>
+ {html_options name=original[] output=$tpl.original_tpl values=$tpl.original_tpl selected=$tpl.selected_tpl}
+ </td>
+ <td>
+ {html_options name=url[] output=$tpl.url_parameter values=$tpl.url_parameter selected=$tpl.selected_url}
+ </td>
+ </tr>
+ {/foreach}
+ </table>
+ {if !is_adviser()}
+ <p>
+ <input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" />
+ </p>
+ {/if}
+</form>
+{/if} \ No newline at end of file