Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
anis-client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
anis
anis-client
Commits
4736c92d
Commit
4736c92d
authored
5 years ago
by
Tifenn Guillas
Browse files
Options
Downloads
Patches
Plain Diff
WIP: bug datalist
parent
90d60210
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!81
3.1
,
!77
Stacked form
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/search/components/criteria/search-type/datalist.component.html
+29
-15
29 additions, 15 deletions
...h/components/criteria/search-type/datalist.component.html
with
29 additions
and
15 deletions
src/app/search/components/criteria/search-type/datalist.component.html
+
29
−
15
View file @
4736c92d
<div
class=
"form-group row"
>
<label
class=
"col-3 col-form-label"
>
{{ label }}
</label>
<div
class=
"col"
>
<input
[attr.list]=
"getDatalistId()"
type=
"text"
class=
"form-control"
[placeholder]=
"getPlaceholder()"
[formControl]=
"field"
autocomplete=
"off"
/>
<datalist
[id]=
"getDatalistId()"
>
<option
*ngFor=
"let option of options"
[value]=
"option.value"
>
</datalist>
<div
class=
"row"
>
<div
class=
"col form-group"
>
<label>
{{ label }}
</label>
<div
class=
"row"
>
<div
class=
"col col-sm-auto pr-sm-1 mb-1 mb-sm-0"
>
<app-operator
[operator]=
"operator"
[searchType]=
"field"
[advancedForm]=
"advancedForm"
[disabled]=
"disabledOperator"
(changeOperator)=
"changeOperator($event)"
>
</app-operator>
</div>
<div
class=
"w-100 d-block d-sm-none"
></div>
<div
class=
"col pl-sm-1"
>
<input
[attr.list]=
"getDatalistId()"
type=
"text"
class=
"form-control"
[placeholder]=
"getPlaceholder()"
[formControl]=
"field"
autocomplete=
"off"
/>
<datalist
[id]=
"getDatalistId()"
>
<option
*ngFor=
"let option of options"
[value]=
"option.value"
>
</datalist>
</div>
</div>
</div>
<div
class=
"col-2 text-center"
>
<button
class=
"btn btn-outline-success"
*ngIf=
"!field.disabled"
[hidden]=
"!field.value"
(click)=
"emitAdd()"
>
<div
class=
"col-2 text-center align-self-end pb-3"
>
<button
class=
"btn btn-outline-success"
*ngIf=
"!field.disabled"
[hidden]=
"!field.value"
(click)=
"emitAdd()"
>
<span
class=
"fas fa-plus fa-fw"
></span>
</button>
<button
class=
"btn btn-outline-danger"
*ngIf=
"field.disabled"
(click)=
"emitDelete()"
>
...
...
@@ -21,3 +34,4 @@
</button>
</div>
</div>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment