Browse Source

Set maxlength on input fields in the Filtering Rules dialog

pull/509/head
Pēteris Caune 4 years ago
parent
commit
599f481d58
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 5 additions and 3 deletions
  1. +4
    -2
      templates/front/filtering_rules_modal.html
  2. +1
    -1
      templates/front/update_name_modal.html

+ 4
- 2
templates/front/filtering_rules_modal.html View File

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


+ 1
- 1
templates/front/update_name_modal.html View File

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


Loading…
Cancel
Save