From d383e8a61e1097535d88d573ebba5843e65e9d50 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 7 Apr 2021 12:11:01 -0700 Subject: [PATCH] Cleans up add server form --- bookwyrm/forms.py | 2 +- .../templates/settings/add_server_form.html | 4 +- bookwyrm/templates/settings/server_form.html | 39 +++++++++++++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 bookwyrm/templates/settings/server_form.html diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py index 55bb6650..7c41323c 100644 --- a/bookwyrm/forms.py +++ b/bookwyrm/forms.py @@ -286,4 +286,4 @@ class ReportForm(CustomForm): class ServerForm(CustomForm): class Meta: model = models.FederatedServer - exclude = [] + exclude = ["remote_id"] diff --git a/bookwyrm/templates/settings/add_server_form.html b/bookwyrm/templates/settings/add_server_form.html index a16aac2d..ffb43043 100644 --- a/bookwyrm/templates/settings/add_server_form.html +++ b/bookwyrm/templates/settings/add_server_form.html @@ -7,9 +7,7 @@ {% block form %}
- {% csrf_token %} - {{ form.as_p }} - + {% include 'settings/server_form.html' %}
{% endblock %} diff --git a/bookwyrm/templates/settings/server_form.html b/bookwyrm/templates/settings/server_form.html new file mode 100644 index 00000000..4b9f6ef0 --- /dev/null +++ b/bookwyrm/templates/settings/server_form.html @@ -0,0 +1,39 @@ +{% load i18n %} + +{% csrf_token %} + +
+
+

+ + +

+

+ +

+ +
+

+
+
+

+ + +

+

+ + +

+
+
+

+ + +

+ +