Commit b8e8cc12 authored by Klaus Stein's avatar Klaus Stein
Browse files

Add date format instructions in map edit

parent 341e2716
......@@ -91,4 +91,11 @@ form.map {
padding: 1ex;
}
}
.instructions {
opacity: 0.7;
font-style: italic;
kbd {
font-style: normal;
}
}
}
......@@ -21,7 +21,8 @@
<tr class="field"><th><%= form.label :categories %></th><td><%= form.collection_select(:category_ids, Category.all, :id, :name, {label: 'Category(s)'}, {multiple: true}) %></td></tr>
<tr class="field"><th><%= form.label :description %></th><td><%= form.text_area :description %></td></tr>
<tr class="field"><th>Dates:</th>
<td><%= form.fields_for :itemdates do |itemdate_fields| %>
<td><div class="instructions">[Date format: <kbd>yyyy-mm-dd</kbd> (e.g. <kbd>1944-02-11</kbd>)]</div>
<%= form.fields_for :itemdates do |itemdate_fields| %>
<%= render "itemdates_form", form: itemdate_fields %>
<% end %>
<div data-nested-form-target="target"></div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment