Changed shown fields form to two columns
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2021-10-28 09:25:46 +02:00
parent dfb2b0b3d8
commit 5beeab36b1
2 changed files with 21 additions and 4 deletions

View File

@ -67,11 +67,12 @@
data="$ctrl.viewConfig"
auto-load="true">
</vn-crud-model>
<vn-popover class="modal-form" vn-id="smart-table-columns" message="Fields to show">
<vn-popover vn-id="smart-table-columns" message="Fields to show">
<tpl-body>
<div class="vn-pa-md">
<vn-horizontal ng-repeat="column in $ctrl.columns">
<vn-check vn-one
<div class="smart-table-columns vn-pa-md vn-w-xs">
<h6 class="vn-mb-sm">Check the columns you want to see</h6>
<vn-horizontal class="vn-mb-md">
<vn-check ng-repeat="column in $ctrl.columns"
label="{{column.caption}}"
ng-model="$ctrl.viewConfig[0].configuration[column.field]">
</vn-check>

View File

@ -86,3 +86,19 @@ smart-table {
background-color: $color-primary-light
}
}
.smart-table-columns {
h6 {
color: $color-font-secondary
}
& > vn-horizontal {
align-items: flex-start;
flex-wrap: wrap;
}
vn-check {
flex: initial;
width: 50%
}
}