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
e70865ec
Commit
e70865ec
authored
5 years ago
by
Tifenn Guillas
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
cc3a42df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!68
Develop
,
!51
Resolve "Design output selectbox"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/search/components/output/output-by-category.component.html
+19
-21
19 additions, 21 deletions
...earch/components/output/output-by-category.component.html
src/styles.css
+4
-0
4 additions, 0 deletions
src/styles.css
with
23 additions
and
21 deletions
src/app/search/components/output/output-by-category.component.html
+
19
−
21
View file @
e70865ec
<p
class=
"mb-3"
><em>
{{ categoryLabel }}
</em></p>
<div
class=
"row mb-1"
>
<div
class=
"col pr-1"
>
<button
(click)=
"selectAll()"
[disabled]=
"isAllSelected"
class=
"btn btn-sm btn-block btn-outline-secondary letter-spacing"
>
Select All
</button>
<button
(click)=
"selectAll()"
[disabled]=
"isAllSelected"
class=
"btn btn-sm btn-block btn-outline-secondary letter-spacing"
>
Select All
</button>
</div>
<div
class=
"col pl-1"
>
<button
(click)=
"unselectAll()"
[disabled]=
"isAllUnselected"
class=
"btn btn-sm btn-block btn-outline-secondary letter-spacing"
>
Unselect All
</button>
<button
(click)=
"unselectAll()"
[disabled]=
"isAllUnselected"
class=
"btn btn-sm btn-block btn-outline-secondary letter-spacing"
>
Unselect All
</button>
</div>
</div>
<div
class=
"selectbox py-1"
>
<button
*ngFor=
"let attribute of getAttributeListSortedByDisplay()"
class=
"btn btn-block text-left py-0 m-0"
(click)=
"toggleSelection(attribute.id)"
>
<div
*ngIf=
"isSelected(attribute.id); then selected else unselected"
></div>
{{ attribute.form_label }}
</button>
</div>
<ng-template
#selected
>
<span
class=
"fa-stack fa-1x"
>
<i
class=
"far fa-square fa-stack-1x text-secondary"
></i>
<i
class=
"fas fa-check fa-stack-1x anis-color"
></i>
</span>
</ng-template>
<ng-template
#unselected
>
<span
class=
"fa-stack fa-1x"
>
<i
class=
"far fa-square fa-stack-1x text-secondary"
></i>
</span>
</ng-template>
\ No newline at end of file
<div
class=
"selectbox p-0"
>
<div
*ngFor=
"let attribute of getAttributeListSortedByDisplay()"
>
<div
*ngIf=
"isSelected(attribute.id)"
>
<button
class=
"btn btn-block text-left py-1 m-0 bg-theme-color rounded-0"
(click)=
"toggleSelection(attribute.id)"
>
<i
class=
"fas fa-fw fa-check"
></i>
{{ attribute.form_label }}
</button>
</div>
<div
*ngIf=
"!isSelected(attribute.id)"
>
<button
class=
"btn btn-block text-left py-1 m-0 rounded-0"
(click)=
"toggleSelection(attribute.id)"
>
<i
class=
"far fa-fw fa-square text-secondary"
></i>
{{ attribute.form_label }}
</button>
</div>
</div>
</div>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/styles.css
+
4
−
0
View file @
e70865ec
...
...
@@ -3,4 +3,8 @@
.custom-accordion-output
.panel-body
{
padding-top
:
0
;
padding-bottom
:
0
;
}
.bg-theme-color
{
background-color
:
#7AC29A
;
}
\ No newline at end of file
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