From f3e3d45d600f5c25fc2af32d6dc9f75a87948302 Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Mon, 13 May 2024 20:23:25 +0200 Subject: [PATCH] musician websitedetail --- .../templates/musician/website_detail.html | 97 +++++++++++++++++++ .../templates/musician/website_list.html | 14 +-- .../musician/websiteoption_check_delete.html | 17 ++++ orchestra/contrib/musician/urls.py | 4 + orchestra/contrib/musician/views.py | 58 ++++++++++- 5 files changed, 182 insertions(+), 8 deletions(-) create mode 100644 orchestra/contrib/musician/templates/musician/website_detail.html create mode 100644 orchestra/contrib/musician/templates/musician/websiteoption_check_delete.html diff --git a/orchestra/contrib/musician/templates/musician/website_detail.html b/orchestra/contrib/musician/templates/musician/website_detail.html new file mode 100644 index 00000000..4092003d --- /dev/null +++ b/orchestra/contrib/musician/templates/musician/website_detail.html @@ -0,0 +1,97 @@ +{% extends "musician/base.html" %} +{% load i18n %} + +{% block content %} +{% trans "Go back" %} + +

{% trans "WebSite Options for" %} {{ object.name }}

+
+ + + + + + + + + + + + + + + + + + + + +
Server:{{ object.target_server }}
Domains: + {% for domain in object.domains.all %} + {{ domain }}
+ {% endfor %} +
active: + + {{ website.is_active|yesno }} +
Protocol:{{ object.protocol }}
+ + + +

{% trans "Contents" %}

+
+ +

{% trans "Webapps assigned to this website" %}

+ + + + + + + + + + + {% for option in content %} + + + + + + + {% endfor %} + +
{% trans "Webapp" %}{% trans "Type " %}{% trans "Path" %}
{{ option.webapp }}{{ option.webapp.get_type_display }}{{ option.path }} + + +
+ + + +

{% trans "Directives" %}

+
+ +

{% trans "Options assigned to this Website" %}

+ + + + + + + + + + {% for option in directives %} + + + + + + {% endfor %} + +
{% trans "Name" %}{% trans "Value" %}
{{ option.name }}{{ option.value }} + + +
+ + +{% endblock %} diff --git a/orchestra/contrib/musician/templates/musician/website_list.html b/orchestra/contrib/musician/templates/musician/website_list.html index 2e1a210b..1f75a980 100644 --- a/orchestra/contrib/musician/templates/musician/website_list.html +++ b/orchestra/contrib/musician/templates/musician/website_list.html @@ -38,11 +38,11 @@ {{ website.is_active|yesno }} - -