Compare commits
	
		
			No commits in common. "a136bcc52be305bbb2bad3f3b1a7fc8b72829e1a" and "be1ed6ecea40e9d5fcdf6fd98cf4ac348e5cf5f5" have entirely different histories.
		
	
	
		
			a136bcc52b
			...
			be1ed6ecea
		
	
		
					 10 changed files with 30 additions and 53 deletions
				
			
		|  | @ -7,8 +7,8 @@ msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: contact_form\n" | "Project-Id-Version: contact_form\n" | ||||||
| "Report-Msgid-Bugs-To: \n" | "Report-Msgid-Bugs-To: \n" | ||||||
| "POT-Creation-Date: 2023-04-22 13:01+0200\n" | "POT-Creation-Date: 2023-04-16 22:07+0200\n" | ||||||
| "PO-Revision-Date: 2023-04-22 13:01+0200\n" | "PO-Revision-Date: 2023-04-16 18:25+0200\n" | ||||||
| "Last-Translator: Jan Dittberner <jan@dittberner.info>\n" | "Last-Translator: Jan Dittberner <jan@dittberner.info>\n" | ||||||
| "Language-Team: Jan Dittberner <jan@dittberner.info>\n" | "Language-Team: Jan Dittberner <jan@dittberner.info>\n" | ||||||
| "Language: de\n" | "Language: de\n" | ||||||
|  | @ -34,14 +34,3 @@ msgstr "Ihre Nachricht" | ||||||
| #: contact_form/forms.py:39 | #: contact_form/forms.py:39 | ||||||
| msgid "Send message" | msgid "Send message" | ||||||
| msgstr "Nachricht senden" | msgstr "Nachricht senden" | ||||||
| 
 |  | ||||||
| #: contact_form/templates/contact_form/contact_form.html:4 |  | ||||||
| #: contact_form/templates/contact_form/contact_form.html:5 |  | ||||||
| #: contact_form/templates/contact_form/contact_success.html:4 |  | ||||||
| #: contact_form/templates/contact_form/contact_success.html:5 |  | ||||||
| msgid "Contact" |  | ||||||
| msgstr "Kontakt" |  | ||||||
| 
 |  | ||||||
| #: contact_form/templates/contact_form/contact_success.html:8 |  | ||||||
| msgid "Your message has been sent successfully." |  | ||||||
| msgstr "Ihre Nachricht wurde erfolgreich übermittelt." |  | ||||||
|  |  | ||||||
|  | @ -7,8 +7,8 @@ msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: gnuviechadmin hostingpackages\n" | "Project-Id-Version: gnuviechadmin hostingpackages\n" | ||||||
| "Report-Msgid-Bugs-To: \n" | "Report-Msgid-Bugs-To: \n" | ||||||
| "POT-Creation-Date: 2023-04-22 13:14+0200\n" | "POT-Creation-Date: 2023-04-16 22:07+0200\n" | ||||||
| "PO-Revision-Date: 2023-04-22 13:15+0200\n" | "PO-Revision-Date: 2023-04-16 19:10+0200\n" | ||||||
| "Last-Translator: Jan Dittberner <jan@dittberner.info>\n" | "Last-Translator: Jan Dittberner <jan@dittberner.info>\n" | ||||||
| "Language-Team: Jan Dittberner <jan@dittberner.info>\n" | "Language-Team: Jan Dittberner <jan@dittberner.info>\n" | ||||||
| "Language: de\n" | "Language: de\n" | ||||||
|  | @ -233,19 +233,15 @@ msgid "Customer" | ||||||
| msgstr "Kunde" | msgstr "Kunde" | ||||||
| 
 | 
 | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_admin_list.html:13 | #: hostingpackages/templates/hostingpackages/customerhostingpackage_admin_list.html:13 | ||||||
| msgid "OS User" |  | ||||||
| msgstr "OS-Nutzer" |  | ||||||
| 
 |  | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_admin_list.html:14 |  | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_list.html:27 | #: hostingpackages/templates/hostingpackages/customerhostingpackage_list.html:27 | ||||||
