{% extends "base.html" %} {% load static %} {% load i18n %} {% block title %}{% trans "My Services" %} - {{ user.username }}{% endblock %} {% block content %}

{% trans 'Creation of your service' %}

{% if services == 0 %}
You already have activated all the existing services. Go back to your activated services
{% else %}
{% csrf_token %}
{% trans 'Select the service you want to add' %} {{ form.non_field_errors }}
{{ form.name }}
{{ form.name.errors }}
{{ form.token }}
Actually, this field is only mandatory for the Instapush service, otherwise the other services will go to the website of each service to get a new token it self
{{ form.token.errors }}
if this is a self hosted service that required an authentication, then you should need to fill the 5 following fields :
{{ form.username }}
{{ form.username.errors }}
{{ form.password }}
{{ form.password.errors }}
{{ form.client_id }}
{{ form.client_id.errors }}
{{ form.client_secret }}
{{ form.client_secret.errors }}
{{ form.host }}
{{ form.host.errors }}
{% endif %}
{% endblock %}