Debian Codegraph @

adjutant_ui/content/email/views.py

raw
1 # Copyright 2013 Centrin Data Systems Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14
15 from django.urls import reverse_lazy
16 from django.utils.translation import gettext_lazy as _
17
18 from horizon import forms
19
20 from adjutant_ui.content.email \
21 import forms as pass_forms
22
23
24 class EmailView(forms.ModalFormView):
25 form_class = pass_forms.EmailForm
26 form_id = "update_email_modal"
27 modal_header = _("Update Email Address")
28 modal_id = "update_email_modal"
29 page_title = _("Update Email Address")
30 submit_label = _("Update")
31 submit_url = reverse_lazy("horizon:settings:email:index")
32 success_url = reverse_lazy("horizon:settings:email:index")
33 template_name = 'settings/email/change.html'