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-09 18:55:04 +00:00
|
|
|
${scripts.add("/js/jquery.js")}
|
|
|
|
${scripts.add("/js/imageUpload/imageUploadUtils.js")}
|
2010-07-01 20:10:29 +00:00
|
|
|
|
2011-01-06 21:12:46 +00:00
|
|
|
${stylesheets.add("/css/uploadImages.css")}
|
2010-06-30 13:44:33 +00:00
|
|
|
|
2011-01-06 21:12:46 +00:00
|
|
|
<section id="photoUpload" role="region">
|
2010-10-01 14:55:03 +00:00
|
|
|
<h2>Photo Upload</h2>
|
2011-01-06 21:12:46 +00:00
|
|
|
|
2010-10-01 14:55:03 +00:00
|
|
|
<#if errorMessage??>
|
2011-01-06 21:12:46 +00:00
|
|
|
<section id="error-alert" role="alert"><img src="${urls.images}/iconAlert.png" alt="Error alert icon" />
|
2010-10-01 14:55:03 +00:00
|
|
|
<p>${errorMessage}</p>
|
2011-01-06 21:12:46 +00:00
|
|
|
</section>
|
2010-10-01 14:55:03 +00:00
|
|
|
</#if>
|
2011-01-06 21:12:46 +00:00
|
|
|
|
|
|
|
<section id="photoUploadDefaultImage" role="region">
|
|
|
|
<h3>Current Photo</h3>
|
|
|
|
<img src="${thumbnailUrl}" width="115" alt="Individual photo" />
|
|
|
|
|
2010-10-01 14:55:03 +00:00
|
|
|
<a class="thumbnail" href="${deleteUrl}">Delete photo</a>
|
2011-01-06 21:12:46 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<form id="photoUploadForm" action="${formAction}" enctype="multipart/form-data" method="post" role="form">
|
|
|
|
<label>Replace Photo <span> (JPEG, GIF or PNG)</span></label>
|
|
|
|
|
|
|
|
<input type="file" name="datafile" size="30">
|
2011-02-03 17:03:08 +00:00
|
|
|
<input class="submit" type="submit" value="Upload photo">
|
2011-01-06 21:12:46 +00:00
|
|
|
|
|
|
|
<span class="or"> or <a class="cancel" href="${cancelUrl}">Cancel</a></span>
|
|
|
|
</form>
|
|
|
|
</section>
|