Merge pull request #1934 from alphagov/update-service-name

Update Organisation Name
This commit is contained in:
Chris Waszczuk
2018-03-12 10:13:57 +00:00
committed by GitHub
10 changed files with 354 additions and 103 deletions

View File

@@ -0,0 +1,28 @@
{% extends "org_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block org_page_title %}
Confirm organisation name change
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">Confirm organisation name change</h1>
<div class="grid-row">
<div class="column-three-quarters">
<form autocomplete="off" method="post">
{{ textbox(form.password) }}
<p> Your organisation name will be changed from {{ current_org.name }} to {{ new_name }} </p>
{{ page_footer(
'Confirm',
destructive=destructive,
back_link=url_for('.organisation_settings', org_id=current_org.id)
) }}
</form>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,21 @@
{% extends "org_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox, colour_textbox %}
{% block org_page_title %}
Change organisation name
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">Change organisation name</h1>
<form method="post">
{{textbox(form.name)}}
{{ page_footer(
'Save',
back_link=url_for('.organisation_settings', org_id=current_org.id),
back_link_text='Back to settings',
) }}
</form>
{% endblock %}

View File

@@ -0,0 +1,27 @@
{% extends "org_template.html" %}
{% from "components/table.html" import mapping_table, row, text_field, edit_field with context %}
{% block org_page_title %}
Organisation settings
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">Organisation settings</h1>
<div class="bottom-gutter-3-2 dashboard-table body-copy-table">
{% call mapping_table(
caption='General',
field_headings=['Label', 'Value', 'Action'],
field_headings_visible=False,
caption_visible=False
) %}
{% call row() %}
{{ text_field('Organisation name') }}
{{ text_field(current_org.name) }}
{{ edit_field(
'Change',
url_for('.edit_organisation_name', org_id=current_org.id)
)
}}
{% endcall %}
{% endcall %}
{% endblock %}

View File

@@ -1,25 +0,0 @@
{% extends "views/platform-admin/_base_template.html" %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/textbox.html" import textbox, colour_textbox %}
{% block per_page_title %}
Update an organisation
{% endblock %}
{% block org_page_title %}
Update an organisation
{% endblock %}
{% block platform_admin_content %}
<h1 class="heading-large">Update an organisation</h1>
<form method="post">
{{textbox(form.name)}}
{{ page_footer(
'Save',
back_link=url_for('.organisations'),
back_link_text='Back to organisations',
) }}
</form>
{% endblock %}