Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic image upload guidance #3720

Merged
merged 1 commit into from Jan 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/views/admin/editions/_image_fields.html.erb
@@ -1,10 +1,11 @@
<%= content_tag :fieldset, id: "image_fields", class: "images multiple_file_uploads#{' right-to-left' if edition.rtl?}" do %>
<legend>Images</legend>
<legend class="add-bottom-margin">Images</legend>
<% i = 0 %>
<%= form.fields_for :images do |images_fields| %>
<% if images_fields.object.new_record? %>
<div class="file_upload well">
<h3 class="remove-top-margin">New image</h3>
<p>Images must be 960px wide and 640px tall.</p>
<%= images_fields.fields_for :image_data do |image_data_fields| %>
<%= image_data_fields.upload :file, required: false, class: 'js-upload-image-input' %>
<% end %>
Expand Down