Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
 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')
Ejemplo n.º 3
0
 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')
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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'
Ejemplo n.º 6
0
 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
Ejemplo n.º 7
0
 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')
Ejemplo n.º 8
0
 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')