|
Lines 141-147
function clearFormElements(divId) {
Link Here
|
| 141 |
} |
141 |
} |
| 142 |
|
142 |
|
| 143 |
function confirmDelete() { |
143 |
function confirmDelete() { |
| 144 |
var agree = confirm("Are you sure you wish to delete this template?"); |
144 |
var agree = confirm(_("Are you sure you wish to delete this template?")); |
| 145 |
return agree; |
145 |
return agree; |
| 146 |
} |
146 |
} |
| 147 |
|
147 |
|
|
Lines 187-196
function editAction( mmta_id, ordering, action, field_number, from_field, from_s
Link Here
|
| 187 |
document.getElementById('description').value = description; |
187 |
document.getElementById('description').value = description; |
| 188 |
|
188 |
|
| 189 |
window.modaction_legend_innerhtml = document.getElementById('modaction_legend').innerhtml; |
189 |
window.modaction_legend_innerhtml = document.getElementById('modaction_legend').innerhtml; |
| 190 |
document.getElementById('modaction_legend').innerhtml = "Edit Action " + ordering; |
190 |
document.getElementById('modaction_legend').innerhtml = _("Edit action") + ordering; |
| 191 |
|
191 |
|
| 192 |
window.action_submit_value = document.getElementById('action_submit').value; |
192 |
window.action_submit_value = document.getElementById('action_submit').value; |
| 193 |
document.getElementById('action_submit').value = "Update Action"; |
193 |
document.getElementById('action_submit').value = _("Update action"); |
| 194 |
|
194 |
|
| 195 |
show('cancel_edit'); |
195 |
show('cancel_edit'); |
| 196 |
} |
196 |
} |
|
Lines 287-293
function setSelectByValue( selectId, value ) {
Link Here
|
| 287 |
<caption>Actions for this template</caption> |
287 |
<caption>Actions for this template</caption> |
| 288 |
|
288 |
|
| 289 |
<tr> |
289 |
<tr> |
| 290 |
<th>Change Order</th> |
290 |
<th>Change order</th> |
| 291 |
<th>Order</th> |
291 |
<th>Order</th> |
| 292 |
<th>Action</th> |
292 |
<th>Action</th> |
| 293 |
<th>Description</th> |
293 |
<th>Description</th> |
|
Lines 298-316
function setSelectByValue( selectId, value ) {
Link Here
|
| 298 |
[% FOREACH ActionsLoo IN ActionsLoop %] |
298 |
[% FOREACH ActionsLoo IN ActionsLoop %] |
| 299 |
<tr> |
299 |
<tr> |
| 300 |
<td style="white-space:nowrap;"> |
300 |
<td style="white-space:nowrap;"> |
| 301 |
<a title="Move Action Up" href="marc_modification_templates.pl?op=move_action&where=up&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]"> |
301 |
<a title="Move action up" href="marc_modification_templates.pl?op=move_action&where=up&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]"> |
| 302 |
<img src="[% interface %]/[% theme %]/img/go-up.png" border="0" alt="Go up" /> |
302 |
<img src="[% interface %]/[% theme %]/img/go-up.png" border="0" alt="Go up" /> |
| 303 |
</a> |
303 |
</a> |
| 304 |
|
304 |
|
| 305 |
<a title="Move Action To Top" href="marc_modification_templates.pl?op=move_action&where=top&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]"> |
305 |
<a title="Move action to top" href="marc_modification_templates.pl?op=move_action&where=top&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]"> |
| 306 |
<img src="[% interface %]/[% theme %]/img/go-top.png" border="0" alt="Go top" /> |
306 |
<img src="[% interface %]/[% theme %]/img/go-top.png" border="0" alt="Go top" /> |
| 307 |
</a> |
307 |
</a> |
| 308 |
|
308 |
|
| 309 |
<a title="Move Action To Bottom" href="marc_modification_templates.pl?op=move_action&where=bottom&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]"> |
309 |
<a title="Move action to bottom" href="marc_modification_templates.pl?op=move_action&where=bottom&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]"> |
| 310 |
<img src="[% interface %]/[% theme %]/img/go-bottom.png" border="0" alt="Go bottom" /> |
310 |
<img src="[% interface %]/[% theme %]/img/go-bottom.png" border="0" alt="Go bottom" /> |
| 311 |
</a> |
311 |
</a> |
| 312 |
|
312 |
|
| 313 |
<a title="Move Action Down" href="marc_modification_templates.pl?op=move_action&where=down&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]"> |
313 |
<a title="Move action down" href="marc_modification_templates.pl?op=move_action&where=down&template_id=[% ActionsLoo.template_id %]&mmta_id=[% ActionsLoo.mmta_id %]"> |
| 314 |
<img src="[% interface %]/[% theme %]/img/go-down.png" border="0" alt="Go down" /> |
314 |
<img src="[% interface %]/[% theme %]/img/go-down.png" border="0" alt="Go down" /> |
| 315 |
</a> |
315 |
</a> |
| 316 |
</td> |
316 |
</td> |
|
Lines 391-397
function setSelectByValue( selectId, value ) {
Link Here
|
| 391 |
<form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="add_action" > |
391 |
<form method="post" action="/cgi-bin/koha/tools/marc_modification_templates.pl" id="add_action" > |
| 392 |
<a name="modaction"></a> |
392 |
<a name="modaction"></a> |
| 393 |
<fieldset> |
393 |
<fieldset> |
| 394 |
<legend id="modaction_legend">Add A New Action</legend> |
394 |
<legend id="modaction_legend">Add a new action</legend> |
| 395 |
|
395 |
|
| 396 |
<select name="action" id="action" onchange="onActionChange(this);"> |
396 |
<select name="action" id="action" onchange="onActionChange(this);"> |
| 397 |
<option value="delete_field">Delete</option> |
397 |
<option value="delete_field">Delete</option> |
|
Lines 468-474
function setSelectByValue( selectId, value ) {
Link Here
|
| 468 |
<input type="text" name="description" id="description" size="60" /> |
468 |
<input type="text" name="description" id="description" size="60" /> |
| 469 |
|
469 |
|
| 470 |
<br/><br/> |
470 |
<br/><br/> |
| 471 |
<input id="action_submit" type="submit" value="Add Action" /> <a href="#modaction" id="cancel_edit" onclick="cancelEditAction();" style="display:none;">Cancel</a> |
471 |
<input id="action_submit" type="submit" value="Add action" /> <a href="#modaction" id="cancel_edit" onclick="cancelEditAction();" style="display:none;">Cancel</a> |
| 472 |
|
472 |
|
| 473 |
</fieldset> |
473 |
</fieldset> |
| 474 |
</form> |
474 |
</form> |