Skip to content

Commit

Permalink
Show 'Uploading' prefix on attachment file name and correct font styl…
Browse files Browse the repository at this point in the history
…ing. Update first name label on support letters form.
  • Loading branch information
DaniBitZesty committed Aug 29, 2024
1 parent e30117c commit ddffcb4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ window.SupportLetters =

textContainer = parent.find('.support-letter-attachment-container')
textContainer.removeClass('govuk-!-display-none')
textContainer.find('.flex').html('<p class="govuk-body">' + filename + '</p>')
textContainer.find('.flex').html('<p class="govuk-body">Uploading ' + filename + '</p>')
hiddenInput = $("<input class='js-support-letter-attachment-id' type='hidden' name='#{$el.attr("name")}' value='#{data.result['id']}' />")
parent.append(hiddenInput)
parent.find('.js-support-letter-attachment').addClass('govuk-!-display-none')
Expand Down
2 changes: 1 addition & 1 deletion app/views/form/support_letters/_form.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
= render "qae_form/question_ref", question: question, ref: "C #{idx}.1"
span[class="govuk-body govuk-!-font-size-24 govuk-!-font-weight-bold govuk-!-display-block"]
= "Name of the person who wrote the #{first_or_second} letter of support"
= ff.input :first_name, label: "First Name:", input_html: { class: "form-control medium" }
= ff.input :first_name, label: "First name:", input_html: { class: "form-control medium" }
= ff.input :last_name, label: "Surname:", input_html: { class: "form-control medium" }

legend.govuk-label aria-label="C #{idx}.2: Relationship to Group"
Expand Down
2 changes: 1 addition & 1 deletion app/views/qae_form/_supporter_fields.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ li.borderless[class=class_names("js-add-example", "js-support-letter-received" =
' Name of the person who wrote the #{first_or_second} letter of support
.govuk-form-group.question-block.question-required
label.govuk-label for="form[#{question.key}][#{index}][first_name]"
' First Name:
' First name:
span.govuk-error-message
input.js-support-letter-field.js-support-letter-first-name.js-trigger-autosave.govuk-input autocomplete="off" class="js-trigger-autosave medium" name="form[#{question.key}][#{index}][first_name]" id="form[#{question.key}][#{index}][first_name]" type="text" value=supporter["first_name"] *possible_read_only_ops(question.step.opts[:id])
.govuk-form-group.question-block.question-required
Expand Down
2 changes: 1 addition & 1 deletion app/views/support_letters/_attachment.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.support-letter-attachment-container class="#{'govuk-!-display-none' unless attachment_id.present?}"
.flex
.support-letter-attachment-filename class="govuk-!-font-size-19"
.support-letter-attachment-filename class="govuk-body govuk-!-font-size-19"
= render "shared/attachment_with_virus_check_status", item: file, mount_name: :attachment
button.govuk-link.js-remove-support-letter-attachment class="govuk-!-font-size-19" data-module="govuk-button" type="button"
| Remove
Expand Down

0 comments on commit ddffcb4

Please sign in to comment.