Skip to content

Commit

Permalink
Merge pull request #5833 from rubyforgood/fix/5756-fix-fund-request-s…
Browse files Browse the repository at this point in the history
…tyling

Fix/5756 fix fund request styling
  • Loading branch information
FireLemons authored Jun 19, 2024
2 parents 66ffc4e + e23129d commit 7635f19
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion app/views/casa_cases/_generate_report_modal.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<% id = "generate-docx-report-modal" %>
<%= render(Modal::OpenButtonComponent.new(
target: id,
klass: "d-inline main-btn btn-hover btn-sm success-btn pull-right mb-2")) do %>
klass: "d-inline main-btn btn-hover btn-sm success-btn pull-right")) do %>
Generate Report
<% end %>
<%= render(Modal::GroupComponent.new(id: id)) do |component| %>
Expand Down
52 changes: 27 additions & 25 deletions app/views/casa_cases/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
<div class="row">
<%= render "thank_you_modal" %>
<div class="col-sm-12 form-header my-4">
<h1 class="pull-left"><%= @casa_case.decorate.transition_aged_youth_icon %>CASA Case Details</h1>
<%- if policy(:case_contact).new? & @casa_case.active? %>
<%= link_to new_case_contact_path(case_contact: {casa_case_id: @casa_case.id}), class: "main-btn primary-btn btn-sm btn-hover pull-left casa-case-button" do %>
<i class="lni lni-plus mr-10"></i>
New Case Contact
<div class="col-sm-12 form-header d-flex flex-wrap justify-content-between">
<h1 class="pull-left my-4"><%= @casa_case.decorate.transition_aged_youth_icon %>CASA Case Details</h1>
<div class="d-inline-flex flex-wrap my-4 gap-3">
<%- if policy(:case_contact).new? & @casa_case.active? %>
<%= link_to new_case_contact_path(case_contact: {casa_case_id: @casa_case.id}), class: "main-btn primary-btn btn-sm btn-hover pull-left" do %>
<i class="lni lni-plus mr-10"></i>
New Case Contact
<% end %>
<%- end %>
<% if @casa_case.active? %>
<%= link_to edit_casa_case_path(@casa_case), class: "main-btn primary-btn btn-sm btn-hover pull-left" do %>
<i class="lni lni-pencil mr-10"></i>
Edit Case Details
<% end %>
<% end %>
<%- end %>
<% if @casa_case.active? %>
<%= link_to edit_casa_case_path(@casa_case), class: "main-btn primary-btn btn-sm btn-hover pull-left casa-case-button pull-left casa-case-button" do %>
<i class="lni lni-pencil mr-10"></i>
Edit Case Details
<% if @casa_case.in_transition_age? %>
<%= link_to(casa_case_emancipation_path(@casa_case),
class: "main-btn primary-btn btn-sm") do %>
Emancipation
<%= render BadgeComponent.new(text: @casa_case.decorate.emancipation_checklist_count,
type: :light,
margin: false) %>
<% end %>
<% end %>
<% end %>
<% if @casa_case.in_transition_age? %>
<%= link_to(casa_case_emancipation_path(@casa_case),
class: "main-btn primary-btn btn-sm pull-left casa-case-button") do %>
Emancipation
<%= render BadgeComponent.new(text: @casa_case.decorate.emancipation_checklist_count,
type: :light,
margin: false) %>
<% if @casa_case.casa_org.show_fund_request %>
<%= link_to("New Fund Request", new_casa_case_fund_request_path(@casa_case),
class: "main-btn primary-btn btn-sm") %>
<% end %>
<% end %>
<%= render "casa_cases/generate_report_modal" %>
<% if @casa_case.casa_org.show_fund_request %>
<%= link_to("New Fund Request", new_casa_case_fund_request_path(@casa_case),
class: "btn btn-primary pull-left casa-case-button") %>
<% end %>
<%= render "casa_cases/generate_report_modal" %>
</div>
</div>
</div>
<div class="card card-container">
Expand Down

0 comments on commit 7635f19

Please sign in to comment.