NIHVIVO-1574: Refactored upload image templates, and made upload images css file theme agnostic.
This commit is contained in:
parent
f62171fa59
commit
3b95c44b39
4 changed files with 168 additions and 67 deletions
|
@ -5,30 +5,29 @@
|
|||
${scripts.add("/js/jquery.js")}
|
||||
${scripts.add("/js/imageUpload/imageUploadUtils.js")}
|
||||
|
||||
${stylesheets.addFromTheme("/css/uploadImages.css")}
|
||||
${stylesheets.add("/css/uploadImages.css")}
|
||||
|
||||
<div id="photoUploadContainer">
|
||||
<section id="photoUploadContainer" role="region">
|
||||
<h2>Photo Upload</h2>
|
||||
|
||||
<#if errorMessage??>
|
||||
<div id="error-alert"><img src="${urls.images}/iconAlert.png"/>
|
||||
<section id="error-alert" role="alert"><img src="${urls.images}/iconAlert.png" alt="Error alert icon" />
|
||||
<p>${errorMessage}</p>
|
||||
</div>
|
||||
</section>
|
||||
</#if>
|
||||
|
||||
<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"/>
|
||||
<span class="or"> or
|
||||
<a class="cancelUpload" href="${cancelUrl}">Cancel</a></span>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section id="photoUploadDefaultImage" role="region">
|
||||
<h3>Current Photo</h3>
|
||||
|
||||
<img src="${thumbnailUrl}" width="115" height="115" alt="Individual photo" />
|
||||
</section>
|
||||
|
||||
<form id="photoUploadForm" action="${formAction}" enctype="multipart/form-data" method="post" role="form">
|
||||
<label>Upload a photo <span> (JPEG, GIF or PNG)</span></label>
|
||||
|
||||
<input id="datafile" type="file" name="datafile" size="30" />
|
||||
<input id="submit" type="submit" value="Upload photo"/>
|
||||
|
||||
<span class="or"> or <a class="cancel" href="${cancelUrl}">Cancel</a></span>
|
||||
</form>
|
||||
</section>
|
Loading…
Add table
Add a link
Reference in a new issue