diff --git a/panel/src/panel/templates/base.html b/panel/src/panel/templates/base.html index aa29745a..913b19fb 100644 --- a/panel/src/panel/templates/base.html +++ b/panel/src/panel/templates/base.html @@ -26,6 +26,9 @@ <li> <a href="{% url 'service_list' %}">Services</a> </li> + <li> + <a href="{% url 'configuration_form' %}">Configuration</a> + </li> {% load custom_tags %} <li> diff --git a/panel/src/panel/templates/deploy_services.html b/panel/src/panel/templates/configuration_form.html similarity index 91% rename from panel/src/panel/templates/deploy_services.html rename to panel/src/panel/templates/configuration_form.html index f9c52275..84ec0ec4 100644 --- a/panel/src/panel/templates/deploy_services.html +++ b/panel/src/panel/templates/configuration_form.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% block content %} -<form method="post" enctype="multipart/form-data" action="{% url 'deploy_services' %}"> +<form method="post" enctype="multipart/form-data" action="{% url 'configuration_form' %}"> {% csrf_token %} {{ form.as_p }} diff --git a/panel/src/panel/urls.py b/panel/src/panel/urls.py index 021ec69c..2f0ba434 100644 --- a/panel/src/panel/urls.py +++ b/panel/src/panel/urls.py @@ -25,5 +25,5 @@ urlpatterns = [ path("", include("django.contrib.auth.urls")), path("account/", views.AccountDetail.as_view(), name='account_detail'), path("services/", views.ServiceList.as_view(), name='service_list'), - path("deploy/", views.DeployServices.as_view(), name='deploy_services'), + path("configuration/", views.ConfigurationForm.as_view(), name='configuration_form'), ] diff --git a/panel/src/panel/views.py b/panel/src/panel/views.py index a6e7824b..f36ea383 100644 --- a/panel/src/panel/views.py +++ b/panel/src/panel/views.py @@ -25,11 +25,11 @@ class ServiceList(TemplateView): template_name = 'service_list.html' -class DeployServices(LoginRequiredMixin, UpdateView): - template_name = 'deploy_services.html' +class ConfigurationForm(LoginRequiredMixin, UpdateView): + template_name = 'configuration_form.html' model = Configuration form_class = forms.Deployment - success_url = reverse_lazy('deploy_services') + success_url = reverse_lazy('configuration_form') def get_object(self, queryset=None): obj, created = Configuration.objects.get_or_create(