def __init__(self, *args, **kwargs): super(PersonaCreateModal, self).__init__(*args, **kwargs) self.title = "Agregar persona al grupo familiar" self.submit_button = ModalButton('Guardar', button_type='primary') self.close_button = ModalButton('Cerrar') self.form_class = PersonaModelForm
def __init__(self, *args, **kwargs): super(BagtsView, self).__init__(*args, **kwargs) self.title = "Тэмцээний ангилал" self.form_class = BagtsForm self.submit_button = ModalButton(value=u'Хадгалах', loading_value="Уншиж байна...", button_type='success btn-flat') self.close_button = ModalButton(value=u'Хаах', button_type='default btn-flat')
def __init__(self, *args, **kwargs): super(LessonMailView, self).__init__(*args, **kwargs) self.title = u"Санал хүсэлт" self.form_class = LessonMailForm self.submit_button = ModalButton(value=u'Илгээх', loading_value="Уншиж байна...", button_type='primary btn-flat') self.close_button = ModalButton(value=u'Хаах', button_type='default btn-flat')
def __init__(self, title=None, description=None, icon=None, *args, **kwargs): super(ModalContextMixin, self).__init__(*args, **kwargs) self.title = "title" self.response = None self.icon = icon self.description = "" self.close_button = ModalButton('Close', button_type='primary') self.content_template_name = None self.base_template_name = BASE_TEMPLATE
def __init__(self, button=None, *args, **kwargs): super(ModalTemplateUtilView, self).__init__(*args, **kwargs) self.util_button = button if button else ModalButton('Run test') self.util_name = 'util'
def __init__(self, *args, **kwargs): super(ModalEditContextMixin, self).__init__(*args, **kwargs) self.action = None self.content_template_name = FORM_TEMPLATE_CONTENT self.submit_button = ModalButton(value='send', button_type='primary') self.form_content_template_name = LAST_FORM_TEMPLATE
def __init__(self, *args, **kwargs): super(CapitalHumanoUpdateModal, self).__init__(*args, **kwargs) self.title = "Editar capital humano" self.form_class = CapitalHumanoModelForm self.submit_button = ModalButton('Guardar', button_type='primary') self.close_button = ModalButton('Cerrar')
def __init__(self, *args, **kwargs): super(PersonaUpdateModal, self).__init__(*args, **kwargs) self.title = "Editar persona" self.form_class = PersonaModelForm self.submit_button = ModalButton('Guardar', button_type='primary') self.close_button = ModalButton('Cerrar')