RSS
To get this branch, use:
bzr branch /bugzilla/extensions/cannedcomments
1 by Dave Lawrence
Initial checkin
1
[%# This Source Code Form is subject to the terms of the Mozilla Public
2
  # License, v. 2.0. If a copy of the MPL was not distributed with this
3
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
  #
5
  # This Source Code Form is "Incompatible With Secondary Licenses", as
6
  # defined by the Mozilla Public License, v. 2.0.
7
  #%]
8
9
<div id="canned_comments_container">
10
  <div id="new_canned_container">
11
    <input id="new_canned" name="new_canned" type="checkbox" 
12
           onchange="newCanned(this);" value="1">
13
    <label for="new_canned">Add above as new canned comment</label>
14
    <div id="new_canned_summary_container" class="bz_default_hidden">
15
      Summary:
16
      <input id="new_canned_summary" name="new_canned_summary" 
17
             value="" size="50">
18
    </div>
19
  </div>
20
  [% IF canned_comments.size %]
21
    <div id="old_canned_container">
22
      <a href="page.cgi?id=canned_comments.html"
23
         title="Show all canned comments">Canned Comments</a>:
24
      <select id="old_canned" name="old_canned"
25
              onchange="oldCanned(this);">
26
        <option value="">---</option>
27
        [% FOREACH c = canned_comments %]
28
          <option value="[% c.id FILTER html %]">
29
            [% c.summary FILTER html %]</option>
30
        [% END %]
31
      </select>
32
      <span id="remove_old_canned_container" class="bz_default_hidden">
33
        <input id="remove_old_canned" name="remove_old_canned" type="checkbox" value="1">
34
        <label for="remove_old_canned">Remove</label>
35
      </span>
36
    </div>
37
  [% END %]
38
</div>