Skip to content
Snippets Groups Projects
Unverified Commit 257c1ede authored by tribut's avatar tribut :man_dancing:
Browse files

Fix more minor styling issues

parent 56070770
No related branches found
No related tags found
No related merge requests found
...@@ -58,3 +58,10 @@ ...@@ -58,3 +58,10 @@
padding: 0 8px; padding: 0 8px;
border-right: 1px dashed gray; border-right: 1px dashed gray;
} }
.hide-unless-shiftcoordinator {
display: none;
}
body[data-is-shiftcoordinator] .hide-unless-shiftcoordinator {
display: block;
}
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<%= render partial: 'shared/flash' %> <%= render partial: 'shared/flash' %>
<main class="container mx-auto mt-8 px-5 flex"> <main class="container mx-auto mt-8 px-5 flex pb-4">
<%= yield %> <%= yield %>
</main> </main>
</body> </body>
......
<% unassigned_users = @users - session.assignments.collect(&:user) %> <% unassigned_users = @users - session.assignments.collect(&:user) %>
<% if unassigned_users.length > 0 %> <% if unassigned_users.length > 0 %>
<div class="text-sm"> <div class="text-sm hide-unless-shiftcoordinator">
<%= form_with url: conference_session_assignments_path(session.conference, session), method: :post, data: { turbo_frame: dom_id(session) } do |f| %> <%= form_with url: conference_session_assignments_path(session.conference, session), method: :post, data: { turbo_frame: dom_id(session) } do |f| %>
<%= f.select :user_id, options_from_collection_for_select(unassigned_users, :id, :name), { disabled: '', prompt: '-' }, { class: "text-sm" } %> <%= f.select :user_id, options_from_collection_for_select(unassigned_users, :id, :name), { disabled: '', prompt: '-' }, { class: "text-sm" } %>
<%= f.submit "Assign", class: 'primary text-sm' %> <%= f.submit "Assign", class: 'primary text-sm' %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment