Add radio button and convert from to WTForm

This commit is contained in:
David McDonald
2019-10-09 11:23:02 +01:00
parent 9e781177fd
commit fdf74572b9
3 changed files with 21 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
{% 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 }}
@@ -39,8 +40,9 @@
'main.send_uploaded_letter',
service_id=current_service.id,
)}}" class='page-footer'>
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input type="hidden" name="file_id" value="{{ file_id }}" />
{{ form.csrf_token }}
{{ radios(form.postage, hide_legend=true) }}
{{ form.file_id(value=file_id) }}
<button type="submit" class="button">Send 1 letter</button>
</form>
</div>