Renamed create to add for organisations

This commit is contained in:
Ken Tsang
2018-02-08 17:30:32 +00:00
parent a200f1a17e
commit 11a7fc49b7
3 changed files with 4 additions and 4 deletions

View File

@@ -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():

View File

@@ -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>

View File

@@ -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
)