Skip to content

Commit

Permalink
Merge pull request #220 from lsa-mis/review-styles-on-index-pages
Browse files Browse the repository at this point in the history
Review styles on index pages
  • Loading branch information
britaumich authored Jul 28, 2024
2 parents 177de20 + 3a2862e commit b80376e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/views/rooms/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class="py-3">
<div class="container-fluid">

<div class="d-flex flex-row justify-content-between align-items-center mb-3">
<h1>Room: <%= @room.full_name %></h1>
<div class="d-flex align-items-end flex-column gap-1">
Expand All @@ -9,8 +10,8 @@

<%= render @room %>

<div class="py-3 w-50">
<div class="d-flex flex-row align-items-center justify-content-between">
<div class="w-75">
<div class="d-flex flex-row align-items-center gap-4">
<h2>Common Attributes</h2>
<%= link_to common_attributes_path, class: 'text-primary link-underline-primary link-underline-opacity-0 link-underline-opacity-100-hover' do %>
Edit Common Attributes <i class="bi bi-pencil-square text-primary"></i>
Expand All @@ -19,8 +20,8 @@
<%= render 'attributes_list', attributes: @common_attributes %>
</div>

<div class="py-3 w-50">
<div class="d-flex flex-row align-items-center justify-content-between">
<div class="w-75">
<div class="d-flex flex-row align-items-center gap-4">
<h2>Specific Attributes</h2>
<%= link_to room_specific_attributes_path(@room), class: 'text-primary link-underline-primary link-underline-opacity-0 link-underline-opacity-100-hover' do %>
Edit Specific Attributes <i class="bi bi-pencil-square text-primary"></i>
Expand All @@ -29,15 +30,15 @@
<%= render 'attributes_list', attributes: @room.active_specific_attributes %>
</div>

<div class="py-3 w-50">
<div class="w-75">
<div class="d-flex flex-row align-items-center justify-content-between">
<h2>Resources</h2>
</div>
<%= render 'resources_list', resources: @room.active_resources %>
</div>

<% if is_admin? %>
<div class="">
<div class="w-75">
<h2>Notes:</h2>
<%= turbo_frame_tag "new_note" do %>
<%= render "notes/form", note: @new_note %>
Expand Down

0 comments on commit b80376e

Please sign in to comment.