659 |
659 |
|
660 |
660 |
def fill_admin_form(self, form):
|
661 |
661 |
WidgetField.fill_admin_form(self, form)
|
662 |
|
form.add(StringWidget, 'size', title = _('Line length'),
|
663 |
|
value = self.size)
|
|
662 |
if self.size:
|
|
663 |
form.add(StringWidget, 'size', title=_('Line length'),
|
|
664 |
hint=_('Deprecated option, it is advised to use CSS classes '
|
|
665 |
'to size the fields in a manner compatible with all devices.'),
|
|
666 |
value=self.size)
|
|
667 |
else:
|
|
668 |
form.add(HiddenWidget, 'size', value=None)
|
664 |
669 |
form.add(RegexStringWidget, 'validation', title = _('Validation regex'),
|
665 |
670 |
value=self.validation, advanced=(not self.validation))
|
666 |
671 |
form.add(data_sources.DataSourceSelectionWidget, 'data_source',
|
... | ... | |
695 |
700 |
|
696 |
701 |
def fill_admin_form(self, form):
|
697 |
702 |
WidgetField.fill_admin_form(self, form)
|
698 |
|
form.add(StringWidget, 'cols', title = _('Line length'),
|
699 |
|
value = self.cols)
|
|
703 |
if self.cols:
|
|
704 |
form.add(StringWidget, 'cols', title=_('Line length'),
|
|
705 |
hint=_('Deprecated option, it is advised to use CSS classes '
|
|
706 |
'to size the fields in a manner compatible with all devices.'),
|
|
707 |
value=self.cols)
|
|
708 |
else:
|
|
709 |
form.add(HiddenWidget, 'cols', value=None)
|
700 |
710 |
form.add(StringWidget, 'rows', title = _('Number of rows'),
|
701 |
711 |
value = self.rows)
|
702 |
712 |
form.add(StringWidget, 'maxlength',
|
703 |
|
-
|