2018-05-30 14:49:18 +00:00
|
|
|
<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
|
|
|
|
<div class='modal' id='uploadBannerImage'>
|
|
|
|
<%= render 'common/modal_header', title: 'Banner Image' %>
|
|
|
|
<div class='modal-body'>
|
|
|
|
|
|
|
|
<fieldset class='u-centered'>
|
|
|
|
<p>Select and upload a banner image for this page.</p>
|
|
|
|
<p class='u-marginBottom--20'>For best results, the image should be <strong>1000px by 120px</strong> in size.</p>
|
|
|
|
<form autosubmit action='<%= end_point %>' method='put' data-reload>
|
2018-05-30 15:35:37 +00:00
|
|
|
<div class='image-upload image-upload--banner' style='background-image:url(<%= image_url ? image_url : '' %>)'>
|
2018-05-30 14:49:18 +00:00
|
|
|
<span><i class='fa fa-image'></i> Select</span>
|
|
|
|
<input type='file' name="<%= input_name %>" required>
|
|
|
|
</div>
|
|
|
|
<p class='u-color--red'>
|
|
|
|
<!--= show_if (length image_upload.error) -->
|
|
|
|
<small><!--= put image_upload.error --></small>
|
|
|
|
</p>
|
2018-05-30 15:35:37 +00:00
|
|
|
<div class='u-width--500 u-margin--auto'>
|
2018-05-30 14:49:18 +00:00
|
|
|
<button type='submit' class='button--small u-width--full u-marginTop--20' data-loading='Uploading...'>
|
|
|
|
Upload <%= image_url ? 'Different Image' : '' %>
|
|
|
|
</button>
|
|
|
|
<a class='button--small red u-marginTop--10 u-width--full' <%= image_url ? '' : 'disabled' %>>
|
2018-07-05 15:58:00 +00:00
|
|
|
<!--= on 'click' (confirm 'Are you sure?' remove_banner_image ) -->
|
2018-05-30 14:49:18 +00:00
|
|
|
Remove Image
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
</div> <!-- modal-body -->
|
|
|
|
</div>
|