View edit service notes page

This commit is contained in:
Pea Tyczynska
2021-01-15 13:36:12 +00:00
parent 5818942908
commit 6d7b16fd59
4 changed files with 42 additions and 1 deletions

View File

@@ -1195,7 +1195,7 @@ def edit_service_notes(service_id):
form = EditServiceNotesForm()
if request.method == 'GET':
form.name.data = current_service.notes
form.notes.data = current_service.notes
if form.validate_on_submit():

View File

@@ -0,0 +1,28 @@
{% extends "withnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
{% from "components/textbox.html" import textbox %}
{% block service_page_title %}
Data retention
{% endblock %}
{% block maincolumn_content %}
{{ page_header(
'Edit service notes',
back_link=url_for('.service_settings', service_id=current_service.id)
) }}
{% call form_wrapper() %}
{{ textbox(
form.notes,
rows=4,
width='1-1',
autofocus=True,
autosize=True,
) }}
{{ page_footer('Save') }}
{% endcall %}
{% endblock %}