FreedomBox/plinth/modules/pagekite/templates/pagekite_configure.html
Sunil Mohan Adapa 1d14d4a4d6
ui: Rename 'plinth_extras' template tags module to 'extras'
- Remove yet another reference to 'plinth'.

Tests:

- Some basic pages work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-03-19 19:14:58 -04:00

58 lines
1.8 KiB
HTML

{% extends "app.html" %}
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% load static %}
{% load extras %}
{% block configuration %}
{{ block.super }}
<h3>{% trans "Custom Services" %}</h3>
<div class="btn-toolbar">
<a href="{% url 'pagekite:add-custom-service' %}" class="btn btn-default"
role="button" title="{% trans 'Add Custom Service' %}">
{% icon 'plus' %}
{% trans 'Add Custom Service' %}
</a>
</div>
{% if custom_services %}
<div class="list-group list-group-two-column custom-services">
{% for service in custom_services %}
<div class="list-group-item">
<span class="service primary">
<span title="Connects {{ service.url }} to {{ service.backend_host }}:{{ service.backend_port }}">
{% if service.url|slice:":4" == "http" %}
<a href="{{ service.url }}">{{ service.url }}</a>
{% else %}
{{ service.url }}
{% endif %}
<br>
{% blocktrans trimmed with backend_host=service.backend_host backend_port=service.backend_port %}
connected to {{ backend_host }}:{{ backend_port }}
{% endblocktrans %}
</span>
</span>
<form class="form secondary" method="post"
action="{% url 'pagekite:delete-custom-service' %}">
{% csrf_token %}
<div class='d-none'>
{{ service.delete_form.as_p }}
</div>
<button type="submit" class="btn btn-default"
title="{% trans "Delete this service" %}">
{% icon 'trash-o' %}
</button>
</form>
</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}