
from __future__ import unicode_literals

from wtforms.fields import StringField, TextAreaField
from wtforms.validators import DataRequired

from indico.util.i18n import _
from indico.web.forms.base import IndicoForm


class TrackForm(IndicoForm):
    title = StringField(_('Title'), [DataRequired()], description=_('Title of the track'))
    code = StringField(_('Code'), description=_('Code for the track'))
    description = TextAreaField(_('Description'), description=_('Text describing the track'))


from __future__ import unicode_literals

from wtforms.fields import StringField, TextAreaField
from wtforms.validators import DataRequired

from indico.util.i18n import _
from indico.web.forms.base import IndicoForm


class TrackForm(IndicoForm):
    title = StringField(_('Title'), [DataRequired()])
    code = StringField(_('Code'))
    description = TextAreaField(_('Description'), render_kw={'rows': 10})

Remove useless field descs, increase rows
Tracks: Remove useless field descs, increase rows

  
  from __future__ import unicode_literals
  
  from wtforms.fields import StringField, TextAreaField
  from wtforms.validators import DataRequired
  
  from indico.util.i18n import _
  from indico.web.forms.base import IndicoForm
  
  
  class TrackForm(IndicoForm):
-     title = StringField(_('Title'), [DataRequired()], description=_('Title of the track'))
-     code = StringField(_('Code'), description=_('Code for the track'))
-     description = TextAreaField(_('Description'), description=_('Text describing the track'))
+     title = StringField(_('Title'), [DataRequired()])
+     code = StringField(_('Code'))
+     description = TextAreaField(_('Description'), render_kw={'rows': 10})
  
Remove useless field descs, increase rows
## Code Before:

from __future__ import unicode_literals

from wtforms.fields import StringField, TextAreaField
from wtforms.validators import DataRequired

from indico.util.i18n import _
from indico.web.forms.base import IndicoForm


class TrackForm(IndicoForm):
    title = StringField(_('Title'), [DataRequired()], description=_('Title of the track'))
    code = StringField(_('Code'), description=_('Code for the track'))
    description = TextAreaField(_('Description'), description=_('Text describing the track'))

## Instruction:
Remove useless field descs, increase rows
## Code After:

from __future__ import unicode_literals

from wtforms.fields import StringField, TextAreaField
from wtforms.validators import DataRequired

from indico.util.i18n import _
from indico.web.forms.base import IndicoForm


class TrackForm(IndicoForm):
    title = StringField(_('Title'), [DataRequired()])
    code = StringField(_('Code'))
    description = TextAreaField(_('Description'), render_kw={'rows': 10})
