-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
166 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@import "header"; | ||
@import "page_banner"; | ||
@import "navigation_bar"; |
68 changes: 68 additions & 0 deletions
68
app/assets/stylesheets/components/_app_primary_navigation.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
.app-primary-navigation { | ||
background-color: govuk-colour("light-grey"); | ||
} | ||
|
||
.app-primary-navigation--justify-between { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.app-primary-navigation__list { | ||
@include govuk-clearfix; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.app-primary-navigation__item { | ||
@include govuk-font($size: 19); | ||
float: left; | ||
margin-right: govuk-spacing(3); | ||
margin-top: 0; | ||
|
||
&:last-child { | ||
margin-right: 0; | ||
} | ||
|
||
@include govuk-media-query($from: tablet) { | ||
margin-right: govuk-spacing(4); | ||
} | ||
} | ||
|
||
.app-primary-navigation__item--align-right { | ||
@include govuk-media-query($from: tablet) { | ||
float: right; | ||
} | ||
} | ||
|
||
.app-primary-navigation__link { | ||
@include govuk-link-common; | ||
@include govuk-link-style-no-visited-state; | ||
display: block; | ||
font-weight: bold; | ||
padding-bottom: govuk-spacing(3); | ||
padding-top: govuk-spacing(3); | ||
text-decoration: none; | ||
|
||
&:focus { | ||
background-color: $govuk-focus-colour; | ||
box-shadow: inset 0 -5px 0 0 $govuk-focus-text-colour; | ||
color: $govuk-focus-text-colour; | ||
outline: $govuk-focus-width solid transparent; | ||
} | ||
|
||
&[aria-current] { | ||
box-shadow: inset 0 -5px 0 0 $govuk-link-colour; | ||
color: $govuk-link-colour; | ||
|
||
&:hover { | ||
box-shadow: inset 0 -5px 0 0 $govuk-link-hover-colour; | ||
color: $govuk-link-hover-colour; | ||
} | ||
|
||
&:focus { | ||
box-shadow: inset 0 -7px 0 0 $govuk-focus-text-colour; | ||
color: $govuk-focus-text-colour; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class Claims::PagesController < ApplicationController | ||
def index | ||
@school = GiasSchool.first | ||
@user = User.first | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,51 @@ | ||
<%= render(NavigationBar.new( | ||
items: navigation_items(@provider), | ||
current_path: request.path, | ||
current_user: User.first | ||
current_user:, | ||
)) %> | ||
<% if @user&.schools&.first&.gias_school %> | ||
<div class="govuk-grid-row"> | ||
<br><br> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-l"><%= t("organisation_details") %></h1> | ||
<%= govuk_summary_list do |summary_list| | ||
summary_list.with_row do |row| | ||
row.with_key(text: t("organisation_name")) | ||
row.with_value(text: @school.name) | ||
end;summary_list.with_row do |row| | ||
row.with_key(text: t("organisation_name")) | ||
row.with_value(text: @user&.schools&.first&.gias_school&.name) | ||
end; summary_list.with_row do |row| | ||
row.with_key(text: t("uk_provider_reference_number")) | ||
row.with_value(text: @school.ukprn) | ||
end;summary_list.with_row do |row| | ||
row.with_key(text: t("unique_reference_number")) | ||
row.with_value(text: @school.urn) | ||
end;end %> | ||
row.with_value(text: @user&.schools&.first&.gias_school&.ukprn) | ||
end; summary_list.with_row do |row| | ||
row.with_key(text: t("unique_reference_number")) | ||
row.with_value(text: @user&.schools&.first&.gias_school&.urn) | ||
end; end %> | ||
|
||
<h2 class="govuk-heading-m govuk-!-margin-top-9">Contact details</h2> | ||
<%= govuk_summary_list do |summary_list| | ||
summary_list.with_row do |row| | ||
row.with_key(text: t("email_address")) | ||
row.with_value do %> | ||
<a href="[email protected]">[email protected]</a> | ||
<a href="[email protected]"><%= @user.email %></a> | ||
<% end;row.with_action(text: t('change'), visually_hidden_text: t("email_address"), href: '/contact-details') | ||
end;summary_list.with_row do |row| | ||
row.with_key(text: 'Telephone number') | ||
row.with_value(text: @school.telephone) | ||
row.with_value(text: @user&.schools&.first&.gias_school.telephone) | ||
row.with_action(text: t('change'), visually_hidden_text: t("email_address"), href: '/contact-details') | ||
end;summary_list.with_row do |row| | ||
row.with_key(text: 'Website') | ||
row.with_value do %> | ||
<a href="<%= @school.website %>"><%= @school.website %></a> | ||
<a href="<%= @user&.schools&.first&.gias_school&.website %>"><%= @user&.schools&.first&.gias_school&.website %></a> | ||
<% end;row.with_action(text: t('change'), visually_hidden_text: t('email_address'), href: '/contact-details') | ||
end;summary_list.with_row do |row| | ||
row.with_key(text: t('address')) | ||
row.with_value do %> | ||
<p class="govuk-body"> | ||
<%= @school.address1 %><br> | ||
<%= @school.address2 %><br> | ||
<%= @school.address3 %><br> | ||
<%= @user&.schools&.first&.gias_school&.address1 %><br> | ||
<%= @user&.schools&.first&.gias_school&.address2 %><br> | ||
<%= @user&.schools&.first&.gias_school&.address3 %><br> | ||
</p> | ||
<% end;row.with_action(text: t('change'), visually_hidden_text: t('email_address'), href: '/contact-details') | ||
end;end %> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.