-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9644 from alphagov/3139-move-add-another-pattern-…
…to-govukpublishingcomponents Migrate add another usage to govuk_publishing_components impementation
- Loading branch information
Showing
23 changed files
with
241 additions
and
587 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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<%= contact_form.fields_for :contact_numbers, contact_number do |contact_number_form| %> | ||
<%= render "govuk_publishing_components/components/input", { | ||
label: { | ||
text: "Label", | ||
}, | ||
name: "#{name}[contact_numbers_attributes][#{index}][label]", | ||
id: "#{id}_contact_numbers_attributes_#{index}_label", | ||
heading_size: "s", | ||
value: contact_number_form.object.label, | ||
} %> | ||
|
||
<%= render "govuk_publishing_components/components/input", { | ||
label: { | ||
text: "Number", | ||
}, | ||
name: "#{name}[contact_numbers_attributes][#{index}][number]", | ||
id: "#{id}_contact_numbers_attributes_#{index}_number", | ||
heading_size: "s", | ||
value: contact_number_form.object.number, | ||
} %> | ||
<% 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
12 changes: 12 additions & 0 deletions
12
app/views/admin/fatality_notices/_casualty_fields.html.erb
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,12 @@ | ||
<%= form.fields_for :fatality_notice_casualties, casualty do |fatality_form| %> | ||
<%= render "govuk_publishing_components/components/textarea", { | ||
label: { | ||
text: "Personal details", | ||
bold: true, | ||
}, | ||
value: fatality_form.object.personal_details, | ||
name: "edition[fatality_notice_casualties_attributes][#{index}][personal_details]", | ||
id: "edition_fatality_notice_casualties_#{index}_personal_details", | ||
rows: 2, | ||
} %> | ||
<% 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.