| msgid "Setup date" | msgid "Setup date" | ||||||
| msgstr "Einrichtungsdatum" | msgstr "Einrichtungsdatum" | ||||||
| 
 | 
 | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_admin_list.html:31 | #: hostingpackages/templates/hostingpackages/customerhostingpackage_admin_list.html:29 | ||||||
| msgid "No hosting packages have been setup yet." | msgid "No hosting packages have been setup yet." | ||||||
| msgstr "Es wurden noch keine Hostingpakete eingerichtet." | msgstr "Es wurden noch keine Hostingpakete eingerichtet." | ||||||
| 
 | 
 | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_admin_list.html:34 | #: hostingpackages/templates/hostingpackages/customerhostingpackage_admin_list.html:32 | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_list.html:46 | #: hostingpackages/templates/hostingpackages/customerhostingpackage_list.html:46 | ||||||
| msgid "Add hosting package" | msgid "Add hosting package" | ||||||
| msgstr "Hostingpaket anlegen" | msgstr "Hostingpaket anlegen" | ||||||
|  | @ -288,7 +284,7 @@ msgid "Description" | ||||||
| msgstr "Beschreibung" | msgstr "Beschreibung" | ||||||
| 
 | 
 | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html:40 | #: hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html:40 | ||||||
| #: hostingpackages/views.py:199 | #: hostingpackages/views.py:190 | ||||||
| msgid "Disk space" | msgid "Disk space" | ||||||
| msgstr "Speicherplatz" | msgstr "Speicherplatz" | ||||||
| 
 | 
 | ||||||
|  | @ -309,7 +305,7 @@ msgstr "" | ||||||
| "der Unterschied ergibt sich aus Speicherplatzoptionen" | "der Unterschied ergibt sich aus Speicherplatzoptionen" | ||||||
| 
 | 
 | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html:52 | #: hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html:52 | ||||||
| #: hostingpackages/views.py:206 | #: hostingpackages/views.py:197 | ||||||
| msgid "Mailboxes" | msgid "Mailboxes" | ||||||
| msgstr "Postfächer" | msgstr "Postfächer" | ||||||
| 
 | 
 | ||||||
|  | @ -491,7 +487,7 @@ msgid "Add mailbox" | ||||||
| msgstr "Postfach hinzufügen" | msgstr "Postfach hinzufügen" | ||||||
| 
 | 
 | ||||||
| #: hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html:237 | #: hostingpackages/templates/hostingpackages/customerhostingpackage_detail.html:237 | ||||||
| #: hostingpackages/views.py:213 | #: hostingpackages/views.py:204 | ||||||
| msgid "Databases" | msgid "Databases" | ||||||
| msgstr "Datenbanken" | msgstr "Datenbanken" | ||||||
| 
 | 
 | ||||||
|  | @ -570,7 +566,7 @@ msgstr "" | ||||||
| msgid "Started setup of new hosting package {name}." | msgid "Started setup of new hosting package {name}." | ||||||
| msgstr "Einrichtung des Hostingpakets {name} wurde gestartet." | msgstr "Einrichtung des Hostingpakets {name} wurde gestartet." | ||||||
| 
 | 
 | ||||||
| #: hostingpackages/views.py:287 | #: hostingpackages/views.py:278 | ||||||
| #, python-brace-format | #, python-brace-format | ||||||
| msgid "Successfully added option {option} to hosting package {package}." | msgid "Successfully added option {option} to hosting package {package}." | ||||||
| msgstr "Option {option} erfolgreich zum Hostingpaket {package} hinzugefügt." | msgstr "Option {option} erfolgreich zum Hostingpaket {package} hinzugefügt." | ||||||
|  |  | ||||||
|  | @ -10,7 +10,6 @@ | ||||||
|             <tr> |             <tr> | ||||||
|                 <th>{% translate "Name" %}</th> |                 <th>{% translate "Name" %}</th> | ||||||
|                 <th>{% translate "Customer" %}</th> |                 <th>{% translate "Customer" %}</th> | ||||||
|                 <th>{% translate "OS User" %}</th> |  | ||||||
|                 <th>{% translate "Setup date" %}</th> |                 <th>{% translate "Setup date" %}</th> | ||||||
|             </tr> |             </tr> | ||||||
|             </thead> |             </thead> | ||||||
|  | @ -21,7 +20,6 @@ | ||||||
|                     <td> |                     <td> | ||||||
|                         <a href="{% url 'customer_dashboard' slug=package.customer.username %}">{{ package.customer }}</a> |                         <a href="{% url 'customer_dashboard' slug=package.customer.username %}">{{ package.customer }}</a> | ||||||
|                     </td> |                     </td> | ||||||
|                     <td>{{ package.osuser.username }}</td> |  | ||||||
|                     <td>{{ package.created }}</td> |                     <td>{{ package.created }}</td> | ||||||
|                 </tr> |                 </tr> | ||||||
|             {% endfor %} |             {% endfor %} | ||||||
|  |  | ||||||
|  | @ -38,19 +38,19 @@ class CreateHostingPackage(PermissionRequiredMixin, CreateView): | ||||||
| 
 | 
 | ||||||
