Set maxlength on input fields in the Filtering Rules dialog

This commit is contained in:
Pēteris Caune 2021-05-05 17:37:47 +03:00
parent a36c326e32
commit 599f481d58
No known key found for this signature in database
GPG Key ID: E28D7679E9A9EDE2
2 changed files with 5 additions and 3 deletions

View File

@ -67,9 +67,10 @@
<input
name="subject"
type="text"
maxlength="100"
value="{{ check.subject }}"
{% if not check.subject and not check.subject_fail %}disabled{% endif %}
class="input-name form-control filter-by-subject" />
class="form-control filter-by-subject" />
<span class="help-block">
Comma-separated list of keywords. If Subject contains
any of the keywords, treat it as "success".
@ -84,9 +85,10 @@
<input
name="subject_fail"
type="text"
maxlength="100"
value="{{ check.subject_fail }}"
{% if not check.subject and not check.subject_fail %}disabled{% endif %}
class="input-name form-control filter-by-subject" />
class="form-control filter-by-subject" />
<span class="help-block">
Comma-separated list of keywords. If Subject contains
any of the keywords, treat it as "failure".

View File

@ -24,7 +24,7 @@
maxlength="100"
value="{{ check.name }}"
placeholder="unnamed"
class="input-name form-control" />
class="form-control" />
<span class="help-block">
Give this check a human-friendly name,