mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-04 08:53:42 +00:00
More consistent renaming from default to standard services
This commit is contained in:
parent
5cca1f99cf
commit
32e94058f6
@ -207,7 +207,7 @@ class AddCustomServiceForm(BaseCustomServiceForm):
|
||||
except KeyError:
|
||||
is_predefined = False
|
||||
if is_predefined:
|
||||
msg = _("""This service is available as a default service. Please
|
||||
msg = _("""This service is available as a standard service. Please
|
||||
use the 'Standard Services' page to enable it.""")
|
||||
raise forms.ValidationError(msg)
|
||||
return cleaned_data
|
||||
|
||||
@ -31,8 +31,9 @@ urlpatterns = patterns( # pylint: disable-msg=C0103
|
||||
url(r'^apps/pagekite/$', login_required(index), name='index'),
|
||||
url(r'^apps/pagekite/configure/$',
|
||||
login_required(ConfigurationView.as_view()), name='configure'),
|
||||
url(r'^apps/pagekite/services/default$',
|
||||
login_required(StandardServiceView.as_view()), name='default-services'),
|
||||
url(r'^apps/pagekite/services/standard$',
|
||||
login_required(StandardServiceView.as_view()),
|
||||
name='standard-services'),
|
||||
url(r'^apps/pagekite/services/custom$',
|
||||
login_required(CustomServiceView.as_view()), name='custom-services'),
|
||||
url(r'^apps/pagekite/services/custom/delete$',
|
||||
|
||||
@ -35,7 +35,7 @@ subsubmenu = [{'url': reverse_lazy('pagekite:index'),
|
||||
'text': _('About PageKite')},
|
||||
{'url': reverse_lazy('pagekite:configure'),
|
||||
'text': _('Configure PageKite')},
|
||||
{'url': reverse_lazy('pagekite:default-services'),
|
||||
{'url': reverse_lazy('pagekite:standard-services'),
|
||||
'text': _('Standard Services')},
|
||||
{'url': reverse_lazy('pagekite:custom-services'),
|
||||
'text': _('Custom Services')}]
|
||||
@ -106,10 +106,10 @@ class CustomServiceView(ContextMixin, TemplateView):
|
||||
|
||||
|
||||
class StandardServiceView(ContextMixin, FormView):
|
||||
template_name = 'pagekite_default_services.html'
|
||||
template_name = 'pagekite_standard_services.html'
|
||||
title = 'PageKite Standard Services'
|
||||
form_class = StandardServiceForm
|
||||
success_url = reverse_lazy('pagekite:default-services')
|
||||
success_url = reverse_lazy('pagekite:standard-services')
|
||||
|
||||
def get_initial(self):
|
||||
return get_pagekite_services()[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user