mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 13:18:24 -04:00
Update organisation notes
This commit is contained in:
@@ -542,12 +542,12 @@ def edit_organisation_notes(org_id):
|
||||
if form.validate_on_submit():
|
||||
|
||||
if form.notes.data == current_organisation.notes:
|
||||
return redirect(url_for('.organisation_settings', service_id=org_id))
|
||||
return redirect(url_for('.organisation_settings', org_id=org_id))
|
||||
|
||||
current_organisation.update(
|
||||
notes=form.notes.data
|
||||
)
|
||||
return redirect(url_for('.organisation_settings', service_id=org_id))
|
||||
return redirect(url_for('.organisation_settings', org_id=org_id))
|
||||
|
||||
return render_template(
|
||||
'views/organisations/organisation/settings/edit-organisation-notes.html',
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
{% call row() %}
|
||||
{{ text_field('Notes')}}
|
||||
{{ optional_text_field(current_service.notes, default="No notes yet", wrap=True) }}
|
||||
{{ optional_text_field(current_org.notes, default="No notes yet", wrap=True) }}
|
||||
{{ edit_field('Change', url_for('.edit_organisation_notes', org_id=current_org.id), suffix='the notes for the organisation') }}
|
||||
{% endcall %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user