diff --git a/attract/application/modules/nodes/__init__.py b/attract/application/modules/nodes/__init__.py index a1c3ef66..9130b669 100644 --- a/attract/application/modules/nodes/__init__.py +++ b/attract/application/modules/nodes/__init__.py @@ -45,8 +45,8 @@ def index(): shots=shots) -@nodes.route("/create", methods=('GET', 'POST')) -def create(): +@nodes.route("/add", methods=('GET', 'POST')) +def add(): form = NodeTypeForm() if form.validate_on_submit(): @@ -59,4 +59,4 @@ def create(): db.session.commit() return redirect(url_for('nodes.index')) - return render_template('nodes/create.html', form=form) + return render_template('nodes/add.html', form=form) diff --git a/attract/application/modules/shots/__init__.py b/attract/application/modules/shots/__init__.py index 7f28e5c8..d6a3d85c 100644 --- a/attract/application/modules/shots/__init__.py +++ b/attract/application/modules/shots/__init__.py @@ -53,8 +53,8 @@ def view(shot_id): abort(404) -@shots.route("/create", methods=('GET', 'POST')) -def create(): +@shots.route("/add", methods=('GET', 'POST')) +def add(): form = ShotForm() if form.validate_on_submit(): @@ -72,7 +72,7 @@ def create(): db.session.add(shot) db.session.commit() return redirect('/') - return render_template('shots/create.html', form=form) + return render_template('shots/add.html', form=form) @shots.route("/edit/", methods=('GET', 'POST')) diff --git a/attract/application/templates/nodes/create.html b/attract/application/templates/nodes/add.html similarity index 81% rename from attract/application/templates/nodes/create.html rename to attract/application/templates/nodes/add.html index d9a9b147..4efb942b 100644 --- a/attract/application/templates/nodes/create.html +++ b/attract/application/templates/nodes/add.html @@ -2,10 +2,10 @@ {% block body %}
-

Create Node type

+

Add Node type

-
+ {{ form.hidden_tag() }}
{{ form.name.label }} @@ -23,7 +23,7 @@ {{ form.is_extended.label }} {{ form.is_extended(class='form-control') }}
- +
diff --git a/attract/application/templates/nodes/index.html b/attract/application/templates/nodes/index.html index 17e69ed9..f9c8f603 100644 --- a/attract/application/templates/nodes/index.html +++ b/attract/application/templates/nodes/index.html @@ -44,7 +44,7 @@
- Create + Add
diff --git a/attract/application/templates/shots/create.html b/attract/application/templates/shots/add.html similarity index 91% rename from attract/application/templates/shots/create.html rename to attract/application/templates/shots/add.html index 5f7eb68e..1808ff2e 100644 --- a/attract/application/templates/shots/create.html +++ b/attract/application/templates/shots/add.html @@ -2,10 +2,10 @@ {% block body %}
-

Create shot

+

Add shot

-
+ {{ form.hidden_tag() }}
{{ form.name.label }} diff --git a/attract/application/templates/shots/index.html b/attract/application/templates/shots/index.html index ba69d830..581bc75b 100644 --- a/attract/application/templates/shots/index.html +++ b/attract/application/templates/shots/index.html @@ -56,7 +56,7 @@
- Create + Add