You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.2 KiB
25 lines
1.2 KiB
<%= render partial: "form/guidance/#{question.top_guidance_partial}" if question.top_guidance? %> |
|
|
|
<div class="govuk-form-group"> |
|
<label class="govuk-label govuk-label--<%= label_size(page_header, conditional, question) %>" for="lettings-log-<%= question.id %>-field"> |
|
<%= question.header.html_safe %> |
|
</label> |
|
<div class="govuk-hint"> |
|
<%= question.hint_text %> |
|
</div> |
|
<div class="govuk-input__wrapper"> |
|
<span class="govuk-input__prefix"><%= question.prefix %></span> |
|
<output id="lettings-log-<%= question.id %>-field" |
|
class="govuk-input govuk-input--width-<%= question.width %> app-input--output" |
|
min="<%= question.min %>" |
|
step="<%= question.step %>" |
|
type="number" |
|
name="lettings_log[tcharge]" |
|
for="<%= question.fields_added.present? ? question.fields_added.map { |x| "lettings-log-#{x}-field" }.join(" ") : "" %>"> |
|
<%= format_money_input(log: lettings_log, question:) %> |
|
</output> |
|
<span class="govuk-input__suffix"><%= question.suffix_label(lettings_log) %></span> |
|
</div> |
|
</div> |
|
|
|
<%= render partial: "form/guidance/#{question.bottom_guidance_partial}" if question.bottom_guidance? %>
|
|
|