diff --git a/shynet/dashboard/forms.py b/shynet/dashboard/forms.py
index d6c71ca..dff31d3 100644
--- a/shynet/dashboard/forms.py
+++ b/shynet/dashboard/forms.py
@@ -8,7 +8,7 @@ from allauth.account.admin import EmailAddress
class ServiceForm(forms.ModelForm):
class Meta:
model = Service
- fields = ["name", "link", "respect_dnt", "collaborators"]
+ fields = ["name", "link", "respect_dnt", "origins", "collaborators"]
widgets = {
"name": forms.TextInput(),
"origins": forms.TextInput(),
@@ -29,7 +29,6 @@ class ServiceForm(forms.ModelForm):
collaborators = forms.CharField(help_text="Which users should have read-only access to this service? (Comma separated list of emails.)", required=False)
-
def clean_collaborators(self):
collaborators = []
for collaborator_email in self.cleaned_data["collaborators"].split(","):
diff --git a/shynet/dashboard/templates/dashboard/includes/service_form.html b/shynet/dashboard/templates/dashboard/includes/service_form.html
new file mode 100644
index 0000000..59312d5
--- /dev/null
+++ b/shynet/dashboard/templates/dashboard/includes/service_form.html
@@ -0,0 +1,12 @@
+{% load a17t_tags %}
+
+{{form.name|a17t}}
+{{form.link|a17t}}
+{{form.collaborators|a17t}}
+
+Advanced settings
+
+ {{form.respect_dnt|a17t}}
+ {{form.origins|a17t}}
+