You've already forked snikket-web-portal
Require non-empty circle name when creating a new circle
This commit is contained in:
@@ -272,6 +272,7 @@ async def edit_invite(id_: str) -> typing.Union[str, quart.Response]:
|
||||
class CirclePost(flask_wtf.FlaskForm): # type:ignore
|
||||
name = wtforms.StringField(
|
||||
_l("Name"),
|
||||
validators=[wtforms.validators.InputRequired()],
|
||||
)
|
||||
|
||||
action_create = wtforms.SubmitField(
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
{{- create_form.csrf_token -}}
|
||||
<h2 class="form-title">{% trans %}Create circle{% endtrans %}</h2>
|
||||
<div class="f-ebox">
|
||||
{{- create_form.name.label -}}
|
||||
{{- create_form.name.label(class="required") -}}
|
||||
{{- create_form.name -}}
|
||||
</div>
|
||||
<div class="f-bbox">
|
||||
|
||||
Reference in New Issue
Block a user