Skip to content

Commit

Permalink
Style the add to collection modal
Browse files Browse the repository at this point in the history
Fixes #1194
  • Loading branch information
jcoyne committed Jun 14, 2017
1 parent a246a57 commit e2bf67b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
13 changes: 13 additions & 0 deletions app/assets/stylesheets/hyrax/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,19 @@ body.dashboard {
margin-bottom: 0;
}

// The select collection modal for batch operations
.collection-list-modal {
.modal-content {
float: left;
.modal-header,
.modal-footer,
.modal-body {
float: left;
width: 100%;
}
}
}

.panel {
border: 1px solid $admin-panel-border-color;
float: left;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div role="dialog" class="modal fade" id="collection-list-container" tabindex="-1" aria-labelledby="col_add_title" >
<div role="dialog" class="modal collection-list-modal fade" id="collection-list-container" tabindex="-1" aria-labelledby="col_add_title" >
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down
4 changes: 1 addition & 3 deletions app/views/hyrax/collections/_sort_and_per_page.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<div class="batch-info">
<div>
<%= render 'hyrax/collections/form_for_select_collection', user_collections: @user_collections %>
</div>
<%= render 'hyrax/collections/form_for_select_collection', user_collections: @user_collections %>

<% if params[:action] == "edit" && @response.response['numFound'] > 1 %>
<div class="batch-toggle">
Expand Down
4 changes: 1 addition & 3 deletions app/views/hyrax/my/_search_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
</div>

<div class="batch-info">
<div>
<%= render 'hyrax/collections/form_for_select_collection', user_collections: @user_collections %>
</div>
<%= render 'hyrax/collections/form_for_select_collection', user_collections: @user_collections %>

<div class="batch-toggle">
<% session[:batch_edit_state] = "on" %>
Expand Down

0 comments on commit e2bf67b

Please sign in to comment.