-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoform-regex.html
More file actions
41 lines (35 loc) · 1.47 KB
/
autoform-regex.html
File metadata and controls
41 lines (35 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<template name="afRegExp">
<div class="d-flex align-items-baseline">
<input type="text"
class="afRegExp-pattern-input form-control text-monospace">
</div>
{{!-- OPTIONAL --}}
<div class="d-flex mt-2">
<div class="form-check">
<input type="checkbox"
class="form-check-input custom-check afRegExpIsExactMatch"
data-target="isExactMatch"
selected="{{selected ignoreCase}}"
id="fullPattern-{{dataSchemaKey}}">
<label class="form-check-label"
for="fullPattern-{{dataSchemaKey}}">{{fullPatternLabel}}</label>
</div>
<div class="form-check ml-3">
<input type="checkbox"
class="form-check-input custom-check afRegExpIgnoreCase"
data-target="ignoreCase"
selected="{{selected ignoreCase}}"
id="ignoreCase-{{dataSchemaKey}}">
<label class="form-check-label"
for="ignoreCase-{{dataSchemaKey}}">{{ignoreCaseLabel}}</label>
</div>
</div>
{{!-- ERRORS, VALIDATION ETC, --}}
<div class="{{#unless
invalid}}d-block{{else}}d-block{{/unless}} help-block text-danger">
<small>{{afFieldMessage name=name}}</small>
</div>
{{!-- autoform related input/output --}}
<input type="hidden" class="afRegExpHiddenInput"
data-schema-key="{{dataSchemaKey}}"/>
</template>