Client - add registration status and info box on users limitation
This commit is contained in:
parent
2ba931dcf7
commit
87ad351d6d
@ -15,6 +15,12 @@
|
|||||||
:disabled="!edition"
|
:disabled="!edition"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
<div class="user-limit-help">
|
||||||
|
<span class="info-box">
|
||||||
|
<i class="fa fa-info-circle" aria-hidden="true" />
|
||||||
|
{{ $t('admin.APP_CONFIG.MAX_USERS_HELP') }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<label for="max_single_file_size">
|
<label for="max_single_file_size">
|
||||||
{{ $t('admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL') }}:
|
{{ $t('admin.APP_CONFIG.SINGLE_UPLOAD_MAX_SIZE_LABEL') }}:
|
||||||
<input
|
<input
|
||||||
@ -151,3 +157,17 @@
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import '~@/scss/base.scss';
|
||||||
|
|
||||||
|
.user-limit-help {
|
||||||
|
display: flex;
|
||||||
|
span {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.fa-info-circle {
|
||||||
|
margin-right: $default-margin;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -12,7 +12,16 @@
|
|||||||
</router-link>
|
</router-link>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{{ $t('admin.UPDATE_APPLICATION_DESCRIPTION') }}
|
{{ $t('admin.UPDATE_APPLICATION_DESCRIPTION') }}<br />
|
||||||
|
<span class="registration-status">
|
||||||
|
{{
|
||||||
|
$t(
|
||||||
|
`admin.REGISTRATION_${
|
||||||
|
appConfig.is_registration_enabled ? 'ENABLED' : 'DISABLED'
|
||||||
|
}`
|
||||||
|
)
|
||||||
|
}}
|
||||||
|
</span>
|
||||||
</dd>
|
</dd>
|
||||||
<dt>{{ capitalize($t('workouts.SPORT', 0)) }}</dt>
|
<dt>{{ capitalize($t('workouts.SPORT', 0)) }}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
@ -34,7 +43,7 @@
|
|||||||
|
|
||||||
import AppStatsCards from '@/components/Administration/AppStatsCards.vue'
|
import AppStatsCards from '@/components/Administration/AppStatsCards.vue'
|
||||||
import Card from '@/components/Common/Card.vue'
|
import Card from '@/components/Common/Card.vue'
|
||||||
import { IAppStatistics } from '@/types/application'
|
import { IAppStatistics, TAppConfig } from '@/types/application'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AdminMenu',
|
name: 'AdminMenu',
|
||||||
@ -43,6 +52,10 @@
|
|||||||
Card,
|
Card,
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
appConfig: {
|
||||||
|
type: Object as PropType<TAppConfig>,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
appStatistics: {
|
appStatistics: {
|
||||||
type: Object as PropType<IAppStatistics>,
|
type: Object as PropType<IAppStatistics>,
|
||||||
},
|
},
|
||||||
@ -71,6 +84,9 @@
|
|||||||
dd {
|
dd {
|
||||||
margin-bottom: $default-margin * 3;
|
margin-bottom: $default-margin * 3;
|
||||||
}
|
}
|
||||||
|
.registration-status {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
:disabled="loading"
|
:disabled="loading"
|
||||||
@input="updateFile"
|
@input="updateFile"
|
||||||
/>
|
/>
|
||||||
<div class="files-help">
|
<div class="files-help info-box">
|
||||||
<div>
|
<div>
|
||||||
<strong>{{ $t('workouts.GPX_FILE') }}:</strong>
|
<strong>{{ $t('workouts.GPX_FILE') }}:</strong>
|
||||||
<ul>
|
<ul>
|
||||||
@ -75,7 +75,6 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<strong>{{ $t('workouts.ZIP_ARCHIVE') }}:</strong>
|
<strong>{{ $t('workouts.ZIP_ARCHIVE') }}:</strong>
|
||||||
<ul>
|
<ul>
|
||||||
@ -497,14 +496,7 @@
|
|||||||
.files-help {
|
.files-help {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
|
||||||
background-color: var(--info-background-color);
|
|
||||||
border-radius: $border-radius;
|
|
||||||
color: var(--info-color);
|
|
||||||
font-size: 0.8em;
|
|
||||||
|
|
||||||
margin-top: $default-margin;
|
margin-top: $default-margin;
|
||||||
padding: $default-padding;
|
|
||||||
div {
|
div {
|
||||||
display: flex;
|
display: flex;
|
||||||
@media screen and (max-width: $medium-limit) {
|
@media screen and (max-width: $medium-limit) {
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
"APPLICATION": "Application",
|
"APPLICATION": "Application",
|
||||||
"APP_CONFIG": {
|
"APP_CONFIG": {
|
||||||
"MAX_USERS_LABEL": "Max. number of active users",
|
"MAX_USERS_LABEL": "Max. number of active users",
|
||||||
|
"MAX_USERS_HELP": "If 0, no limitation on registration.",
|
||||||
"MAX_FILES_IN_ZIP_LABEL": "Max. files of zip archive",
|
"MAX_FILES_IN_ZIP_LABEL": "Max. files of zip archive",
|
||||||
"SINGLE_UPLOAD_MAX_SIZE_LABEL": "Max. size of uploaded files (in Mb)",
|
"SINGLE_UPLOAD_MAX_SIZE_LABEL": "Max. size of uploaded files (in Mb)",
|
||||||
"TITLE": "Application configuration",
|
"TITLE": "Application configuration",
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
"APPLICATION": "Application",
|
"APPLICATION": "Application",
|
||||||
"APP_CONFIG": {
|
"APP_CONFIG": {
|
||||||
"MAX_USERS_LABEL": "Nombre maximum d'utilisateurs actifs ",
|
"MAX_USERS_LABEL": "Nombre maximum d'utilisateurs actifs ",
|
||||||
|
"MAX_USERS_HELP": "Si égal à 0, pas limite d'inscription",
|
||||||
"MAX_FILES_IN_ZIP_LABEL": "Taille max. des archives zip (en Mo) ",
|
"MAX_FILES_IN_ZIP_LABEL": "Taille max. des archives zip (en Mo) ",
|
||||||
"SINGLE_UPLOAD_MAX_SIZE_LABEL": "Taille max. des fichiers (en Mo) ",
|
"SINGLE_UPLOAD_MAX_SIZE_LABEL": "Taille max. des fichiers (en Mo) ",
|
||||||
"TITLE": "Configuration de l'application",
|
"TITLE": "Configuration de l'application",
|
||||||
|
@ -101,6 +101,14 @@ button {
|
|||||||
margin: $default-margin;
|
margin: $default-margin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-box {
|
||||||
|
background-color: var(--info-background-color);
|
||||||
|
border-radius: $border-radius;
|
||||||
|
color: var(--info-color);
|
||||||
|
font-size: 0.8em;
|
||||||
|
padding: $default-padding;
|
||||||
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
Loading…
Reference in New Issue
Block a user