Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-client
Commits
78fd828e
Commit
78fd828e
authored
Jul 15, 2019
by
Tifenn Guillas
Browse files
Fix bug checkbox => DONE
parent
3f60ffe1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/search/components/criteria/checkbox.component.html
View file @
78fd828e
...
...
@@ -2,8 +2,8 @@
<label
class=
"col-3 col-form-label"
>
{{label}}
</label>
<div
class=
"col"
>
<div
*ngFor=
"let cb of checkboxes.controls; let i=index"
class=
"form-check form-check-inline"
>
<input
class=
"form-check-input"
type=
"checkbox"
id=
"cb_{{_options[i].
id
}}"
[formControl]=
"cb"
>
<label
class=
"form-check-label"
for=
"cb_{{_options[i].
id
}}"
>
{{_options[i].label}}
</label>
<input
class=
"form-check-input"
type=
"checkbox"
id=
"cb_{{_options[i].
value
}}"
[formControl]=
"cb"
>
<label
class=
"form-check-label"
for=
"cb_{{_options[i].
value
}}"
>
{{_options[i].label}}
</label>
</div>
</div>
<div
class=
"col-2 align-self-center text-center"
>
...
...
src/app/search/store/model/checkbox-criterion.model.ts
View file @
78fd828e
...
...
@@ -14,6 +14,6 @@ export class CheckboxCriterion extends Criterion {
}
getCriterionStr
():
string
{
return
this
.
id
+
'
-cb-
'
+
this
.
values
.
map
(
option
=>
option
.
value
).
join
(
'
:
'
);
return
this
.
id
+
'
:in:
'
+
this
.
values
.
map
(
option
=>
option
.
value
).
join
(
'
|
'
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment