musician webapps/websites description on listview
This commit is contained in:
parent
6ff6a75eda
commit
b896dd2262
|
@ -4,11 +4,10 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Una Webapp es el diectorio donde se almacena su web,
|
{{ description }}
|
||||||
mediante SFTP podras acceder a este directorio y subir/editar/eliminar los archivos
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Cada Webapp tiene su propio usuario SFTP, este se creara automaticamente al crear la Webapp
|
{{ description2 }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="table service-list">
|
<table class="table service-list">
|
||||||
|
@ -51,7 +50,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
{% include "musician/components/table_paginator.html" %}
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
{% load bootstrap4 i18n %}
|
{% load bootstrap4 i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<p>
|
||||||
|
{{ description }}
|
||||||
|
</p>
|
||||||
|
|
||||||
<table class="table service-list table-hover">
|
<table class="table service-list table-hover">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
|
@ -100,7 +103,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
{% include "musician/components/table_paginator.html" %}
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -653,7 +653,7 @@ class SystemUserChangePasswordView(CustomContextMixin, UserTokenRequiredMixin, U
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
return self.model.objects.filter(account=self.request.user)
|
return self.model.objects.filter(account=self.request.user)
|
||||||
|
|
||||||
class WebsiteListView(ServiceListView):
|
class WebsiteListView(CustomContextMixin, UserTokenRequiredMixin, ListView):
|
||||||
model = Website
|
model = Website
|
||||||
template_name = "musician/website_list.html"
|
template_name = "musician/website_list.html"
|
||||||
extra_context = {
|
extra_context = {
|
||||||
|
@ -661,7 +661,17 @@ class WebsiteListView(ServiceListView):
|
||||||
'title': _('Websites'),
|
'title': _('Websites'),
|
||||||
}
|
}
|
||||||
|
|
||||||
class WebappListView(ServiceListView):
|
def get_queryset(self):
|
||||||
|
return self.model.objects.filter(account=self.request.user)
|
||||||
|
|
||||||
|
def get_context_data(self, **kwargs):
|
||||||
|
context = super().get_context_data(**kwargs)
|
||||||
|
context.update({
|
||||||
|
'description': _("A website is the place where a domain is associated with the directory where the web files are located. (WebApp)"),
|
||||||
|
})
|
||||||
|
return context
|
||||||
|
|
||||||
|
class WebappListView(CustomContextMixin, UserTokenRequiredMixin, ListView):
|
||||||
model = WebApp
|
model = WebApp
|
||||||
template_name = "musician/webapp_list.html"
|
template_name = "musician/webapp_list.html"
|
||||||
extra_context = {
|
extra_context = {
|
||||||
|
@ -669,6 +679,17 @@ class WebappListView(ServiceListView):
|
||||||
'title': _('Webapps'),
|
'title': _('Webapps'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def get_queryset(self):
|
||||||
|
return self.model.objects.filter(account=self.request.user)
|
||||||
|
|
||||||
|
def get_context_data(self, **kwargs):
|
||||||
|
context = super().get_context_data(**kwargs)
|
||||||
|
context.update({
|
||||||
|
'description': _("A web app is the directory where your website is stored. Through SFTP, you can access this directory and upload/edit/delete files."),
|
||||||
|
'description2': _("Each Webapp has its own SFTP user, which is created automatically when the Webapp is created.")
|
||||||
|
})
|
||||||
|
return context
|
||||||
|
|
||||||
|
|
||||||
class WebappDetailView(CustomContextMixin, UserTokenRequiredMixin, DetailView):
|
class WebappDetailView(CustomContextMixin, UserTokenRequiredMixin, DetailView):
|
||||||
template_name = "musician/webapp_detail.html"
|
template_name = "musician/webapp_detail.html"
|
||||||
|
|
Loading…
Reference in New Issue