mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 11:49:13 -04:00
Adds ability to have inline radio buttons using the fieldset.inline functionality from gov.uk elements. Then implements this for the radio buttons for choosing postage class. Also overrides the gov uk elements styling for the inline radio buttons to place them slightly closer together as this looks better.
51 lines
1.6 KiB
HTML
51 lines
1.6 KiB
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/banner.html" import banner_wrapper %}
|
|
{% from "components/page-header.html" import page_header %}
|
|
{% from "components/radios.html" import radios %}
|
|
|
|
{% block service_page_title %}
|
|
{{ original_filename }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
{% if status == 'invalid' and error %}
|
|
{% call banner_wrapper(type='dangerous') %}
|
|
<h1 class="banner-title">{{ error.title }}</h1>
|
|
{% if error.detail %}
|
|
<p>{{ error.detail | safe }}</p>
|
|
{% endif %}
|
|
{% endcall %}
|
|
{% elif current_service.trial_mode %}
|
|
{% call banner_wrapper(type='dangerous') %}
|
|
{% with
|
|
count_of_recipients=1
|
|
%}
|
|
{% include "partials/check/trying-to-send-letters-in-trial-mode.html" %}
|
|
{% endwith %}
|
|
{% endcall %}
|
|
{% else %}
|
|
{{ page_header(
|
|
original_filename,
|
|
back_link=url_for('main.upload_letter', service_id=current_service.id)
|
|
) }}
|
|
{% endif %}
|
|
|
|
<div class="letter-sent">
|
|
{{ template|string }}
|
|
</div>
|
|
|
|
{% if status == 'valid' and current_service.live %}
|
|
<div class="js-stick-at-bottom-when-scrolling">
|
|
<form method="post" enctype="multipart/form-data" action="{{url_for(
|
|
'main.send_uploaded_letter',
|
|
service_id=current_service.id,
|
|
)}}" class='page-footer'>
|
|
{{ form.csrf_token }}
|
|
{{ radios(form.postage, hide_legend=true, inline=True) }}
|
|
{{ form.file_id(value=file_id) }}
|
|
<button type="submit" class="button">Send 1 letter</button>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|