Project

General

Profile

« Previous | Next » 

Revision 2027

Added by sgarg about 19 years ago

Bug 1301 - changes made for a repeatable add keyword button.

View differences:

genericResponse.tmpl
115 115
  <input type="hidden" name="origNamelast10" value="[%origNamelast10%]">
116 116
  <input type="hidden" name="origRole10" value="[%origRole10%]">
117 117
  <input type="hidden" name="abstract" value="[%abstract%]">
118
  <input type="hidden" name="keyword0" value="[%keyword0%]">
119
  <input type="hidden" name="kwType0" value="[%kwType0%]">
120
  <input type="hidden" name="kwTh0" value="[%kwTh0%]">
121
  <input type="hidden" name="keyword1" value="[%keyword1%]">
122
  <input type="hidden" name="kwType1" value="[%kwType1%]">
123
  <input type="hidden" name="kwTh1" value="[%kwTh1%]">
124
  <input type="hidden" name="keyword2" value="[%keyword2%]">
125
  <input type="hidden" name="kwType2" value="[%kwType2%]">
126
  <input type="hidden" name="kwTh2" value="[%kwTh2%]">
127
  <input type="hidden" name="keyword3" value="[%keyword3%]">
128
  <input type="hidden" name="kwType3" value="[%kwType3%]">
129
  <input type="hidden" name="kwTh3" value="[%kwTh3%]">
130
  <input type="hidden" name="keyword4" value="[%keyword4%]">
131
  <input type="hidden" name="kwType4" value="[%kwType4%]">
132
  <input type="hidden" name="kwTh4" value="[%kwTh4%]">
133
  <input type="hidden" name="keyword5" value="[%keyword5%]">
134
  <input type="hidden" name="kwType5" value="[%kwType5%]">
135
  <input type="hidden" name="kwTh5" value="[%kwTh5%]">
136
  <input type="hidden" name="keyword6" value="[%keyword6%]">
137
  <input type="hidden" name="kwType6" value="[%kwType6%]">
138
  <input type="hidden" name="kwTh6" value="[%kwTh6%]">
139
  <input type="hidden" name="keyword7" value="[%keyword7%]">
140
  <input type="hidden" name="kwType7" value="[%kwType7%]">
141
  <input type="hidden" name="kwTh7" value="[%kwTh7%]">
142
  <input type="hidden" name="keyword8" value="[%keyword8%]">
143
  <input type="hidden" name="kwType8" value="[%kwType8%]">
144
  <input type="hidden" name="kwTh8" value="[%kwTh8%]">
145
  <input type="hidden" name="keyword9" value="[%keyword9%]">
146
  <input type="hidden" name="kwType9" value="[%kwType9%]">
147
  <input type="hidden" name="kwTh9" value="[%kwTh9%]">
118
  <input type="hidden" name="keyCount" value="[%keyCount%]">
119
  [% numKey = 0 %]
120
    [% IF keyCount > 0 %]
121
        [% numKey = keyCount %]
122
    [% END %]
123
  [% cnt = 1 %]
124
  [% WHILE cnt <= numKey %]
125
      [% SET kyd = "keyword${cnt}" %]
126
      [% SET keyType = "kwType${cnt}" %]
127
      [% SET keyTh = "kwTh${cnt}" %]
128
      <input type="hidden" name="[% kyd %]" value="[% $kyd %]">
129
      <input type="hidden" name="[% keyType %]" value="[% $keyType %]">
130
      <input type="hidden" name="[% keyTh %]" value="[% $keyTh %]">
131
      [% cnt = cnt + 1 %]
132
  [% END %]
148 133
  <input type="hidden" name="addComments" value="[%addComments%]">
149 134
  <input type="hidden" name="useConstraints" value="[%useConstraints%]">
150 135
  <input type="hidden" name="useConstraintsOther" value="[%useConstraintsOther%]">

Also available in: Unified diff