diff options
author | gerv%gerv.net <> | 2003-07-04 06:31:13 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2003-07-04 06:31:13 +0200 |
commit | 44b48df3901d829e1423749136d142964ccb4a3e (patch) | |
tree | f87659c97f6c97654cde63005c514a5504913631 /template/en/default/admin/flag-type | |
parent | 7b35e1a271f27612cba91216d50e5f497dd0c69a (diff) | |
download | bugzilla-44b48df3901d829e1423749136d142964ccb4a3e.tar.gz bugzilla-44b48df3901d829e1423749136d142964ccb4a3e.tar.xz |
Bug 13540 - allow key terms, like "Bugzilla" and "bug", to be altered without changing all the templates. Patch by jwilmoth@starbucks.com; r=gerv, a=justdave.
Diffstat (limited to 'template/en/default/admin/flag-type')
-rw-r--r-- | template/en/default/admin/flag-type/confirm-delete.html.tmpl | 14 | ||||
-rw-r--r-- | template/en/default/admin/flag-type/edit.html.tmpl | 35 | ||||
-rw-r--r-- | template/en/default/admin/flag-type/list.html.tmpl | 22 |
3 files changed, 41 insertions, 30 deletions
diff --git a/template/en/default/admin/flag-type/confirm-delete.html.tmpl b/template/en/default/admin/flag-type/confirm-delete.html.tmpl index 46522000b..6bf1ca43f 100644 --- a/template/en/default/admin/flag-type/confirm-delete.html.tmpl +++ b/template/en/default/admin/flag-type/confirm-delete.html.tmpl @@ -19,20 +19,22 @@ # Contributor(s): Myk Melez <myk@mozilla.org> #%] +[% PROCESS global/variables.none.tmpl %] + [%# Filter off the name here to be used multiple times below %] [% name = BLOCK %][% flag_type.name FILTER html %][% END %] -[% PROCESS global/header.html.tmpl - title = "Confirm Deletion of Flag Type '$name'" +[% PROCESS global/header.html.tmpl + title = "Confirm Deletion of Flag Type '$name'" %] <p> - There are [% flag_count %] flags of type [% name %]. - If you delete this type, those flags will also be deleted. Note that - instead of deleting the type you can + There are [% flag_count %] flags of type [% name %]. + If you delete this type, those flags will also be deleted. Note that + instead of deleting the type you can <a href="editflagtypes.cgi?action=deactivate&id=[% flag_type.id %]">deactivate it</a>, in which case the type and its flags will remain in the database - but will not appear in the Bugzilla UI. + but will not appear in the [% terms.Bugzilla %] UI. </p> <table> diff --git a/template/en/default/admin/flag-type/edit.html.tmpl b/template/en/default/admin/flag-type/edit.html.tmpl index 157ad3592..a56c3bb65 100644 --- a/template/en/default/admin/flag-type/edit.html.tmpl +++ b/template/en/default/admin/flag-type/edit.html.tmpl @@ -19,6 +19,8 @@ # Contributor(s): Myk Melez <myk@mozilla.org> #%] +[% PROCESS global/variables.none.tmpl %] + [%# The javascript and header_html blocks get used in header.html.tmpl. %] [% javascript = BLOCK %] var usetms = 0; // do we have target milestone? @@ -26,7 +28,7 @@ var last_sel = []; // caches last selection var cpts = new Array(); [% FOREACH p = products %] - cpts['[% p FILTER js %]'] = [ + cpts['[% p FILTER js %]'] = [ [%- FOREACH item = components_by_product.$p %]'[% item FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ]; [% END %] [% END %] @@ -36,9 +38,13 @@ [% END %] [% IF type.target_type == "bug" %] - [% title = "Create Flag Type for Bugs" %] + [% title = BLOCK %]Create Flag Type for [% terms.Bugs %][% END %] + [% typeLabelLowerPlural = BLOCK %][% terms.bugs %][% END %] + [% typeLabelLowerSingular = BLOCK %][% terms.bug %][% END %] [% ELSE %] [% title = "Create Flag Type for Attachments" %] + [% typeLabelLowerPlural = BLOCK %]attachments[% END %] + [% typeLabelLowerSingular = BLOCK %]attachment[% END %] [% END %] [% IF last_action == "copy" %] @@ -47,7 +53,7 @@ [% title = "Edit Flag Type $type.name" %] [% END %] -[% PROCESS global/header.html.tmpl +[% PROCESS global/header.html.tmpl title = title style = " table#form th { text-align: right; vertical-align: baseline; white-space: nowrap; } @@ -66,13 +72,13 @@ [% FOREACH category = type.exclusions %] <input type="hidden" name="exclusions" value="[% category %]"> [% END %] - + <table id="form" cellspacing="0" cellpadding="4" border="0"> <tr> <th>Name:</th> <td> a short name identifying this type<br> - <input type="text" name="name" value="[% type.name FILTER html %]" + <input type="text" name="name" value="[% type.name FILTER html %]" size="50" maxlength="50"> </td> </tr> @@ -84,12 +90,13 @@ <textarea name="description" rows="4" cols="80">[% type.description FILTER html %]</textarea> </td> </tr> - + <tr> <th>Category:</th> + <td> - the products/components to which [% type.target_type %]s must - (inclusions) or must not (exclusions) belong in order for users + the products/components to which [% typeLabelLowerPlural %] must + (inclusions) or must not (exclusions) belong in order for users to be able to set flags of this type for them <table> <tr> @@ -124,11 +131,11 @@ </table> </td> </tr> - + <tr> <th>Sort Key:</th> <td> - a number between 1 and 32767 by which this type will be sorted + a number between 1 and 32767 by which this type will be sorted when displayed to users in a list; ignore if you don't care what order the types appear in or if you want them to appear in alphabetical order<br> @@ -147,7 +154,7 @@ <tr> <th> </th> <td> - <input type="checkbox" name="is_requestable" [% "checked" IF type.is_requestable || !type.is_requestable.defined %]> + <input type="checkbox" name="is_requestable" [% "checked" IF type.is_requestable || !type.is_requestable.defined %]> requestable (users can ask for flags of this type to be set) </td> </tr> @@ -159,11 +166,11 @@ <input type="text" name="cc_list" value="[% type.cc_list FILTER html %]" size="80" maxlength="200"> </td> </tr> - + <tr> <th> </th> <td> - <input type="checkbox" name="is_requesteeble" [% "checked" IF type.is_requesteeble || !type.is_requesteeble.defined %]> + <input type="checkbox" name="is_requesteeble" [% "checked" IF type.is_requesteeble || !type.is_requesteeble.defined %]> specifically requestable (users can ask specific other users to set flags of this type as opposed to just asking the wind) </td> </tr> @@ -172,7 +179,7 @@ <th> </th> <td> <input type="checkbox" name="is_multiplicable" [% "checked" IF type.is_multiplicable || !type.is_multiplicable.defined %]> - multiplicable (multiple flags of this type can be set on the same [% type.target_type %]) + multiplicable (multiple flags of this type can be set on the same [% typeLabelLowerSingular %]) </td> </tr> diff --git a/template/en/default/admin/flag-type/list.html.tmpl b/template/en/default/admin/flag-type/list.html.tmpl index 43fbf8d56..0e3306d27 100644 --- a/template/en/default/admin/flag-type/list.html.tmpl +++ b/template/en/default/admin/flag-type/list.html.tmpl @@ -19,7 +19,9 @@ # Contributor(s): Myk Melez <myk@mozilla.org> #%] -[% PROCESS global/header.html.tmpl +[% PROCESS global/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl title = 'Administer Flag Types' style = " table#flag_types tr th { text-align: left; } @@ -28,7 +30,7 @@ %] <p> - Flags are markers that identify whether a bug or attachment has been granted + Flags are markers that identify whether [% terms.abug %] or attachment has been granted or denied some status. Flags appear in the UI as a name and a status symbol ("+" for granted, "-" for denied, and "?" for statuses requested by users). </p> @@ -40,13 +42,13 @@ either the string "review+" or the string "review-" will appear in the patch, depending on whether the patch passed or failed review. </p> - -<h3>Flag Types for Bugs</h3> + +<h3>Flag Types for [% terms.Bugs %]</h3> [% PROCESS display_flag_types types=bug_types %] <p> - <a href="editflagtypes.cgi?action=enter&target_type=bug">Create Flag Type for Bugs</a> + <a href="editflagtypes.cgi?action=enter&target_type=bug">Create Flag Type for [% terms.Bugs %]</a> </p> <h3>Flag Types for Attachments</h3> @@ -63,8 +65,8 @@ { if (count > 0) { var msg = 'There are ' + count + ' flags of type ' + name + '. ' + - 'If you delete this type, those flags will also be ' + - 'deleted.\n\nNote: to deactivate the type instead ' + + 'If you delete this type, those flags will also be ' + + 'deleted.\n\nNote: to deactivate the type instead ' + 'of deleting it, edit it and uncheck its "is active" ' + 'flag.\n\nDo you really want to delete this flag type?'; if (!confirm(msg)) return false; @@ -95,12 +97,12 @@ <td>[% type.description FILTER html %]</td> <td> <a href="editflagtypes.cgi?action=copy&id=[% type.id %]">Copy</a> - | <a href="editflagtypes.cgi?action=confirmdelete&id=[% type.id %]" - onclick="return confirmDelete([% type.id %], '[% type.name FILTER js %]', + | <a href="editflagtypes.cgi?action=confirmdelete&id=[% type.id %]" + onclick="return confirmDelete([% type.id %], '[% type.name FILTER js %]', [% type.flag_count %]);">Delete</a> </td> </tr> - + [% END %] </table> |