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

ANW-699: moving 'add item' button to bottom for defined lists #2599

Merged
merged 1 commit into from
Jan 26, 2022
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions frontend/app/assets/stylesheets/archivesspace/notes.less
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,7 @@
}
}
}

.add-item-btn-bottom {
margin: 5px;
}
6 changes: 3 additions & 3 deletions frontend/app/views/notes/_template.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -700,15 +700,15 @@
<section class="subrecord-form">
<h4 class="subrecord-form-heading">
<%= I18n.t("note_definedlist.items") %>
<% if not form.readonly? %>
<button class="btn btn-xs btn-default pull-right add-item-btn"><%= I18n.t("note._frontend.action.note_definedlist_item") %></button>
<% end %>
</h4>
<div class="subrecord-form-container">
<%= form.list_for(form["items"], "items[]") do |item| %>
<% form.emit_template("definedlist_item", item) %>
<% end %>
</div>
<% if not form.readonly? %>
<button class="btn btn-xs btn-default add-item-btn add-item-btn-bottom"><%= I18n.t("note._frontend.action.note_definedlist_item") %></button>
<% end %>
</section>
</div>
</div>
Expand Down