diff options
Diffstat (limited to 'web/html/xui/settings.html')
| -rw-r--r-- | web/html/xui/settings.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 38037764..1e690a0b 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -141,6 +141,27 @@ <a-list-item> <a-row style="padding: 20px"> <a-col :lg="24" :xl="12"> + <a-list-item-meta title='{{ i18n "pages.settings.datepicker"}}'> + <template slot="description">{{ i18n "pages.settings.datepickerDescription"}}</template> + </a-list-item-meta> + </a-col> + + <a-col :lg="24" :xl="12"> + <template> + <a-select style="width: 100%" + :dropdown-class-name="themeSwitcher.currentTheme" + v-model="datepicker"> + <a-select-option v-for="item in datepickerList" :value="item.value"> + <span v-text="item.name"></span> + </a-select-option> + </a-select> + </template> + </a-col> + </a-row> + </a-list-item> + <a-list-item> + <a-row style="padding: 20px"> + <a-col :lg="24" :xl="12"> <a-list-item-meta title="Language" /> </a-col> @@ -311,6 +332,7 @@ showAlert: false, remarkModels: {i:'Inbound',e:'Email',o:'Other'}, remarkSeparators: [' ','-','_','@',':','~','|',',','.','/'], + datepickerList: [{name:'Gregorian (Standard)', value: 'gregorian'}, {name:'Jalalian (شمسی)', value: 'jalalian'}], remarkSample: '', get remarkModel() { rm = this.allSetting.remarkModel; @@ -328,6 +350,12 @@ this.allSetting.remarkModel = value + this.allSetting.remarkModel.substring(1); this.changeRemarkSample(); }, + get datepicker() { + return this.allSetting.datepicker ? this.allSetting.datepicker : 'gregorian'; + }, + set datepicker(value) { + this.allSetting.datepicker = value; + }, changeRemarkSample(){ sample = [] this.remarkModel.forEach(r => sample.push(this.remarkModels[r])); |
