{% extends "base.html" %} {% comment %} # # This file is part of Plinth. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # {% endcomment %} {% load bootstrap %} {% load i18n %} {% load pagekite_extras %} {% block page_head %} {% endblock %} {% block content %}

{% trans "Create a custom service" %}

{{ form|bootstrap_horizontal:'col-lg-6' }} {% csrf_token %}

{% trans "Existing custom services" %}

{% if not custom_services %} {% trans "You don't have any Custom Services enabled" %} {% endif %}
{% for service in custom_services %} {% create_pagekite_service_url service kite_name as service_url %}
{% if service_url|slice:":4" == "http" %} {{ service_url }} {% else %} {{ service_url }} {% endif %}
{% blocktrans trimmed with backend_host=service.backend_host backend_port=service.backend_port %} connected to {{ backend_host }}:{{ backend_port }} {% endblocktrans %}
{% csrf_token %} {{ service.form.as_p }}
{% endfor %}
{% endblock %}