vitro/webapp/web/templates/freemarker/body/imageUpload/imageUpload-replaceImage.ftl

35 lines
1.2 KiB
Text
Raw Normal View History

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. -->
${scripts.add("/js/jquery.js")}
${scripts.add("/js/imageUpload/imageUploadUtils.js")}
2010-06-30 13:44:33 +00:00
${stylesheets.addFromTheme("/uploadImages.css")}
<#if errorMessage??>
<script type="text/javascript">
window.onload = load;
function load(){
alert("${errorMessage}");
}
</script>
2010-06-30 13:44:33 +00:00
</#if>
<div id="photoUploadContainer">
<h2>Photo Upload</h2>
<div id="photoUploadDefaultImageContainer">
<h6>Current Photo</h6>
2010-07-09 19:56:27 +00:00
<img src="${thumbnailUrl}" width="115" />
<a class="delete" href="${deleteUrl}" title="delete the current photo">Delete photo</a></div>
2010-06-30 13:44:33 +00:00
<div id="photoUploadForm">
<form action="${formAction}" enctype="multipart/form-data" method="post">
<label>Replace Photo <span> (JPEG, GIF or PNG)</span></label>
<input type="file" name="datafile" size="30">
<input type="submit" value="Upload photo"> or <a class="cancelUpload" href="${cancelUrl}">Cancel</a>
2010-06-30 13:44:33 +00:00
</form>
</div>
</div>