|     model = CustomerHostingPackage |     model = CustomerHostingPackage | ||||||
|     raise_exception = True |     raise_exception = True | ||||||
|     permission_required = "domains.add_customerhostingpackage" |     permission_required = 'domains.add_customerhostingpackage' | ||||||
|     template_name_suffix = "_create" |     template_name_suffix = "_create" | ||||||
|     form_class = CreateHostingPackageForm |     form_class = CreateHostingPackageForm | ||||||
| 
 | 
 | ||||||
|     def form_valid(self, form): |     def form_valid(self, form): | ||||||
|         hosting_package = form.save() |         hostingpackage = form.save() | ||||||
|         messages.success( |         messages.success( | ||||||
|             self.request, |             self.request, | ||||||
|             _("Started setup of new hosting package {name}.").format( |             _("Started setup of new hosting package {name}.").format( | ||||||
|                 name=hosting_package.name |                 name=hostingpackage.name | ||||||
|             ), |             ), | ||||||
|         ) |         ) | ||||||
|         return redirect(hosting_package) |         return redirect(hostingpackage) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class CreateCustomerHostingPackage(CreateHostingPackage): | class CreateCustomerHostingPackage(CreateHostingPackage): | ||||||
|  | @ -75,16 +75,16 @@ class CreateCustomerHostingPackage(CreateHostingPackage): | ||||||
|         return context |         return context | ||||||
| 
 | 
 | ||||||
|     def form_valid(self, form): |     def form_valid(self, form): | ||||||
|         hosting_package = form.save(commit=False) |         hostingpackage = form.save(commit=False) | ||||||
|         hosting_package.customer = self.get_customer_object() |         hostingpackage.customer = self.get_customer_object() | ||||||
|         hosting_package.save() |         hostingpackage.save() | ||||||
|         messages.success( |         messages.success( | ||||||
|             self.request, |             self.request, | ||||||
|             _("Started setup of new hosting package {name}.").format( |             _("Started setup of new hosting package {name}.").format( | ||||||
|                 name=hosting_package.name |                 name=hostingpackage.name | ||||||
|             ), |             ), | ||||||
|         ) |         ) | ||||||
|         return redirect(hosting_package) |         return redirect(hostingpackage) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class CustomerHostingPackageDetails(StaffOrSelfLoginRequiredMixin, DetailView): | class CustomerHostingPackageDetails(StaffOrSelfLoginRequiredMixin, DetailView): | ||||||
|  | @ -126,7 +126,6 @@ class StaffUserRequiredMixin(UserPassesTestMixin): | ||||||
|     Mixin to make views available to staff members only. |     Mixin to make views available to staff members only. | ||||||
| 
 | 
 | ||||||
|     """ |     """ | ||||||
| 
 |  | ||||||
|     def test_func(self): |     def test_func(self): | ||||||
|         return self.request.user.is_staff |         return self.request.user.is_staff | ||||||
| 
 | 
 | ||||||
|  | @ -140,14 +139,6 @@ class AllCustomerHostingPackageList(StaffUserRequiredMixin, ListView): | ||||||
|     model = CustomerHostingPackage |     model = CustomerHostingPackage | ||||||
|     template_name_suffix = "_admin_list" |     template_name_suffix = "_admin_list" | ||||||
| 
 | 
 | ||||||
