~ubuntu-branches/ubuntu/saucy/bugzilla/saucy

« back to all changes in this revision

Viewing changes to template/en/default/search/boolean-charts.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Alexis Sukrieh
  • Date: 2006-11-15 07:54:08 UTC
  • mfrom: (3.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115075408-wlbl33r80yh9q3uo
Tags: 2.22.1-2
* Depends on mysql-client as we provide mysql support with dbconfig-common.
  (closes: #398621)
* Urgency set to high to fix the etch RC bug.
* Updated the Bugzilla version (debian minor) in Bugzilla/Config.pm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!-- 1.0@bugzilla.org -->
 
1
[%# 1.0@bugzilla.org %]
2
2
[%# The contents of this file are subject to the Mozilla Public
3
3
  # License Version 1.1 (the "License"); you may not use this file
4
4
  # except in compliance with the License. You may obtain a copy of
23
23
  { name => "noop", description => "---" },
24
24
  { name => "equals", description => "is equal to" },
25
25
  { name => "notequals", description => "is not equal to" },
 
26
  { name => "anyexact", description => "is equal to any of the strings" },
26
27
  { name => "substring", description => "contains the string" },
27
28
  { name => "casesubstring", description => "contains the string (exact case)" },
28
29
  { name => "notsubstring", description => "does not contain the string" },
 
30
  { name => "anywordssubstr", description => "contains any of the strings" },
29
31
  { name => "allwordssubstr", description => "contains all of the strings" },
30
 
  { name => "anywordssubstr", description => "contains any of the strings" },
 
32
  { name => "nowordssubstr", description => "contains none of the strings" },
31
33
  { name => "regexp", description => "contains regexp" },
32
34
  { name => "notregexp", description => "does not contain regexp" },
33
35
  { name => "lessthan", description => "is less than" },
39
41
  { name => "changedafter", description => "changed after" },
40
42
  { name => "changedfrom", description => "changed from" },
41
43
  { name => "changedto", description => "changed to" },
42
 
  { name => "changedby", description => "changed by" } ] %]
 
44
  { name => "changedby", description => "changed by" },
 
45
  { name => "matches", description => "matches" } ] %]
43
46
 
44
47
  <p>
45
48
    <strong>
46
 
      <a name="chart" href="queryhelp.cgi#advancedquerying">
47
 
      Advanced Querying Using Boolean Charts</a>:
 
49
      <a name="chart">Advanced Searching Using Boolean Charts</a>:
48
50
    </strong>
49
51
  </p>
50
52
 
55
57
[% FOREACH chart = default.charts %]
56
58
  [% chartnum = loop.count - 1 %]
57
59
  <table>
58
 
  [% FOREACH row = chart %]
 
60
    <tr>
 
61
      <td>
 
62
        <input type="checkbox" id="negate[% chartnum FILTER html %]"
 
63
             name="negate[% chartnum FILTER html %]" value="1"
 
64
            [% "checked" IF chart.negate %]>
 
65
        <label for="negate[% chartnum FILTER html %]">
 
66
          Not (negate this whole chart)
 
67
        </label>
 
68
      </td>
 
69
    </tr>
 
70
  [% FOREACH row = chart.rows %]
59
71
    [% rownum = loop.count - 1 %]
60
72
    <tr>
61
73
    [% FOREACH col = row %]
79
91
               value="[% col.value FILTER html %]"> 
80
92
      </td>
81
93
      
82
 
      [% IF NOT col == row.last %]
 
94
      [% UNLESS loop.last %]
83
95
        <td align="center"> 
84
96
          Or 
85
97
        </td>    
 
98
      </tr>
 
99
      <tr>
86
100
      [% ELSE %]
87
101
        <td>
88
102
          [% newor = colnum + 1 %]
89
103
          <input type="submit" value="Or" 
90
 
                 name="cmd-add[% "${chartnum}-${rownum}-${newor}" %]" [% $jsmagic %]>
 
104
                 name="cmd-add[% "${chartnum}-${rownum}-${newor}" %]" [% jsmagic %]>
91
105
        </td>
92
106
      [% END %]
93
107
      
94
108
    [% END %]
95
109
    </tr>
96
110
    
97
 
    [% IF NOT row == chart.last %]
 
111
    [% UNLESS loop.last %]
98
112
    <tr>
99
113
      <td>And</td>
100
114
    </tr>    
103
117
      <td>
104
118
        [% newand = rownum + 1; newchart = chartnum + 1 %]
105
119
        <input type="submit" value="And" 
106
 
               name="cmd-add[% "${chartnum}-${newand}-0" %]"[% $jsmagic %]> 
 
120
               name="cmd-add[% "${chartnum}-${newand}-0" %]" [% jsmagic %]> 
107
121
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
108
122
        <input type="submit" value="Add another boolean chart" 
109
 
               name="cmd-add[% newchart %]-0-0" [% $jsmagic %]>
 
123
               name="cmd-add[% newchart %]-0-0" [% jsmagic %]>
110
124
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
111
125
      </td>
112
126
    </tr>