From 5a69c0bcd929b79ba6cc675058b50fc0d162141e Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 28 Oct 2005 16:56:53 +0000 Subject: Bug 308340: General Preferences tab is empty except for submit button when no user prefences are enabled - Patch by Frédéric Buclin r=GavinS a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/account/prefs/prefs.html.tmpl | 41 ++++++++++++----------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to 'template/en/default/account/prefs/prefs.html.tmpl') diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl index e849a4e99..352e303d6 100644 --- a/template/en/default/account/prefs/prefs.html.tmpl +++ b/template/en/default/account/prefs/prefs.html.tmpl @@ -17,6 +17,7 @@ # Rights Reserved. # # Contributor(s): Gervase Markham + # Frédéric Buclin #%] [%# INTERFACE: @@ -32,12 +33,14 @@ # changes_saved: boolean/string. True if the CGI processed form data before # displaying anything, and can contain an optional custom # message if required (which Perl still evaluates as True). + # dont_show_button: boolean. Prevent the display of the "Submit Changes" button. #%] [% filtered_login = user.login FILTER html %] [% PROCESS global/header.html.tmpl title = "User Preferences" h2 = filtered_login + style_urls = ['skins/standard/admin.css'] %] [% tabs = [ { name => "account", label => "Account Preferences", @@ -77,28 +80,28 @@

[% current_tab.label %]

-
- +[% IF current_tab.saveable %] + + +[% END %] - [% PROCESS "account/prefs/${current_tab.name}.html.tmpl" - IF current_tab.name.defined %] +[% PROCESS "account/prefs/${current_tab.name}.html.tmpl" + IF current_tab.name.defined %] - [% IF current_tab.saveable %] +[% IF current_tab.saveable %] - - - - - -
- -
- [% END %] - -
+ [% UNLESS dont_show_button %] + + + + + +
  + +
+ [% END %] + +[% END %] [% PROCESS global/footer.html.tmpl %] - - - -- cgit v1.2.3-24-g4f1b