mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-12 09:24: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
|
||||
@user_has_permissions(admin_override=True)
|
||||
def create_organisation():
|
||||
def add_organisation():
|
||||
form = CreateOrUpdateOrganisation()
|
||||
|
||||
if form.validate_on_submit():
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
<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>
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ def test_create_new_organisation(
|
||||
org = {'name': 'new name'}
|
||||
|
||||
logged_in_platform_admin_client.post(
|
||||
url_for('.create_organisation'),
|
||||
url_for('.add_organisation'),
|
||||
content_type='multipart/form-data',
|
||||
data=org
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user