From c87cca60cfe149bf4ffe7ed1746189b936e87bac Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 28 Jan 2008 05:14:14 +0000 Subject: Bug 325487: Admin pages should require less "clicks" (remove useless confirmation pages) - Patch by Frédéric Buclin r=justdave r=mkanat a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/admin/settings/edit.html.tmpl | 5 +- template/en/default/global/messages.html.tmpl | 263 ++++++++++++++++++++-- 2 files changed, 245 insertions(+), 23 deletions(-) (limited to 'template') diff --git a/template/en/default/admin/settings/edit.html.tmpl b/template/en/default/admin/settings/edit.html.tmpl index 34535eb95..7f95f883e 100644 --- a/template/en/default/admin/settings/edit.html.tmpl +++ b/template/en/default/admin/settings/edit.html.tmpl @@ -15,8 +15,7 @@ #%] [%# INTERFACE: - # setting_names: an array of strings - # settings: a hash of hashes, keyed by setting_name. + # settings: a hash of hashes, keyed by setting name. # Each hash contains: # is_enabled - boolean # default_value - string (global default for this setting) @@ -56,7 +55,7 @@ page, and the Default Value will automatically apply to everyone. Enabled - [% FOREACH name = setting_names %] + [% FOREACH name = settings.keys %] [% checkbox_name = name _ '-enabled' %] diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl index 86660de18..0189cfab7 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -173,6 +173,82 @@ Click here if the page does not automatically refresh. + [% ELSIF message_tag == "classification_created" %] + [% title = "New Classification Created" %] + The [% classification.name FILTER html %] classification has been created. + + [% ELSIF message_tag == "classification_deleted" %] + [% title = "Classification Deleted" %] + The [% classification FILTER html %] classification has been deleted. + + [% ELSIF message_tag == "classification_updated" %] + [% IF updated_classification || updated_description || updated_sortkey %] + [% title = "Classification Updated" %] + Changes to the [% classification FILTER html %] classification + have been saved: + + [% ELSE %] + No changes made to [% classification FILTER html %]. + [% END %] + + [% ELSIF message_tag == "component_created" %] + [% title = "Component Created" %] + The component [% comp.name FILTER html %] has been created. + + [% ELSIF message_tag == "component_deleted" %] + [% title = "Component Deleted" %] + The component [% comp.name FILTER html %] has been deleted. + [% IF comp.bug_count %] + All [% terms.bugs %] being in this component and all references + to them have also been deleted. + [% END %] + + [% ELSIF message_tag == "component_updated" %] + [% title = "Component Updated" %] + [% IF changes.keys.size %] + Changes to the component [% comp.name FILTER html %] have been saved: +