|
Lines 162-167
Link Here
|
| 162 |
|
162 |
|
| 163 |
<td>[% ActionsLoo.ordering | html %]</td> |
163 |
<td>[% ActionsLoo.ordering | html %]</td> |
| 164 |
<td> |
164 |
<td> |
|
|
165 |
[% IF ( ActionsLoo.action_set_record_source ) %] |
| 166 |
<span>Set record source</span> |
| 167 |
<span>with value</span> |
| 168 |
[% FOREACH source IN RecordSources %] |
| 169 |
[% IF ( source.record_source_id == ActionsLoo.field_value ) %] |
| 170 |
<em>[% source.name | html %]</em> |
| 171 |
[% END %] |
| 172 |
[% END %] |
| 173 |
[% ELSE %] |
| 165 |
[% IF ( ActionsLoo.action_delete_field ) %] <span>Delete</span> [% END %] |
174 |
[% IF ( ActionsLoo.action_delete_field ) %] <span>Delete</span> [% END %] |
| 166 |
[% IF ( ActionsLoo.action_add_field ) %] <span>Add new</span> [% END %] |
175 |
[% IF ( ActionsLoo.action_add_field ) %] <span>Add new</span> [% END %] |
| 167 |
[% IF ( ActionsLoo.action_update_field ) %] <span>Update existing or add new</span> [% END %] |
176 |
[% IF ( ActionsLoo.action_update_field ) %] <span>Update existing or add new</span> [% END %] |
|
Lines 174-182
Link Here
|
| 174 |
<span>1st</span> |
183 |
<span>1st</span> |
| 175 |
[% END %] |
184 |
[% END %] |
| 176 |
[% END %] |
185 |
[% END %] |
| 177 |
|
186 |
|
| 178 |
<span>field</span> |
187 |
<span>field</span> |
| 179 |
|
188 |
|
| 180 |
[% ActionsLoo.from_field | html %][% IF ( ActionsLoo.from_subfield.length ) %]$[% ActionsLoo.from_subfield | html %][% END %] |
189 |
[% ActionsLoo.from_field | html %][% IF ( ActionsLoo.from_subfield.length ) %]$[% ActionsLoo.from_subfield | html %][% END %] |
| 181 |
|
190 |
|
| 182 |
[% IF ( ActionsLoo.field_value ) %] |
191 |
[% IF ( ActionsLoo.field_value ) %] |
|
Lines 190-196
Link Here
|
| 190 |
<span>using RegEx</span> s<strong>/[% ActionsLoo.to_regex_search | html %]/[% ActionsLoo.to_regex_replace | html %]/[% ActionsLoo.to_regex_modifiers | html %]</strong> |
199 |
<span>using RegEx</span> s<strong>/[% ActionsLoo.to_regex_search | html %]/[% ActionsLoo.to_regex_replace | html %]/[% ActionsLoo.to_regex_modifiers | html %]</strong> |
| 191 |
[% END %] |
200 |
[% END %] |
| 192 |
[% END %] |
201 |
[% END %] |
| 193 |
|
202 |
[% END %] |
| 194 |
[% IF ( ActionsLoo.conditional ) %] |
203 |
[% IF ( ActionsLoo.conditional ) %] |
| 195 |
[% IF ( ActionsLoo.conditional_if ) %] <span>if</span> [% END %] |
204 |
[% IF ( ActionsLoo.conditional_if ) %] <span>if</span> [% END %] |
| 196 |
[% IF ( ActionsLoo.conditional_unless ) %] <span>unless</span> [% END %] |
205 |
[% IF ( ActionsLoo.conditional_unless ) %] <span>unless</span> [% END %] |
|
Lines 244-249
Link Here
|
| 244 |
<option value="move_field">Move</option> |
253 |
<option value="move_field">Move</option> |
| 245 |
<option value="copy_field">Copy</option> |
254 |
<option value="copy_field">Copy</option> |
| 246 |
<option value="copy_and_replace_field">Copy and replace</option> |
255 |
<option value="copy_and_replace_field">Copy and replace</option> |
|
|
256 |
<option value="set_record_source">Set record source</option> |
| 247 |
</select> |
257 |
</select> |
| 248 |
|
258 |
|
| 249 |
<span id="field_number_block"> |
259 |
<span id="field_number_block"> |
|
Lines 252-263
Link Here
|
| 252 |
<option value="1">1st</option> |
262 |
<option value="1">1st</option> |
| 253 |
</select> |
263 |
</select> |
| 254 |
</span> |
264 |
</span> |
| 255 |
|
265 |
<span id="from_field_block"> |
| 256 |
field(s) <input type="text" name="from_field" id="from_field" size="3" maxlength="3" /> <input type="text" name="from_subfield" id="from_subfield" size="1" maxlength="1" title="let blank for the entire field" /> |
266 |
field(s) <input type="text" name="from_field" id="from_field" size="3" maxlength="3" /> <input type="text" name="from_subfield" id="from_subfield" size="1" maxlength="1" title="let blank for the entire field" /> |
|
|
267 |
</span> |
| 257 |
|
268 |
|
| 258 |
<span name="with_value_block" id="with_value_block" style="display:none;"> |
269 |
<span name="with_value_block" id="with_value_block" style="display:none;"> |
| 259 |
with value <input type="text" name="field_value" id="field_value" /> |
270 |
with value <input type="text" name="field_value" id="field_value" /> |
| 260 |
</span> |
271 |
</span> |
|
|
272 |
<span name="source_selector" id="source_selector" style="display:none;"> |
| 273 |
<select id="record_source_id" name="record_source_id"> |
| 274 |
<option value=''>No specified source</option> |
| 275 |
[% FOREACH source IN RecordSources %] |
| 276 |
<option value=[% source.record_source_id %]>[% source.name %]</option> |
| 277 |
[% END %] |
| 278 |
</select> |
| 279 |
</span> |
| 261 |
|
280 |
|
| 262 |
<span name="to_field_block" id="to_field_block" style="display:none;"> |
281 |
<span name="to_field_block" id="to_field_block" style="display:none;"> |
| 263 |
to field <input type="text" name="to_field" id="to_field" size="3" maxlength="3" /> <input type="text" name="to_subfield" id="to_subfield" size="1" maxlength="1" title="let blank for the entire field" /> |
282 |
to field <input type="text" name="to_field" id="to_field" size="3" maxlength="3" /> <input type="text" name="to_subfield" id="to_subfield" size="1" maxlength="1" title="let blank for the entire field" /> |