szurubooru/client/html/file_dropper.tpl
rr- 5467ca6b7e client/posts: improve placeholder in file dropper
The default one was too long to fit in the sidebar
2017-02-21 19:09:18 +01:00

26 lines
804 B
Smarty

<div class='file-dropper-holder'>
<input type='file' id='<%- ctx.id %>'/>
<label class='file-dropper' for='<%- ctx.id %>' role='button'>
<% if (ctx.allowMultiple) { %>
Drop files here!
<% } else { %>
Drop file here!
<% } %>
<br/>
Or just click on this box.
<% if (ctx.extraText) { %>
<br/>
<small><%= ctx.extraText %></small>
<% } %>
</label>
<% if (ctx.allowUrls) { %>
<div class='url-holder'>
<input type='text' name='url' placeholder='<%- ctx.urlPlaceholder %>'/>
<% if (ctx.lock) { %>
<button>Confirm</button>
<% } else { %>
<button>Add URL</button>
<% } %>
</div>
<% } %>
</div>