return {images:images, image_ids:image_ids};
}
else if (document.delete_images.action.checked){
- return {images:"batch_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
+ return {images:"image_id="+document.delete_images.action.value, image_ids:document.delete_images.action.value};
}
return (-1);
}
[% INCLUDE 'patroncards-errors.inc' %]
<div class="yui-g">
<div class="yui-u first">
- <h1>Upload images</h1>
+ <h1>Upload additional images for patron cards</h1>
+ <p>Manage additional images to use as logo, decoration or background on a patron card layout.</p>
<form name="upload_images" method="post" action="/cgi-bin/koha/patroncards/image-manage.pl" enctype="multipart/form-data">
<fieldset class="brief">
- <div class="hint">
- <b>NOTE:</b> Only PNG, GIF, JPEG, XPM formats are supported. Images <b>must</b> be less than 500KB.
- </div>
+ <div class="hint">Only PNG, GIF, JPEG, XPM formats are supported. Maximum image size is 500KB.</div>
<ol>
<li>
<label for="uploadfile">Select the file to upload: </label>
<div class="hint">
This will be the name by which you will refer to this image in the patron card layout editor.
</div>
+ <div class="hint">
+ To replace an image, delete it, upload a new file and give it the same image name.
+ </div>
+
<input type="text" id="image_name" name="image_name" size="20" />
</li>
</ol>
<div class="action">
<input type="hidden" name="op" value="upload" />
- <input class="btn btn-default" id="uploadsu" type="submit" value="Upload" />
+ <input class="btn btn-default btn-default" id="uploadsu" type="submit" value="Upload" />
</div>
[% IF ( IMPORT_SUCCESSFUL ) %]
<div class="dialog message">
[% FOREACH text_field IN TABL.text_fields %]
[% IF ( text_field.select_field ) %]
<td>
- <a class="delete_image btn btn-mini" href="/cgi-bin/koha/patroncards/image-manage.pl?op=delete&image_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> Delete</a>
+ <a class="delete_image btn btn-default btn-xs" href="/cgi-bin/koha/patroncards/image-manage.pl?op=delete&image_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> Delete</a>
</td>
<td align="center"><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td>
[% ELSIF ( text_field.field_value ) %]
</table>
<div class="action">
<input type="hidden" name="op" value="delete" />
- <input class="btn btn-default" type="button" id="delete" value="Delete selected" />
+ <input class="btn btn-default btn-default" type="button" id="delete" value="Delete selected" />
</div>
[% IF ( DELETE_SUCCESSFULL ) %]
<div id="dialog" class="dialog message">