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 += ` dropdown += `
<li class="dropdown-submenu dropleft"> <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"> <ul class="dropdown-menu">
${statusItems} ${statusItems}
</ul> </ul>

View File

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

View File

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