Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions app/views/hyrax/base/_form_thumbnail.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<div class="row">
<div class="col-md-12">
<fieldset id="representative-image">
<legend>
<%= t("hyrax.base.form_thumbnail.legend_html") %>
</legend>
<div class="form-group">
<span class="help-block"><%= t("hyrax.base.form_thumbnail.help_html") %></span>
<% @form.select_files.each_slice(3) do |group| %>
<div class="row">
<% group.each do |filename, fs_id| %>
<div class="col-md-4">
<div class="radio-inline">
<label>
<img class="img-thumbnail" src="/downloads/<%= fs_id %>?file=thumbnail" role="presentation"/>
<input type="radio" value="<%= fs_id %>" name="thumbnail_id" <%= 'checked' if @form.thumbnail_id == fs_id %>>
<p><%= filename %></p>
</label>
</div>
</div>
<% end %>
</div>
<% end %>
</div>
</div>
</fieldset>
</div>