NIHVIVO-649 Add freemarker template flattening to build. Includes flattening of template directory structure in vivo theme, and renaming of templates as needed for clarity.

This commit is contained in:
rjy7 2010-07-08 17:10:31 +00:00
parent f71ef30358
commit 5a11344775
27 changed files with 54 additions and 52 deletions

View file

@ -0,0 +1,36 @@
<#-- $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/imageUpload/validateUpload.js")}
${scripts.add("/js/imageUpload/confirmPhotoDeletion.js")}
${stylesheets.addFromTheme("/uploadImages.css")}
<#if errorMessage??>
<script type="text/javascript">
window.onload = load;
function load(){
alert("${errorMessage}");
}
</script>
</#if>
<div id="photoUploadContainer">
<h2>Photo Upload</h2>
<div id="photoUploadDefaultImageContainer">
<h6>Current Photo</h6>
<img src="${thumbnailUrl}" width="115" height="115" />
<a href='javascript:delete_photo("${deleteUrl}");'>Delete photo</a></div>
<div id="photoUploadForm">
<form action="${formAction}" enctype="multipart/form-data" method="post" onSubmit="return validate_upload_file(this)">
<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>
</form>
</div>
</div>