| |
@@ -136,7 +136,7 @@
|
| |
""" Form to edit the description of a project. """
|
| |
|
| |
description = wtforms.StringField(
|
| |
- 'Description <span class="error">*</span>',
|
| |
+ 'Description',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
url = wtforms.StringField(
|
| |
@@ -169,7 +169,7 @@
|
| |
class ProjectForm(ProjectFormSimplified):
|
| |
""" Form to create or edit project. """
|
| |
|
| |
- name = wtforms.StringField('Project name <span class="error">*</span>')
|
| |
+ name = wtforms.StringField('Project name')
|
| |
mirrored_from = wtforms.StringField(
|
| |
"Mirror from URL",
|
| |
[
|
| |
@@ -252,11 +252,11 @@
|
| |
""" Form to create or edit an issue. """
|
| |
|
| |
title = wtforms.StringField(
|
| |
- 'Title<span class="error">*</span>',
|
| |
+ 'Title',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
issue_content = wtforms.TextAreaField(
|
| |
- 'Content<span class="error">*</span>',
|
| |
+ 'Content',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
private = wtforms.BooleanField(
|
| |
@@ -317,7 +317,7 @@
|
| |
""" Form to create a pull request. """
|
| |
|
| |
title = wtforms.StringField(
|
| |
- 'Title<span class="error">*</span>',
|
| |
+ 'Title',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
initial_comment = wtforms.TextAreaField(
|
| |
@@ -334,18 +334,18 @@
|
| |
""" Form to create a remote pull request. """
|
| |
|
| |
git_repo = wtforms.StringField(
|
| |
- 'Git repo address<span class="error">*</span>',
|
| |
+ 'Git repo address',
|
| |
[
|
| |
wtforms.validators.DataRequired(),
|
| |
wtforms.validators.Regexp(urlpattern, flags=re.IGNORECASE),
|
| |
],
|
| |
)
|
| |
branch_from = wtforms.StringField(
|
| |
- 'Git branch<span class="error">*</span>',
|
| |
+ 'Git branch',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
branch_to = wtforms.StringField(
|
| |
- 'Git branch to merge in<span class="error">*</span>',
|
| |
+ 'Git branch to merge in',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
|
| |
@@ -554,7 +554,7 @@
|
| |
requestid = wtforms.HiddenField("requestid")
|
| |
tree_id = wtforms.HiddenField("treeid")
|
| |
comment = wtforms.TextAreaField(
|
| |
- 'Comment<span class="error">*</span>',
|
| |
+ 'Comment',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
|
| |
@@ -605,7 +605,7 @@
|
| |
""" Form to add a SSH key to a user. """
|
| |
|
| |
ssh_key = wtforms.StringField(
|
| |
- 'SSH Key <span class="error">*</span>',
|
| |
+ 'SSH Key',
|
| |
[wtforms.validators.DataRequired()]
|
| |
# TODO: Add an ssh key validator?
|
| |
)
|
| |
@@ -625,15 +625,15 @@
|
| |
""" Form to add a user to a project. """
|
| |
|
| |
user = wtforms.StringField(
|
| |
- 'Username <span class="error">*</span>',
|
| |
+ 'Username',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
access = wtforms.StringField(
|
| |
- 'Access Level <span class="error">*</span>',
|
| |
+ 'Access Level',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
branches = wtforms.StringField(
|
| |
- 'Git branches <span class="error">*</span>',
|
| |
+ 'Git branches',
|
| |
[wtforms.validators.Optional()],
|
| |
)
|
| |
|
| |
@@ -642,7 +642,7 @@
|
| |
""" Form to add a user to a pagure group. """
|
| |
|
| |
user = wtforms.StringField(
|
| |
- 'Username <span class="error">*</span>',
|
| |
+ 'Username',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
|
| |
@@ -651,7 +651,7 @@
|
| |
""" Form to assign an user to an issue. """
|
| |
|
| |
assignee = wtforms.StringField(
|
| |
- 'Assignee <span class="error">*</span>',
|
| |
+ 'Assignee',
|
| |
[wtforms.validators.Optional()],
|
| |
)
|
| |
|
| |
@@ -660,18 +660,18 @@
|
| |
""" Form to add a group to a project. """
|
| |
|
| |
group = wtforms.StringField(
|
| |
- 'Group <span class="error">*</span>',
|
| |
+ 'Group',
|
| |
[
|
| |
wtforms.validators.DataRequired(),
|
| |
wtforms.validators.Regexp(STRICT_REGEX, flags=re.IGNORECASE),
|
| |
],
|
| |
)
|
| |
access = wtforms.StringField(
|
| |
- 'Access Level <span class="error">*</span>',
|
| |
+ 'Access Level',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
branches = wtforms.StringField(
|
| |
- 'Git branches <span class="error">*</span>',
|
| |
+ 'Git branches',
|
| |
[wtforms.validators.Optional()],
|
| |
)
|
| |
|
| |
@@ -691,7 +691,7 @@
|
| |
choices=[("user", "User"), ("group", "Group")],
|
| |
)
|
| |
name = wtforms.StringField(
|
| |
- 'User- or Groupname <span class="error">*</span>',
|
| |
+ 'User- or Groupname',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
acl = wtforms.SelectField(
|
| |
@@ -773,7 +773,7 @@
|
| |
""" Form to ask for a password change. """
|
| |
|
| |
group_name = wtforms.StringField(
|
| |
- 'Group name <span class="error">*</span>',
|
| |
+ 'Group name',
|
| |
[
|
| |
wtforms.validators.DataRequired(),
|
| |
wtforms.validators.Length(max=255),
|
| |
@@ -866,7 +866,7 @@
|
| |
"""
|
| |
|
| |
update_comment = wtforms.TextAreaField(
|
| |
- 'Comment<span class="error">*</span>',
|
| |
+ 'Comment ',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
|
| |
@@ -890,7 +890,7 @@
|
| |
"""
|
| |
|
| |
report_name = wtforms.TextAreaField(
|
| |
- 'Report name<span class="error">*</span>',
|
| |
+ 'Report name',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
|
| |
@@ -900,12 +900,12 @@
|
| |
"""
|
| |
|
| |
issue_notifs = wtforms.TextAreaField(
|
| |
- 'Public issue notification<span class="error">*</span>',
|
| |
+ 'Public issue notification',
|
| |
[wtforms.validators.optional(), MultipleEmail()],
|
| |
)
|
| |
|
| |
pr_notifs = wtforms.TextAreaField(
|
| |
- 'Public PR notification<span class="error">*</span>',
|
| |
+ 'Public PR notification',
|
| |
[wtforms.validators.optional(), MultipleEmail()],
|
| |
)
|
| |
|
| |
@@ -953,7 +953,7 @@
|
| |
""" Form to create a new git tag. """
|
| |
|
| |
tagname = wtforms.StringField(
|
| |
- 'Name of the tag<span class="error">*</span>',
|
| |
+ 'Name of the tag',
|
| |
[wtforms.validators.DataRequired()],
|
| |
)
|
| |
commit_hash = wtforms.StringField(
|
| |
Fixed forms' glitches
- Remove
<span class="errors">*</span>
from forms.py and login_forms.py- Add
<span class="errors">*</span>
to templates/_formhelper.html