Add frontend validation for mute rule creation
This commit is contained in:
parent
f3f8e99045
commit
9f8450a83c
|
@ -1,6 +1,6 @@
|
|||
#form.form-group
|
||||
%form{ action: settings_muted_path, method: "post" }
|
||||
.input-group
|
||||
%input.form-control#muted_phrase{ name: :muted_phrase, placeholder: t(".placeholder"), data: { controller: :autofocus } }
|
||||
%input.form-control#muted_phrase{ name: :muted_phrase, placeholder: t(".placeholder"), required: true, minlength: 1, data: { controller: :autofocus } }
|
||||
.input-group-append
|
||||
%button.btn.btn-primary{ type: "submit" }= t("voc.add")
|
||||
|
|
Loading…
Reference in New Issue