コード例 #1
0
 def list(self, custom_form=None):
     self.current.task_data.pop('object_id', None)
     custom_form = JsonForm(current=self.current,
                            title=_(u"Gündem Listesi"))
     custom_form.ekle = fields.Button(_(u"Yeni Gündem Oluştur"),
                                      cmd='yeni_gundem')
     CrudView.list(self, custom_form=custom_form)
コード例 #2
0
 def list(self, custom_form=None):
     if 'form' in self.input and 'proje' in self.input['form']:
         self.current.task_data['bap_proje_id'] = self.input['form'][
             'proje']
     CrudView.list(self)
     proje = BAPProje.objects.get(self.current.task_data['bap_proje_id'])
     if 'GenelBilgiGirForm' in self.current.task_data:
         ad = self.current.task_data['GenelBilgiGirForm']['ad']
     else:
         ad = proje.ad
     toplam = sum(
         BAPButcePlani.objects.all(
             ilgili_proje=proje).values_list('toplam_fiyat'))
     self.output['objects'].append({
         'fields': ['TOPLAM', '', '', '', '',
                    str(toplam), ''],
         'actions':
         ''
     })
     form = JsonForm(title=_(u"%s projesi için Bütçe Planı") % ad)
     form.ekle = fields.Button(_(u"Ekle"), cmd='add_edit_form')
     form.sartname_ekle = fields.Button(_(u"Teknik Şartname Ekle"),
                                        cmd='sartname_ekle')
     form.bitir = fields.Button(_(u"Bitir"), cmd='bitir')
     self.form_out(form)
コード例 #3
0
 def list(self, custom_form=None):
     CrudView.list(self)
     form = JsonForm(title=_(u"Sıkça Sorulan Sorular"))
     form.ekle = fields.Button(_(u"Ekle"), cmd='add_edit_form')
     self.form_out(form)
コード例 #4
0
ファイル: bap_takvim.py プロジェクト: zetaops/ulakbus
 def list(self, custom_form=None):
     custom_form = TakvimListForm()
     CrudView.list(self, custom_form)