- <!-- TMPL_IF NAME="CAN_user_tools" -->
- <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
- <!-- TMPL_IF NAME="picture" -->
- <fieldset class="brief"><legend>Manage Patron Image</legend>
- <div class="hint">To update the image for <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="surname" -->, enter the name of the new image file to upload and click 'Upload.' <br />Click the 'Delete' button to remove the current image. <br /> Only PNG, GIF, JPEG, XPM formats are supported.</div>
- <!-- /TMPL_IF -->
- <!-- TMPL_UNLESS NAME="picture" -->
- <fieldset class="brief"><legend>Upload Patron Image</legend>
- <div class="hint"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> does not currently have an image available. To import an image for <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="surname" -->, enter the name of an image file to upload. <br /> Only PNG, JPEG, XPM formats are supported.</div>
- <!-- /TMPL_UNLESS -->
- <input type="hidden" id="image" name="filetype" value="image" />
- <input type="hidden" id="cardnumber" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
- <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
- <ol>
- <li>
- <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
- </li>
- </ol>
- <fieldset class="action">
- <input type="submit" value="Upload" class="submit" />
- <input name="op" type="hidden" value="Upload" />
- <!-- TMPL_IF NAME="picture" --><a href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->" class="delete">Delete</a><!-- /TMPL_IF -->
- </fieldset>
+ <!-- TMPL_IF NAME="CAN_user_tools_batch_upload_patron_images" -->
+ <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
+ <fieldset class="brief">
+ <!-- TMPL_IF NAME="picture" -->
+ <legend>Manage Patron Image</legend>
+ <div class="hint">To update the image for <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="surname" -->, select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
+ <!-- TMPL_ELSE -->
+ <legend>Upload Patron Image</legend>
+ <div class="hint"><!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> does not currently have an image available. To import an image for <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="surname" -->, enter the name of an image file to upload.
+ <!-- /TMPL_IF -->
+ <br />Only PNG, GIF, JPEG, XPM formats are supported.
+ </div>
+ <input type="hidden" id="image" name="filetype" value="image" />
+ <input type="hidden" id="cardnumber" name="cardnumber" value="<!-- TMPL_VAR NAME="cardnumber" -->" />
+ <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
+ <ol>
+ <li>
+ <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" />
+ </li>
+ </ol>
+ <fieldset class="action">
+ <input type="submit" value="Upload" class="submit" />
+ <input name="op" type="hidden" value="Upload" />
+ <!-- TMPL_IF NAME="picture" --><a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&cardnumber=<!-- TMPL_VAR NAME="cardnumber" -->&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->" class="delete">Delete</a><!-- /TMPL_IF -->