mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Renamed create to add for organisations
This commit is contained in:
@@ -56,10 +56,10 @@ def update_organisation(org_id):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@main.route("/organisations/create", methods=['GET', 'POST'])
|
@main.route("/organisations/add", methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
@user_has_permissions(admin_override=True)
|
@user_has_permissions(admin_override=True)
|
||||||
def create_organisation():
|
def add_organisation():
|
||||||
form = CreateOrUpdateOrganisation()
|
form = CreateOrUpdateOrganisation()
|
||||||
|
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<br/>
|
<br/>
|
||||||
<div><a href="{{ url_for('main.create_organisation') }}" class="browse-list-link">Create an organisation</a></div>
|
<div><a href="{{ url_for('main.add_organisation') }}" class="browse-list-link">Create an organisation</a></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ def test_create_new_organisation(
|
|||||||
org = {'name': 'new name'}
|
org = {'name': 'new name'}
|
||||||
|
|
||||||
logged_in_platform_admin_client.post(
|
logged_in_platform_admin_client.post(
|
||||||
url_for('.create_organisation'),
|
url_for('.add_organisation'),
|
||||||
content_type='multipart/form-data',
|
content_type='multipart/form-data',
|
||||||
data=org
|
data=org
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user