2010-06-30 13:44:33 +00:00
|
|
|
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
|
|
|
|
|
|
|
<#-- Upload a replacement main image for an Individual. -->
|
|
|
|
|
2010-07-02 19:18:44 +00:00
|
|
|
|
|
|
|
|
2010-07-01 20:10:29 +00:00
|
|
|
${scripts.add("/js/imageUpload/validateUpload.js")}
|
2010-07-02 19:18:44 +00:00
|
|
|
${scripts.add("/js/imageUpload/confirmPhotoDeletion.js")}
|
2010-07-01 20:10:29 +00:00
|
|
|
|
|
|
|
|
2010-06-30 13:44:33 +00:00
|
|
|
${stylesheets.addFromTheme("/uploadImages.css")}
|
|
|
|
|
|
|
|
<#if errorMessage??>
|
|
|
|
<h2>${errorMessage}</h2>
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
<div id="photoUploadContainer">
|
|
|
|
<h2>Photo Upload</h2>
|
|
|
|
<div id="photoUploadDefaultImageContainer">
|
|
|
|
<h6>Current Photo</h6>
|
|
|
|
<img src="${thumbnailUrl}" width="115" height="115" /> <br />
|
2010-07-02 19:18:44 +00:00
|
|
|
<a href='javascript:delete_photo("${deleteUrl}");'>Delete photo</a></div>
|
2010-06-30 13:44:33 +00:00
|
|
|
<div id="photoUploadForm">
|
2010-07-01 20:10:29 +00:00
|
|
|
<form action="${formAction}" enctype="multipart/form-data" method="post" onSubmit="return validate_upload_file(this)">
|
2010-07-01 14:35:53 +00:00
|
|
|
<label>Replace Photo <span> (JPEG, GIF or PNG. Max Size: 50 MB)</span></label>
|
2010-06-30 13:44:33 +00:00
|
|
|
<input type="file" name="datafile" size="30">
|
2010-07-01 14:35:53 +00:00
|
|
|
<input type="submit" value="Upload photo"> or <a href="${cancelUrl}">Cancel</a>
|
2010-06-30 13:44:33 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|