Skip to content

Commit c70a024

Browse files
authored
Merge pull request #17 from IUBLibTech/iulrdc-33_access_instructions_markdown
[IULRDC-33] use markdown textarea for rights_notes (access instructions)
2 parents 1ec0d1e + e083827 commit c70a024

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/views/hyrax/base/_attribute_rows.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%#= presenter.attribute_to_html(:abstract, label: 'Summary', render_as: :markdown, html_dl: true) %>
22
<%#= presenter.attribute_to_html(:description, label: 'Description', render_as: :markdown, html_dl: true) %>
33
<%= presenter.attribute_to_html(:related_url, label: 'Documentation', render_as: :external_link, html_dl: true) %>
4-
<%= presenter.attribute_to_html(:rights_notes, label: 'Access Instructions', html_dl: true) %>
4+
<%= presenter.attribute_to_html(:rights_notes, label: 'Access Instructions', render_as: :markdown, html_dl: true) %>
55
<%= presenter.attribute_to_html(:time_period, label: 'Timeframe', html_dl: true) %>
66
<%= presenter.attribute_to_html(:subject, label: 'Keyword Subject', html_dl: true) %>
77
<%= presenter.attribute_to_html(:geographic_location, label: 'Spatial Subject', html_dl: true) %>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<% if f.object.multiple? key %>
2+
<%= f.input :rights_notes, as: :multi_value, input_html: { rows: '14', type: 'textarea'}, required: f.object.required?(key) %>
3+
<% else %>
4+
<%= f.input :rights_notes, as: :text, input_html: { rows: '14' }, required: f.object.required?(key) %>
5+
<% end %>

0 commit comments

Comments
 (0)