diff options
author | jocuri%softhome.net <> | 2003-11-21 19:00:51 +0100 |
---|---|---|
committer | jocuri%softhome.net <> | 2003-11-21 19:00:51 +0100 |
commit | afe02a6edbc84062347813aba15f80623472f7a9 (patch) | |
tree | 85a998dc27620aa1eea6b9d2c9b39f7e627c0822 /template/en/default | |
parent | 07fc6c828ad4aeb8736f3be8b5a1c30e708d31d5 (diff) | |
download | bugzilla-afe02a6edbc84062347813aba15f80623472f7a9.tar.gz bugzilla-afe02a6edbc84062347813aba15f80623472f7a9.tar.xz |
Bug 225703: Partial templatization for editkeywords.cgi; r=jouni; r=gerv; a=justdave.
Diffstat (limited to 'template/en/default')
4 files changed, 171 insertions, 0 deletions
diff --git a/template/en/default/admin/keywords/confirm-delete.html.tmpl b/template/en/default/admin/keywords/confirm-delete.html.tmpl new file mode 100755 index 000000000..5ff826b86 --- /dev/null +++ b/template/en/default/admin/keywords/confirm-delete.html.tmpl @@ -0,0 +1,55 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Terry Weissman <terry@mozilla.org> + # Vlad Dascalu <jocuri@softhome.net> + #%] + +[%# INTERFACE: + # name: string. The name of the keyword. + # keyword_id: number. The ID of the keyword. + # bug_count: number. The number of bugs with the keyword. + #%] + +[% PROCESS global/header.html.tmpl + title = "Delete Keyword" +%] + +<p> + [% IF bug_count == 1 %] + There is one [% terms.bug %] with this keyword set. + [% ELSE %] + There are [% bug_count %] [%+terms.bugs %] with + this keyword set. + [% END %] + + Are you <b>sure</b> you want to delete + the <code>[% name FILTER html %]</code> keyword? +</p> + +<form method="post" action="editkeywords.cgi"> + <input type="hidden" name="id" value="[% keyword_id %]"> + <input type="hidden" name="action" value="delete"> + <input type="hidden" name="reallydelete" value="1"> + <input type="submit" value="Yes, really delete the keyword"> +</form> + +<p>Go back to the <a href="query.cgi">query page</a> +or <a href="editkeywords.cgi">edit other keywords</a>.</p> + +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/admin/keywords/create.html.tmpl b/template/en/default/admin/keywords/create.html.tmpl new file mode 100755 index 000000000..49698a1db --- /dev/null +++ b/template/en/default/admin/keywords/create.html.tmpl @@ -0,0 +1,55 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Terry Weissman <terry@mozilla.org> + # Vlad Dascalu <jocuri@softhome.net> + #%] + +[%# INTERFACE: + # none + #%] + +[% PROCESS global/header.html.tmpl + title = "Add keyword" + h2 = "This page allows you to add a new keyword." +%] + +<form method="post" action="editkeywords.cgi"> + <table border="0" cellpadding="4" cellspacing="0"> + <input type="hidden" name="id" value="-1"> + <tr> + <th align="right">Name:</th> + <td><input size="64" maxlength="64" name="name" value=""></td> + </tr> + <tr> + <th align="right">Description:</th> + <td> + <textarea rows="4" cols="64" wrap="virtual" + name="description"></textarea> + </td> + </tr> + </table> + <hr> + <input type="submit" value="Add"> + <input type="hidden" name="action" value="new"> +</form> + +<p>Go back to the <a href="query.cgi">query page</a> +or <a href="editkeywords.cgi">edit other keywords</a>.</p> + +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/admin/keywords/rebuild-cache.html.tmpl b/template/en/default/admin/keywords/rebuild-cache.html.tmpl new file mode 100755 index 000000000..4c4ea4b9a --- /dev/null +++ b/template/en/default/admin/keywords/rebuild-cache.html.tmpl @@ -0,0 +1,56 @@ +<!-- 1.0@bugzilla.org --> +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 1998 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): Terry Weissman <terry@mozilla.org> + # Vlad Dascalu <jocuri@softhome.net> + #%] + +[%# INTERFACE: + # action: string. Contains the current action (either "update" or "delete"). + # name: string. Contains the name of the current keyword. + #%] + +[% IF action == "update" %] + [% title = "Update keyword"%] + [% status = "updated" %] +[% ELSIF action == "delete" %] + [% title = "Delete keyword" %] + [% status = "deleted" %] +[% END %] + +[% PROCESS global/header.html.tmpl %] + +Keyword [% name FILTER html %] [%+status FILTER html %]. + +<p> + <b>After you have finished deleting or modifying keywords, + you need to rebuild the keyword cache.</b><br> + + Warning: on a very large installation of [% terms.Bugzilla %], + this can take several minutes. +</p> + +<p> + <b><a href="sanitycheck.cgi?rebuildkeywordcache=1">Rebuild + keyword cache</a></b> +</p> + +<p>Go back to the <a href="query.cgi">query page</a> or +<a href="editkeywords.cgi">edit more keywords</a>.</p> + +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index 56f20be72..d5f6b4d86 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -491,6 +491,11 @@ 'const.CONTROLMAPMANDATORY', ], +'admin/keywords/confirm-delete.html.tmpl' => [ + 'keyword_id', + 'bug_count', +], + 'admin/flag-type/confirm-delete.html.tmpl' => [ 'flag_count', 'flag_type.id', |