Skip to content

Commit

Permalink
Bug 488942: The term "bookmarkable template" is meaningless to new us…
Browse files Browse the repository at this point in the history
…ers, change to "Make Template". r=gerv, a=glob.
  • Loading branch information
selsky authored and Gervase Markham committed Jan 30, 2015
1 parent b8575ad commit bc69ce1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion js/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

var bz_no_validate_enter_bug = false;
function validateEnterBug(theform) {
// This is for the "bookmarkable templates" button.
// This is for the "Make Template" button.
if (bz_no_validate_enter_bug) {
// Set it back to false for people who hit the "back" button
bz_no_validate_enter_bug = false;
Expand Down
3 changes: 2 additions & 1 deletion template/en/default/bug/create/create.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,9 @@ TUI_hide_default('attachment_text_field');
<input type="submit" id="commit" value="Submit [% terms.Bug %]">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" name="maketemplate" id="maketemplate"
value="Remember values as bookmarkable template"
value="Make Template"
onclick="bz_no_validate_enter_bug=true" class="expert_fields">
(useful for filing several similar bugs)
</td>
</tr>
</tbody>
Expand Down
17 changes: 6 additions & 11 deletions template/en/default/bug/create/make-template.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,19 @@

[%# INTERFACE:
# url: URL to a pre-filled bug entry form.
# short_desc: Bug summary as entered in the form.
#%]

[% PROCESS global/header.html.tmpl
title = "Bookmark For $terms.Bug Entry"
title = "Template For $terms.Bug Entry"
header = "Template constructed"
%]

<p>
You can bookmark this link:
&ldquo;<a href="enter_bug.cgi?[% url FILTER html %]">
[% IF short_desc %]
[% short_desc FILTER html %]
[% ELSE %]
[% terms.Bug %] entry template
[% END %]</a>&rdquo;.
This bookmark will bring up the <em>Enter [% terms.Bug %]</em> page with the
fields initialized as you've requested.
If you bookmark or right-click <a href="enter_bug.cgi?[% url FILTER html %]">
this link to the [% terms.Bug %] entry form</a>, and open it repeatedly
in a new window, you can bring up multiple copies of the <em>Enter
[%+ terms.Bug %]</em> page with the fields initialized in the way you just had
them completed. You can then customize each one as necessary.
</p>

[% PROCESS global/footer.html.tmpl %]

0 comments on commit bc69ce1

Please sign in to comment.