From 727410cca17ff168ba4337de42782d496b9679fc Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 13 Oct 2005 16:18:13 +0000 Subject: Bug 312195: Add an index to all parameters to editparams - Patch by Frédéric Buclin r=joel a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../en/default/admin/params/editparams.html.tmpl | 52 +++++++++++++++------- 1 file changed, 36 insertions(+), 16 deletions(-) (limited to 'template/en/default/admin/params/editparams.html.tmpl') diff --git a/template/en/default/admin/params/editparams.html.tmpl b/template/en/default/admin/params/editparams.html.tmpl index bd94cc513..0560cac6c 100644 --- a/template/en/default/admin/params/editparams.html.tmpl +++ b/template/en/default/admin/params/editparams.html.tmpl @@ -27,7 +27,7 @@ [% PROCESS global/variables.none.tmpl %] -[% curpanel = 0 %] +[% curpanel = -1 %] [% panels = panels.sort('sortkey') %] [% FOREACH panel = panels %] @@ -41,9 +41,20 @@ [% current_panel = panels.$curpanel %] -[%# We cannot call header.html.tmpl earlier as we have to know which panel is active first %] +[%# We cannot call header.html.tmpl earlier as we have to know + which panel is active first, in order to get its title %] + +[% title = BLOCK %] + [% IF curpanel == -1 %] + [% terms.Bugzilla FILTER html %] Parameters: Index + [% ELSE %] + [% terms.Bugzilla FILTER html %] Configuration: + [%+ current_panel.title FILTER html %] + [% END %] +[% END %] + [% PROCESS global/header.html.tmpl - title = "$terms.Bugzilla Configuration: $current_panel.title" + title = title message = message style_urls = ['skins/standard/params.css'] %] @@ -53,6 +64,11 @@ [%# NAVIGATION BAR %] + + + [% FOREACH panel = panels %] [% IF panel.current %] @@ -70,19 +86,23 @@ -

- This lets you edit the basic operating parameters of [% terms.Bugzilla %]. - Be careful!
- Any item you check "Reset" on will get reset to its default value. -

- [%# CONTENT PANEL %] -
- [% PROCESS admin/params/common.html.tmpl panel = current_panel %] - - - - -
+ [% IF curpanel == -1 %] + [% PROCESS admin/params/index.html.tmpl panels = panels %] + [% ELSE %] +

+ This lets you edit the basic operating parameters of [% terms.Bugzilla %]. + Be careful!
+ Any item you check "Reset" on will get reset to its default value. +

+ [%# CONTENT PANEL %] +
+ [% PROCESS admin/params/common.html.tmpl panel = current_panel %] + + + + +
+ [% END %] -- cgit v1.2.3-24-g4f1b