Skip to content

Commit

Permalink
Add change link to suitability records
Browse files Browse the repository at this point in the history
This is to match the designs in the prototype.
  • Loading branch information
thomasleese committed Jul 22, 2024
1 parent f1c612b commit 7a191da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/application.sass.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@ ul.autocomplete__menu {
.app-background-inset-text {
background-color: #f3f2f1;
}

.app-float-right {
float: right !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def index
:application_forms,
).sort_by(&:name),
)

render layout: "full_from_desktop"
end

def new
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
<% end %>

<article>
<ul class="govuk-summary-card__actions app-float-right">
<li class="govuk-summary-card__action">
<%= govuk_link_to "Change", [:edit, :assessor_interface, suitability_record] %>
</li>
</ul>

<h2 class="govuk-heading-m"><%= govuk_link_to suitability_record.name, [:edit, :assessor_interface, suitability_record] %></h2>

<%= govuk_summary_list(actions: false) do |summary_list|
Expand Down

0 comments on commit 7a191da

Please sign in to comment.