Mercurial > gemma
annotate client/src/components/ui/UIBoxHeader.vue @ 5511:ba014cc5f969 deactivate-users
Client: Fix checkbox of hiding inactive users
* Make the label of the checkbox clickable
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 30 Sep 2021 12:47:09 +0200 |
parents | 36cbf14b878a |
children | 7768f14f6535 |
rev | line source |
---|---|
2408
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
1 <template> |
3188
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
2 <h6 :class="['box-header', { small }]"> |
2408
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
3 <span class="box-title"> |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
4 <font-awesome-icon |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
5 :icon="icon" |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
6 class="box-icon" |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
7 v-if="icon" |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
8 fixed-width |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
9 /> |
2754
d0f6c222f4f9
client:correct a set of strings marking
Fadi Abbud <fadi.abbud@intevation.de>
parents:
2631
diff
changeset
|
10 {{ title }} |
2408
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
11 </span> |
3026
619f03a0062a
client: adjusted box control's style
Markus Kottlaender <markus@intevation.de>
parents:
2897
diff
changeset
|
12 <div class="d-flex flex-row"> |
5509
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
13 <span class="box-control" v-if="checkBox" style="cursor: default;"> |
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
14 <input |
5511
ba014cc5f969
Client: Fix checkbox of hiding inactive users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
5509
diff
changeset
|
15 id="checkboxID" |
5509
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
16 type="checkbox" |
5511
ba014cc5f969
Client: Fix checkbox of hiding inactive users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
5509
diff
changeset
|
17 class="checkbox-header" |
5509
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
18 :checked="checkBox.value" |
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
19 @change="checkBox.callback" |
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
20 /> |
5511
ba014cc5f969
Client: Fix checkbox of hiding inactive users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
5509
diff
changeset
|
21 <label for="checkboxID" class="ml-1 small mb-0 checkbox-header"> |
5509
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
22 {{ checkBox.label }} |
5511
ba014cc5f969
Client: Fix checkbox of hiding inactive users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
5509
diff
changeset
|
23 </label> |
5509
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
24 </span> |
2631
7a0e468d3832
client: ui: allow additional (custom) actions/buttons in box header
Markus Kottlaender <markus@intevation.de>
parents:
2629
diff
changeset
|
25 <span |
2837
61aacfd02812
client: added collapsible legend component for diagrams
Markus Kottlaender <markus@intevation.de>
parents:
2754
diff
changeset
|
26 class="box-control" |
2631
7a0e468d3832
client: ui: allow additional (custom) actions/buttons in box header
Markus Kottlaender <markus@intevation.de>
parents:
2629
diff
changeset
|
27 v-for="(action, index) in actions" |
7a0e468d3832
client: ui: allow additional (custom) actions/buttons in box header
Markus Kottlaender <markus@intevation.de>
parents:
2629
diff
changeset
|
28 :key="index" |
7a0e468d3832
client: ui: allow additional (custom) actions/buttons in box header
Markus Kottlaender <markus@intevation.de>
parents:
2629
diff
changeset
|
29 @click="action.callback" |
7a0e468d3832
client: ui: allow additional (custom) actions/buttons in box header
Markus Kottlaender <markus@intevation.de>
parents:
2629
diff
changeset
|
30 > |
3177
fc008b32c593
client: layers: loading animation for refreshing layer sources
Markus Kottlaender <markus@intevation.de>
parents:
3026
diff
changeset
|
31 <font-awesome-icon |
fc008b32c593
client: layers: loading animation for refreshing layer sources
Markus Kottlaender <markus@intevation.de>
parents:
3026
diff
changeset
|
32 :icon="action.icon" |
fc008b32c593
client: layers: loading animation for refreshing layer sources
Markus Kottlaender <markus@intevation.de>
parents:
3026
diff
changeset
|
33 :spin="action.icon === 'spinner'" |
fc008b32c593
client: layers: loading animation for refreshing layer sources
Markus Kottlaender <markus@intevation.de>
parents:
3026
diff
changeset
|
34 /> |
2631
7a0e468d3832
client: ui: allow additional (custom) actions/buttons in box header
Markus Kottlaender <markus@intevation.de>
parents:
2629
diff
changeset
|
35 </span> |
2837
61aacfd02812
client: added collapsible legend component for diagrams
Markus Kottlaender <markus@intevation.de>
parents:
2754
diff
changeset
|
36 <span class="box-control" @click="closeCallback" v-if="closeCallback"> |
2549
9bf6b767a56a
client: refactored and improved splitscreen for diagrams
Markus Kottlaender <markus@intevation.de>
parents:
2408
diff
changeset
|
37 <font-awesome-icon icon="times" /> |
9bf6b767a56a
client: refactored and improved splitscreen for diagrams
Markus Kottlaender <markus@intevation.de>
parents:
2408
diff
changeset
|
38 </span> |
9bf6b767a56a
client: refactored and improved splitscreen for diagrams
Markus Kottlaender <markus@intevation.de>
parents:
2408
diff
changeset
|
39 </div> |
2408
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
40 </h6> |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
41 </template> |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
42 |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
43 <style lang="sass"> |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
44 .box-header |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
45 display: flex |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
46 justify-content: space-between |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
47 align-items: center |
2549
9bf6b767a56a
client: refactored and improved splitscreen for diagrams
Markus Kottlaender <markus@intevation.de>
parents:
2408
diff
changeset
|
48 min-height: 34px |
2408
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
49 padding-left: .5rem |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
50 border-bottom: 1px solid #dee2e6 |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
51 color: $color-info |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
52 margin-bottom: 0 |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
53 padding: 0.25rem |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
54 font-weight: bold |
2566
83b938bf4da9
client: prepared store and minimized splitscreens for multiple simultaneous diagrams
Markus Kottlaender <markus@intevation.de>
parents:
2549
diff
changeset
|
55 background: white |
2629
85927d27c84e
client: box header: rounded corners style fix
Markus Kottlaender <markus@intevation.de>
parents:
2566
diff
changeset
|
56 border-top-left-radius: .25rem |
85927d27c84e
client: box header: rounded corners style fix
Markus Kottlaender <markus@intevation.de>
parents:
2566
diff
changeset
|
57 border-top-right-radius: .25rem |
2408
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
58 .box-title |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
59 padding-left: 0.25rem |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
60 .box-icon |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
61 margin-right: 0.25rem |
2897
b7cfbb21f252
client: removed margin from box controls, add margins individually where needed
Markus Kottlaender <markus@intevation.de>
parents:
2837
diff
changeset
|
62 .box-control |
b7cfbb21f252
client: removed margin from box controls, add margins individually where needed
Markus Kottlaender <markus@intevation.de>
parents:
2837
diff
changeset
|
63 margin-left: 3px |
3188
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
64 &.small |
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
65 padding: 0.1rem 0.1rem 0.1rem 0.25rem |
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
66 min-height: 27px |
5511
ba014cc5f969
Client: Fix checkbox of hiding inactive users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
5509
diff
changeset
|
67 .checkbox-header |
ba014cc5f969
Client: Fix checkbox of hiding inactive users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
5509
diff
changeset
|
68 cursor: pointer |
2408
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
69 </style> |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
70 |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
71 <script> |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
72 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
73 * without warranty, see README.md and license for details. |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
74 * |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
75 * SPDX-License-Identifier: AGPL-3.0-or-later |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
76 * License-Filename: LICENSES/AGPL-3.0.txt |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
77 * |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
78 * Copyright (C) 2018 by via donau |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
79 * – Österreichische Wasserstraßen-Gesellschaft mbH |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
80 * Software engineering by Intevation GmbH |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
81 * |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
82 * Author(s): |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
83 * Markus Kottländer <markus.kottlaender@intevation.de> |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
84 */ |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
85 |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
86 export default { |
3188
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
87 props: { |
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
88 icon: String, |
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
89 title: String, |
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
90 closeCallback: Function, |
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
91 actions: Array, |
5509
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
92 small: Boolean, |
36cbf14b878a
Client: Add ability to list only active users
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3188
diff
changeset
|
93 checkBox: Object |
3188
c36940e53788
client: ui box header: removed old unused functionality and added support for smaller fontsize and padding
Markus Kottlaender <markus@intevation.de>
parents:
3177
diff
changeset
|
94 } |
2408
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
95 }; |
02d30251d594
client: table component for unified style
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
96 </script> |