summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2023-12-21 11:42:37 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2023-12-21 11:54:01 +0100
commit52c5555f659db69995296c6b3bad68244ceeb2f4 (patch)
tree6ca715c26d50c9b9bc726f114bfa50d3a3abea72 /ogcp/views.py
parenta5a5ef362b0e8bb79477070ea3598b90a89b977a (diff)
templates: rename 'create' button to 'submit'
In client_details template, rename 'create' button to 'submit'. This template is used by both client-add and client-edit commands; it would not make sense to have a 'Create' button in client-edit.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index b59f0f0..e745d7d 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -876,7 +876,7 @@ def action_client_info():
rooms = [(room['id'], room['name']) for room in rooms]
form.room.choices = list(rooms)
- form.create.render_kw = {"style": "visibility:hidden;"}
+ form.submit.render_kw = {"style": "visibility:hidden;"}
r = server.get('/images')
images = r.json()['images']
@@ -965,7 +965,7 @@ def action_client_update():
form.repo.choices.extend([(repo["id"], repo["name"]) for repo in repositories
if db_client['repo_id'] != repo["id"]])
- form.create.render_kw = {"formaction": url_for('action_client_update')}
+ form.submit.render_kw = {"formaction": url_for('action_client_update')}
return render_template('actions/client_details.html', form=form,
parent="scopes.html", scopes=scopes)
@@ -1019,7 +1019,7 @@ def action_client_add():
repositories = get_repositories(server)
form.repo.choices = [(repo["id"], repo["name"]) for repo in repositories]
- form.create.render_kw = {"formaction": url_for('action_client_add')}
+ form.submit.render_kw = {"formaction": url_for('action_client_add')}
scopes, clients = get_scopes()
return render_template('actions/client_details.html', form=form,
parent="scopes.html", scopes=scopes)