diff --git a/admin/survey/SurveyAdminSettings.php b/admin/survey/SurveyAdminSettings.php
index 20d029baf..cdc11da94 100644
--- a/admin/survey/SurveyAdminSettings.php
+++ b/admin/survey/SurveyAdminSettings.php
@@ -8315,17 +8315,24 @@ class SurveyAdminSettings {
$managed_accounts_count = mysqli_num_rows($sql);
+
+ echo '
';
+ echo $lang['srv_users_add_assigned_max_1'].' '.$managed_accounts_limit.' '.$lang['srv_users_add_assigned_max_2'];
+
// Manager na virtualkah ima omejitev koliko uporabnikov lahko pregleduje
if($managed_accounts_count >= $managed_accounts_limit){
- echo '
Dosegli ste maksimalno število uporabnikov v pregledu ('.$managed_accounts_count.'/'.$managed_accounts_limit.').
';
+ echo '
';
+ echo $lang['srv_users_add_assigned_max_reached'];
+ echo '';
+
return;
}
- elseif($managed_accounts_count > 0){
- echo 'Trenutno imate pregled nad '.$managed_accounts_count.' od maksimalno '.$managed_accounts_limit.' računi.
';
- }
- else{
- echo 'Pod pregled lahko dodate '.$managed_accounts_limit.' uporabniških računov.
';
+ elseif($managed_accounts_count > 0){
+ echo '
';
+ echo $lang['srv_users_add_assigned_current'].' '.$managed_accounts_count.' '.$lang['of'].' '.$managed_accounts_limit.'';
}
+
+ echo '';
}
echo '';
diff --git a/admin/survey/script/dostop.js b/admin/survey/script/dostop.js
index de6712a70..09ec73ceb 100644
--- a/admin/survey/script/dostop.js
+++ b/admin/survey/script/dostop.js
@@ -282,22 +282,27 @@ $(document).ready(function () {
}
if ($('#my_users_list').length > 0) {
- tabelaDataTables = $('#my_users_list').DataTable({
- "ajax": {
- "url": siteUrl+"admin/survey/ajax.php?t=dostop&a=my_users_list",
- "type": "post"
- },
- serverSide: true,
- lengthMenu: [[50, 500, 1000, 5000, 10000], [50, 500, 1000, 5000, 10000]],
- dom: 'Blfrtip',
- deferRender: true,
- select: true,
- buttons: [
- ],
- language: {
- "url": siteUrl+"admin/survey/script/datatables/Slovenian.json"
- }
- });
+ tabelaDataTables = $('#my_users_list').DataTable({
+ "ajax": {
+ "url": siteUrl+"admin/survey/ajax.php?t=dostop&a=my_users_list",
+ "type": "post"
+ },
+ serverSide: true,
+ lengthMenu: [[50, 500, 1000, 5000, 10000], [50, 500, 1000, 5000, 10000]],
+ dom: 'Blfrtip',
+ deferRender: true,
+ select: true,
+ buttons: [
+ ],
+ language: {
+ "url": siteUrl+"admin/survey/script/datatables/Slovenian.json"
+ },
+ fnInitComplete : function() {
+ if ($(this).find('tbody tr td').hasClass('dataTables_empty')) {
+ $(this).parent().parent().hide();
+ }
+ }
+ });
}
if ($('#deleted_users_list').length > 0) {
diff --git a/lang/1.php b/lang/1.php
index b60aae69b..9ea2c142e 100644
--- a/lang/1.php
+++ b/lang/1.php
@@ -6223,6 +6223,10 @@ $lang = array (
'srv_users_add_new' => 'Nov uporabnik',
"srv_users_add_new_title" => 'Ustvarite novega uporabnika v sistemu
Uporabnik bo obveščen na e-mail, da je bil registriran v sistem.',
'srv_users_add_assigned' => 'Dodajte pregled nad uporabniki',
+ 'srv_users_add_assigned_current' => 'Trenutno dodeljenih dostopov:',
+ 'srv_users_add_assigned_max_reached' => 'Dosegli ste maksimalno število uporabnikov v pregledu.',
+ 'srv_users_add_assigned_max_1' => 'Dostop do vaše domene lahko dodelite največ',
+ 'srv_users_add_assigned_max_2' => 'uporabnikom.',
"srv_users_add_assigned_title" => 'Ustvarite novega uporabnika nad katerim boste imeli pregled
Uporabnik bo obveščen na e-mail, da je bil registriran v sistem.',
"srv_users_assigned_title" => 'Uporabniki nad katerimi imate pregled',
'srv_uredniske_nastavitve' => 'Uredniške nastavitve',
diff --git a/lang/2.php b/lang/2.php
index 0e961f0f9..becb5947c 100644
--- a/lang/2.php
+++ b/lang/2.php
@@ -6112,7 +6112,11 @@ $lang = array (
'srv_users_add_new' => 'Add new user',
"srv_users_add_new_title" => 'Create new user in the system
User will be notified about this registration with an e-mail.',
'srv_users_add_assigned' => 'Add assigned users',
- "srv_users_add_assigned_title" => 'Create new user you will have overview on
User will be notified about this registration with an e-mail.',
+ 'srv_users_add_assigned_current' => 'Number of assigned users:',
+ 'srv_users_add_assigned_max_reached' => 'You have reached maximum number of assigned users.',
+ 'srv_users_add_assigned_max_1' => 'You can assign access to your domain to maximum',
+ 'srv_users_add_assigned_max_2' => 'users.',
+ "srv_users_add_assigned_title" => 'Create new user you will have overview on
User will be notified about this registration with an e-mail.',
"srv_users_assigned_title" => 'Your assigned users',
'srv_uredniske_nastavitve' => 'Editor settings',
'srv_q_inicialke' => 'Respondents should enter their initials',