|     def get_queryset(self): |  | ||||||
|         return ( |  | ||||||
|             super() |  | ||||||
|             .get_queryset() |  | ||||||
|             .select_related("osuser", "customer") |  | ||||||
|             .only("name", "pk", "created", "customer__username", "osuser__username") |  | ||||||
|         ) |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| class CustomerHostingPackageList(StaffOrSelfLoginRequiredMixin, ListView): | class CustomerHostingPackageList(StaffOrSelfLoginRequiredMixin, ListView): | ||||||
|     """ |     """ | ||||||
|  |  | ||||||
|  | @ -7,8 +7,8 @@ msgid "" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: gnuviechadmin\n" | "Project-Id-Version: gnuviechadmin\n" | ||||||
| "Report-Msgid-Bugs-To: \n" | "Report-Msgid-Bugs-To: \n" | ||||||
| "POT-Creation-Date: 2023-04-22 13:01+0200\n" | "POT-Creation-Date: 2023-04-16 22:07+0200\n" | ||||||
| "PO-Revision-Date: 2023-04-22 12:58+0200\n" | "PO-Revision-Date: 2023-04-16 21:37+0200\n" | ||||||
| "Last-Translator: Jan Dittberner <jan@dittberner.info>\n" | "Last-Translator: Jan Dittberner <jan@dittberner.info>\n" | ||||||
| "Language-Team: Jan Dittberner <jan@dittberner.info>\n" | "Language-Team: Jan Dittberner <jan@dittberner.info>\n" | ||||||
| "Language: de\n" | "Language: de\n" | ||||||
|  | @ -455,7 +455,10 @@ msgstr "Impressum" | ||||||
| msgid "Privacy policy" | msgid "Privacy policy" | ||||||
| msgstr "Datenschutz" | msgstr "Datenschutz" | ||||||
| 
 | 
 | ||||||
| #: templates/base.html:78 | #: templates/base.html:78 templates/contact_form/contact_form.html:4 | ||||||
|  | #: templates/contact_form/contact_form.html:5 | ||||||
|  | #: templates/contact_form/contact_success.html:4 | ||||||
|  | #: templates/contact_form/contact_success.html:5 | ||||||
| msgid "Contact" | msgid "Contact" | ||||||
| msgstr "Kontakt" | msgstr "Kontakt" | ||||||
| 
 | 
 | ||||||
|  | @ -511,6 +514,10 @@ msgstr "Abmelden" | ||||||
| msgid "Close" | msgid "Close" | ||||||
| msgstr "Schließen" | msgstr "Schließen" | ||||||
| 
 | 
 | ||||||
|  | #: templates/contact_form/contact_success.html:8 | ||||||
|  | msgid "Your message has been sent successfully." | ||||||
|  | msgstr "Ihre Nachricht wurde erfolgreich übermittelt." | ||||||
|  | 
 | ||||||
| #: templates/domains/hostingdomain_create.html:4 | #: templates/domains/hostingdomain_create.html:4 | ||||||
| #: templates/domains/hostingdomain_create.html:7 | #: templates/domains/hostingdomain_create.html:7 | ||||||
| #, python-format | #, python-format | ||||||
|  | @ -539,15 +546,11 @@ msgstr "Django Impersonate - Nutzersuche" | ||||||
| msgid "Enter Search Query:" | msgid "Enter Search Query:" | ||||||
| msgstr "Suchanfrage eingeben:" | msgstr "Suchanfrage eingeben:" | ||||||
| 
 | 
 | ||||||
| #: templates/impersonate/search_users.html:13 |  | ||||||
| msgid "user name part" |  | ||||||
| msgstr "Nutzernamen-Bestandteile" |  | ||||||
| 
 |  | ||||||
| #: templates/impersonate/search_users.html:15 | #: templates/impersonate/search_users.html:15 | ||||||
| msgid "Search" | msgid "Search" | ||||||
| msgstr "Suchen" | msgstr "Suchen" | ||||||
| 
 | 
 | ||||||
| #: templates/impersonate/search_users.html:16 | #: templates/impersonate/search_users.html:19 | ||||||
| msgid "List all users" | msgid "List all users" | ||||||
| msgstr "Alle Nutzer auflisten" | msgstr "Alle Nutzer auflisten" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue