This commit is contained in:
Diatrex 2021-02-24 12:47:00 +03:00
parent 1b8eac4be3
commit 136b6836e5
3 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,7 @@ function dropdownRow(id, type) {
dropdown += `
<li class="dropdown-submenu dropleft">
<button type="button" class="btn dropdown-item dropdown-toggle">Change Status</button>
<button type="button" class="btn dropdown-item dropdown-toggle">${changeStatusTrans}</button>
<ul class="dropdown-menu">
${statusItems}
</ul>

View File

@ -468,6 +468,7 @@ return [
'update' => 'Update',
'change_password' => 'Change Password',
'choose_an_option' => 'Choose an option...',
'change_status' => 'Change Status',
// Register page
'accept_terms_label' => 'I accept the terms.',

View File

@ -77,6 +77,7 @@
let userStatus = JSON.parse(`{{ userStatus|raw }}`)
let statusChangeLink = `{{ changeStatusUrl }}`
let dropdownBlock = `{{ addBlock('profile/dropdown-ad', {'id': ':id'})|raw }}`
var changeStatusTrans = "{{ trans('visiosoft.module.profile::field.change_status') }}";
</script>
{{ asset_add('scripts.js','visiosoft.module.profile::assets/js/ads.js') }}
{% endblock %}