Skip to content

Commit

Permalink
[wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgriffiniii committed Nov 3, 2022
1 parent 770caa4 commit b3a1639
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/views/works/_curator_controlled_display.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@

<!-- Collection field -->
<div class="field">
Collections: <span class="required-field">*</span><br>
<% current_user.submitter_collections.each do |collection| %>
<input id="collection" name="collection" class="input-text-long" value="<%= collection.title %>" readonly/>
<% end %>
Collection: <span class="required-field">*</span><br>
<select id="collection_id" name="collection_id" class="input-text-long" >
<% current_user.submitter_collections.each do |collection| %>
<option value="<%=collection.id%>" <%= @work.collection_id == collection.id ? "selected" : "" %>><%=collection.title%></option>
<% end %>
</select>
</div>

<!-- Collection Tags -->
Expand Down
1 change: 1 addition & 0 deletions spec/system/work_edit_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

before do
stub_datacite(host: "api.datacite.org", body: datacite_register_body(prefix: "10.34770"))
page.driver.browser.manage.window.resize_to(2000, 2000)
end

let(:contents1) do
Expand Down

0 comments on commit b3a1639

Please sign in to comment.