summaryrefslogtreecommitdiffstats
path: root/template/en/default/account/prefs/prefs.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-28 18:56:53 +0200
committerlpsolit%gmail.com <>2005-10-28 18:56:53 +0200
commit5a69c0bcd929b79ba6cc675058b50fc0d162141e (patch)
tree05bd423d81561e15b517542c9c3f56946420e271 /template/en/default/account/prefs/prefs.html.tmpl
parent05ec759cbdf76b56c55616314a5a19870c728164 (diff)
downloadbugzilla-5a69c0bcd929b79ba6cc675058b50fc0d162141e.tar.gz
bugzilla-5a69c0bcd929b79ba6cc675058b50fc0d162141e.tar.xz
Bug 308340: General Preferences tab is empty except for submit button when no user prefences are enabled - Patch by Frédéric Buclin <LpSolit@gmail.com> r=GavinS a=justdave
Diffstat (limited to 'template/en/default/account/prefs/prefs.html.tmpl')
-rw-r--r--template/en/default/account/prefs/prefs.html.tmpl41
1 files changed, 22 insertions, 19 deletions
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 <gerv@gerv.net>
+ # Frédéric Buclin <LpSolit@gmail.com>
#%]
[%# 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 @@
<h3>[% current_tab.label %]</h3>
-<form name="userprefsform" method="post" action="userprefs.cgi">
- <input type="hidden" name="tab" value="[% current_tab.name %]">
+[% IF current_tab.saveable %]
+ <form name="userprefsform" method="post" action="userprefs.cgi">
+ <input type="hidden" name="tab" value="[% current_tab.name %]">
+[% 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 %]
<input type="hidden" name="dosave" value="1">
- <table>
- <tr>
- <td width="150"></td>
- <td>
- <input type="submit" value="Submit Changes">
- </td>
- </tr>
- </table>
- [% END %]
-
-</form>
+ [% UNLESS dont_show_button %]
+ <table>
+ <tr>
+ <td width="150">&nbsp;</td>
+ <td>
+ <input type="submit" value="Submit Changes">
+ </td>
+ </tr>
+ </table>
+ [% END %]
+ </form>
+[% END %]
[% PROCESS global/footer.html.tmpl %]
-
-
-