Admin tags page

stable
Xavier Julián 2016-09-22 10:54:56 +02:00
parent 34613d447f
commit eea5ea4fe9
3 changed files with 31 additions and 14 deletions

View File

@ -54,25 +54,28 @@ section
.status-name(translate="COMMON.FIELDS.NAME") .status-name(translate="COMMON.FIELDS.NAME")
.color-filter .color-filter
input.e2e-tags-filter( input.e2e-tags-filter(
id="filter-tags-input"
type="text" type="text"
name="name" name="name"
ng-model="tagsFilter.name" ng-model="tagsFilter.name"
ng-model-options="{debounce: 200}" ng-model-options="{debounce: 200}"
) )
tg-svg( label(for="filter-tags-input")
svg-icon="icon-search" tg-svg(svg-icon="icon-search")
)
.table-main.table-admin-tags( .table-main.table-admin-tags(
ng-if="projectTagsAll.length" ng-if="projectTagsAll.length"
) )
div(ng-show="!mixingTags.toTag") div(ng-show="!mixingTags.toTag")
.admin-attributes-section-wrapper-empty( .empty-large.admin-attributes-section-wrapper-empty(
ng-show="!projectTags.length" ng-show="!projectTags.length"
tg-loading="ctrl.loading" tg-loading="ctrl.loading"
) )
img(
src="/#{v}/images/empty/empty_moon.png"
alt="{{'BACKLOG.EMPTY' | translate}}"
)
p(translate="ADMIN.PROJECT_VALUES_TAGS.EMPTY_SEARCH") p(translate="ADMIN.PROJECT_VALUES_TAGS.EMPTY_SEARCH")
p lalalaal
div( div(
ng-repeat="tag in projectTags" ng-repeat="tag in projectTags"
@ -154,7 +157,13 @@ section
form(tg-bind-scope) form(tg-bind-scope)
.row.mixing-row.table-main.visualization(class="{{ ctrl.mixingClass(tag) }}") .row.mixing-row.table-main.visualization(class="{{ ctrl.mixingClass(tag) }}")
.color-column .color-column
.current-color(ng-style="{background: tag.color}") .current-color(
ng-if="tag.color"
ng-style="{background: tag.color}"
)
.current-color.empty-color(
ng-if="!tag.color"
)
.status-name .status-name
span(tg-bo-html="tag.name") span(tg-bo-html="tag.name")

View File

@ -50,16 +50,24 @@
padding-left: 1rem; padding-left: 1rem;
} }
} }
.color-filter { }
align-items: center; .color-filter {
display: flex; align-items: center;
flex-grow: 1; display: flex;
padding: 0 10px; flex-grow: 1;
position: relative; padding: 0 10px;
position: relative;
&:hover {
input { input {
padding: 0; border-bottom: 1px solid $whitish;
} }
} }
input {
padding: 0;
}
label {
cursor: pointer;
}
} }
.row { .row {
&.tag-row { &.tag-row {

View File

@ -117,7 +117,7 @@
} }
.current-color { .current-color {
background-color: $gray-light; background-color: $whitish;
border-radius: 2px; border-radius: 2px;
height: 40px; height: 40px;
width: 40px; width: 40px;