Added a description to the slug field on the media entry form.
This commit is contained in:
parent
6be33a7780
commit
7b80685ac5
@ -25,13 +25,17 @@ class EditForm(wtforms.Form):
|
|||||||
title = wtforms.TextField(
|
title = wtforms.TextField(
|
||||||
_('Title'),
|
_('Title'),
|
||||||
[wtforms.validators.Length(min=0, max=500)])
|
[wtforms.validators.Length(min=0, max=500)])
|
||||||
slug = wtforms.TextField(
|
|
||||||
_('Slug'),
|
|
||||||
[wtforms.validators.Required(message=_("The slug can't be empty"))])
|
|
||||||
description = wtforms.TextAreaField('Description of this work')
|
description = wtforms.TextAreaField('Description of this work')
|
||||||
tags = wtforms.TextField(
|
tags = wtforms.TextField(
|
||||||
_('Tags'),
|
_('Tags'),
|
||||||
[tag_length_validator])
|
[tag_length_validator])
|
||||||
|
slug = wtforms.TextField(
|
||||||
|
_('Slug'),
|
||||||
|
[wtforms.validators.Required(message=_("The slug can't be empty"))],
|
||||||
|
description=_(
|
||||||
|
"The title part of this media's URL. "
|
||||||
|
"You usually don't need to change this."))
|
||||||
|
|
||||||
|
|
||||||
class EditProfileForm(wtforms.Form):
|
class EditProfileForm(wtforms.Form):
|
||||||
bio = wtforms.TextAreaField(
|
bio = wtforms.TextAreaField(
|
||||||
@ -42,6 +46,7 @@ class EditProfileForm(wtforms.Form):
|
|||||||
[wtforms.validators.Optional(),
|
[wtforms.validators.Optional(),
|
||||||
wtforms.validators.URL(message='Improperly formed URL')])
|
wtforms.validators.URL(message='Improperly formed URL')])
|
||||||
|
|
||||||
|
|
||||||
class EditAttachmentsForm(wtforms.Form):
|
class EditAttachmentsForm(wtforms.Form):
|
||||||
attachment_name = wtforms.TextField(
|
attachment_name = wtforms.TextField(
|
||||||
'Title')
|
'Title')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user