Add selected items count in Manage view

This commit is contained in:
Bubka 2020-09-28 00:04:17 +02:00
parent 93a721cd68
commit c23d22e2b3
5 changed files with 16 additions and 8 deletions

View File

@ -47,7 +47,8 @@ export default {
"delete": "Delete",
"save": "Save",
"close": "Close",
"demo_do_not_post_sensitive_data": "This is a demo app, do not post any sensitive data"
"demo_do_not_post_sensitive_data": "This is a demo app, do not post any sensitive data",
"selected": "selected"
},
"errors": {
"resource_not_found": "Resource not found",
@ -336,7 +337,8 @@ export default {
"delete": "Supprimer",
"save": "Enregistrer",
"close": "Fermer",
"demo_do_not_post_sensitive_data": "Site de démonstration, ne postez aucune donnée sensible"
"demo_do_not_post_sensitive_data": "Site de démonstration, ne postez aucune donnée sensible",
"selected": "selectionné(s)"
},
"errors": {
"resource_not_found": "Ressource introuvable",

View File

@ -52,12 +52,12 @@
<div class="column is-three-quarters-mobile is-one-third-tablet is-one-quarter-desktop is-one-quarter-widescreen is-one-quarter-fullhd">
<!-- toolbar -->
<div class="toolbar has-text-centered" v-if="editMode">
<a class="button is-rounded is-outlined" :class="{ 'is-dark': selectedAccounts.length === 0, 'is-danger': selectedAccounts.length > 0 }" :disabled="selectedAccounts.length == 0" @click="destroyAccounts">
<span class="icon is-small">
<font-awesome-icon :icon="['fas', 'trash']" />
</span>
<span>{{ $t('commons.delete') }}</span>
</a>
<div class="manage-buttons tags has-addons are-medium">
<span class="tag is-dark">{{ selectedAccounts.length }}&nbsp;{{ $t('commons.selected') }}</span>
<a class="tag is-danger" v-if="selectedAccounts.length > 0" @click="destroyAccounts">
{{ $t('commons.delete') }}&nbsp;<font-awesome-icon :icon="['fas', 'trash']" />
</a>
</div>
</div>
<!-- search -->
<div class="field" v-else>

View File

@ -23,4 +23,5 @@
'save' => 'Save',
'close' => 'Close',
'demo_do_not_post_sensitive_data' => 'This is a demo app, do not post any sensitive data',
'selected' => 'selected',
];

View File

@ -23,4 +23,5 @@
'save' => 'Enregistrer',
'close' => 'Fermer',
'demo_do_not_post_sensitive_data' => 'Site de démonstration, ne postez aucune donnée sensible',
'selected' => 'selectionné(s)',
];

View File

@ -39,6 +39,10 @@ a:hover {
margin-bottom: 0 !important;
}
.manage-buttons {
justify-content: center;
}
.form-column {
padding-top: 3rem;
}