Exemplo n.º 1
0
 def test_SuitSplitDateTimeWidget(self):
     ssdtw = SuitSplitDateTimeWidget()
     output = ssdtw.render('sdw', '')
     dwo = self.get_SuitDateWidget_output().replace('sdw', 'sdw_0')
     two = self.get_SuitTimeWidget_output().replace('sdw', 'sdw_1')
     self.assertHTMLEqual(output,
                          '<div class="datetime">%s %s</div>' % (dwo, two))
Exemplo n.º 2
0
 def test_SuitSplitDateTimeWidget(self):
     ssdtw = SuitSplitDateTimeWidget()
     output = ssdtw.render('sdw', '')
     dwo = self.get_SuitDateWidget_output().replace('sdw', 'sdw_0')
     two = self.get_SuitTimeWidget_output().replace('sdw', 'sdw_1')
     self.assertHTMLEqual(output, '<div class="datetime">%s %s</div>' %
                                  (dwo, two))
Exemplo n.º 3
0
 class Meta:
     model = Conference
     fields = [
         'form',
         'publication',
         'author',
     ]
     widgets = {
         'date_start': SuitSplitDateTimeWidget(),
         'date_stop': SuitSplitDateTimeWidget(),
     }
Exemplo n.º 4
0
 class Meta:
     model = Record
     exclude = []
     widgets = {
         'date': SuitSplitDateTimeWidget(),
         'date_start': SuitSplitDateTimeWidget(),
         'date_stop': SuitSplitDateTimeWidget(),
         'source': Select2MultipleWidget,
         'file': Select2Widget,
         'new_types': Select2MultipleWidget,
         'user': Select2Widget
     }
Exemplo n.º 5
0
 class Meta:
     model = Experiment
     fields = '__all__'
     widgets = {
         'date': SuitSplitDateTimeWidget(),
         'description': CKEditorWidget(),
     }
Exemplo n.º 6
0
    class Meta:
        model = Alert
        exclude = (
            'title',
            'title_i18n',
            'description',
            'description_i18n',
            'status_changed'
        )

        widgets = {
            'title_pl': Textarea(attrs={'style': 'width: 99%', 'rows': 2}),
            'title_en': Textarea(attrs={'style': 'width: 99%', 'rows': 2}),
            'description_pl': CKEditorWidget(config_name='alert_description'),
            'description_en': CKEditorWidget(config_name='alert_description'),
            'start_date': SuitSplitDateTimeWidget(),
            'finish_date': SuitSplitDateTimeWidget()
        }
Exemplo n.º 7
0
 class Meta:
     widgets = {
         'content': CKEditorWidget(attrs={'class': 'input-mini'}),
         'arrange_time': SuitSplitDateTimeWidget(),
     }
Exemplo n.º 8
0
 def test_SuitSplitDateTimeWidget(self):
     ssdtw = SuitSplitDateTimeWidget()
     output = ssdtw.render('sdw', '')
     self.assertHTMLEqual(self.get_SuitSplitDateTimeWidget_output(), output)
Exemplo n.º 9
0
 def test_SuitSplitDateTimeWidget(self):
     ssdtw = SuitSplitDateTimeWidget()
     output = ssdtw.render('sdw', '')
     self.assertHTMLEqual(
         self.get_SuitSplitDateTimeWidget_output(),
         output)