예제 #1
0
 def proje_iptal_talebi(self):
     self.object = BAPProje.objects.get(self.current.task_data['bap_proje_id'])
     form = JsonForm(current=self.current,
                     title=_(u"{} Projesi / Proje İptal Talebi".format(self.object.ad)))
     form.help_text = _(u"Lütfen proje iptal talebi için açıklama giriniz.")
     form.aciklama = fields.Text(_(u"Açıklama"))
     form.onay = fields.Button(_(u"Onaya Gönder"))
     self.form_out(form)
예제 #2
0
    def ayrilma_nedeni_sec(self):
        """
        Ayrılma nedenlerini form içinde listelenir. Listelenen ayrılma nedenlerinden biri
        kullanıcı tarafından seçilir.

        """

        _form = JsonForm(current=self.current, title=_(u'Öğrencinin Ayrılma Nedenini Seçiniz'))
        _form.ayrilma_nedeni = fields.Integer(choices=self.object.get_choices_for('ayrilma_nedeni'))
        _form.aciklama = fields.Text(_(u"Açıklama Yazınız"), required=True)
        _form.sec = fields.Button(_(u"Seç"))
        self.form_out(_form)
예제 #3
0
    def ayrilma_nedeni_sec(self):
        """
        Ayrılma nedenlerini form içinde listelenir. Listelenen ayrılma nedenlerinden biri
        kullanıcı tarafından seçilir.

        """
        self.current.task_data['karar_no'] = self.input['form']['karar']
        _form = JsonForm(current=self.current,
                         title=_(u'Öğrencinin Ayrılma Nedenini Seçiniz'))
        _form.ayrilma_nedeni = fields.Integer(
            choices=self.object.get_choices_for('ayrilma_nedeni'))
        _form.aciklama = fields.Text(_(u"Açıklama Yazınız"), required=True)
        _form.sec = fields.Button(_(u"Seç"))
        self.form_out(_form)
예제 #4
0
 def aciklama_yaz(self):
     form = JsonForm(title=_(u"Açıklama Yazınız"))
     form.aciklama = fields.Text(_(u"Açıklama"))
     form.kaydet = fields.Button(_(u"Kaydet"))
     self.form_out(form)