aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/yoga
diff options
context:
space:
mode:
Diffstat (limited to 'admin/template/yoga')
-rw-r--r--admin/template/yoga/admin.tpl1
-rw-r--r--admin/template/yoga/admin/extend_for_templates.tpl34
-rw-r--r--admin/template/yoga/theme/admin/themeconf.inc.php1
3 files changed, 36 insertions, 0 deletions
diff --git a/admin/template/yoga/admin.tpl b/admin/template/yoga/admin.tpl
index 1c5c13035..e0d44a17e 100644
--- a/admin/template/yoga/admin.tpl
+++ b/admin/template/yoga/admin.tpl
@@ -23,6 +23,7 @@
<ul>
<li><a href="{$U_CONFIG_GENERAL}">{'conf_general'|@translate}</a></li>
<li><a href="{$U_CONFIG_DISPLAY}">{'conf_display'|@translate}</a></li>
+ <li><a href="{$U_CONFIG_EXTENTS}">{'conf_extents'|@translate}</a></li>
</ul>
</dd>
</dl>
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
diff --git a/admin/template/yoga/theme/admin/themeconf.inc.php b/admin/template/yoga/theme/admin/themeconf.inc.php
index 9629b274f..e3b6fc63e 100644
--- a/admin/template/yoga/theme/admin/themeconf.inc.php
+++ b/admin/template/yoga/theme/admin/themeconf.inc.php
@@ -8,6 +8,7 @@ function selected_admin_menu()
{
switch ($_GET['page']) {
case 'configuration':
+ case 'extend_for_templates':
return 1;
case 'site_manager':
case 'site_update':