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

47 lines
1.4 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")}
<noscript>
<div id="javascriptDisableWrapper">
<div id="javascriptDisableContent">
<img src="${urls.siteIcons}/iconAlertBig.png" alt="Alert Icon"/>
<p>In order to upload or edit a photo, you'll need to enable JavaScript.</p>
</div>
</div>
</noscript>
2010-06-30 13:44:33 +00:00
<#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" class="hidden">
2010-06-30 13:44:33 +00:00
<h2>Photo Upload</h2>
<div id="photoUploadDefaultImageContainer">
<h6>Current Photo</h6>
<img src="${thumbnailUrl}" width="115" height="115" /> </div>
<div id="photoUploadForm">
<form action="${formAction}" enctype="multipart/form-data" method="post">
<label>Upload a photo <span> (JPEG, GIF or PNG)</span></label>
<input id="datafile" 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>