diff --git a/bricktracker/views/add.py b/bricktracker/views/add.py index 218a0bf..44f3ddc 100644 --- a/bricktracker/views/add.py +++ b/bricktracker/views/add.py @@ -31,8 +31,9 @@ def bulk() -> str: BrickConfigurationList.error_unless_is_set('REBRICKABLE_API_KEY') return render_template( - 'bulk.html', + 'add.html', path=current_app.config['SOCKET_PATH'], namespace=current_app.config['SOCKET_NAMESPACE'], - messages=MESSAGES + messages=MESSAGES, + bulk=True ) diff --git a/templates/add.html b/templates/add.html index 5316ea1..1238739 100644 --- a/templates/add.html +++ b/templates/add.html @@ -1,10 +1,10 @@ {% extends 'base.html' %} -{% block title %} - Add a set{% endblock %} +{% block title %} - {% if not bulk %}Add a set{% else %}Bulk add sets{% endif %}{% endblock %} {% block main %}
- {% if not config['HIDE_ADD_BULK_SET'] %} + {% if not bulk and not config['HIDE_ADD_BULK_SET'] %}
-{% with id='add' %} +{% with id='add', bulk=bulk %} {% include 'set/socket.html' %} {% endwith %} {% endblock %} diff --git a/templates/bulk.html b/templates/bulk.html deleted file mode 100644 index 00d4779..0000000 --- a/templates/bulk.html +++ /dev/null @@ -1,64 +0,0 @@ -{% extends 'base.html' %} - -{% block title %} - Bulk add sets{% endblock %} - -{% block main %} -
-
-
-
-
-
Bulk add sets
-
-
- -
-
- - -
-
- - -
-
-
-

- Progress - - - Loading... - -

-
-
-
-

-
-
-
-
-
- - -
-
-
- -
-
-
-
- -
-
-
-
-{% with id='add', bulk=true %} - {% include 'set/socket.html' %} -{% endwith %} -{% endblock %}