-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split up the representative from the thumbnail partial for easier ove…
…rride of one or the other
- Loading branch information
Showing
6 changed files
with
30 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<% if f.object.persisted? && f.object.member_ids.present? %> | ||
<%= render 'form_representative', f: f %> | ||
<%= render 'form_thumbnail', f: f %> | ||
<% end %> |
12 changes: 12 additions & 0 deletions
12
app/views/curation_concerns/base/_form_representative.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<fieldset id="representative-media"> | ||
<legend> | ||
Representative Media | ||
</legend> | ||
<p>Select the file with media that represents this <%= f.object.human_readable_type %>.</p> | ||
<%= f.select :representative_id, @form.select_files, {}, { class: 'form-control' } %> | ||
</fieldset> | ||
</div> | ||
</div> | ||
|
25 changes: 0 additions & 25 deletions
25
app/views/curation_concerns/base/_form_representative_image.html.erb
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
app/views/curation_concerns/base/_form_supplementary_fields.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<fieldset id="representative-image"> | ||
<legend> | ||
Thumbnail | ||
</legend> | ||
<p>Select the file to be used as the thumbnail for this <%= f.object.human_readable_type %>.</p> | ||
<%= f.select :thumbnail_id, @form.select_files, {}, { class: 'form-control' } %> | ||
</fieldset> | ||
</div> | ||
</div> | ||
|