diff --git a/admin/survey/classes/class.Notifications.php b/admin/survey/classes/class.Notifications.php
index 46404e3b6..9fe657420 100644
--- a/admin/survey/classes/class.Notifications.php
+++ b/admin/survey/classes/class.Notifications.php
@@ -22,23 +22,33 @@ class Notifications {
// Prikazemo poslana sporocila
if((isset($_GET['t']) && $_GET['t']=='sent') || $tab == 1){
- echo '
';
// Izpis vseh poslanih sporocil
if($admin_type == 0){
echo '
';
+
+ echo '
';
+ echo '
';
+ echo '
'.$lang['srv_notifications_sent'].'
';
+ echo '
';
+
echo '
';
$this->displaySentMessages();
echo '
';
echo '
';
// obrazec za posiljanje sporocil
+ echo '
';
+
+ echo '
';
+ echo '
';
+ echo '
'.$lang['srv_inv_message_draft_new'].'
';
+ echo '
';
+
$this->sendMessageForm();
+ echo '
';
+
}
else
echo $lang['srv_notifications_admin_alert'];
@@ -103,7 +113,6 @@ class Notifications {
$sentMessages[$row['id']] = $row;
}
-
echo '
';
if(count($sentMessages) > 0){
@@ -120,7 +129,7 @@ class Notifications {
echo '
';
echo '';
- $text = strip_tags((strlen($message['text']) > 60) ? substr($message['text'], 0, 60).'...' : $message['text']);
+ $text = strip_tags((strlen($message['text']) > 76) ? substr($message['text'], 0, 76).'...' : $message['text']);
echo '';
- echo '
'.$lang['srv_notifications_send_reciever'].': ';
-
- // Checkboxa za posiljenje vsem uporabnikoom (slo in ang)
- echo '
';
- echo '
';
+
+ //Prejemniki
+ echo '
';
// Naslov sporocila
- echo '
'.$lang['srv_notifications_send_title'].': ';
+ echo '
';
+ echo $lang['srv_notifications_send_title'].':';
+ echo '';
+ echo '
';
// Besedilo sporocila (editor)
- echo '
'.$lang['srv_notifications_send_text'].': ';
+ echo '
';
+ echo '
';
// Avtomatsko prikaži obvestilo po prijavi
- echo '
';
-
- echo '
';
- echo ''.$lang['srv_notifications_send'].'';
- echo '';
+ echo '
';
+ echo '';
+ echo '';
+ echo '
';
+
+ echo '
';
+ echo '';
+ echo '
';
if($note != ''){
echo '
';
@@ -309,15 +340,34 @@ class Notifications {
}
}
+ echo '
';
+
// Refresh vseh poslanih sporocil
+ echo '
';
+
+ echo '
';
+ echo '
';
+ echo '
'.$lang['srv_notifications_sent'].'
';
+ echo '
';
+
echo '
';
$this->displaySentMessages();
echo '
';
+ echo '
';
// Refresh obrazca za posiljanje sporocil
+
+ echo '
';
+
+ echo '
';
+ echo '
';
+ echo '
'.$lang['srv_inv_message_draft_new'].'
';
+ echo '
';
+
$this->sendMessageForm($note);
-
- echo '
';
+ echo '
';
+
+ echo '
';
}
public function ajax_resolveMessages(){
diff --git a/admin/survey/script/notifications.js b/admin/survey/script/notifications.js
index 5c4cfe170..ffd88efc9 100644
--- a/admin/survey/script/notifications.js
+++ b/admin/survey/script/notifications.js
@@ -73,23 +73,31 @@ function closeUnreadMessages(){
$("#unread_notifications").fadeOut();
}
-function recipient_all_disable_email(){
-
- if ($( "input[name='recipient_all_slo']" ).is(':checked'))
- var recipient_all_slo = 1;
- else
- var recipient_all_slo = 0;
-
- if ($( "input[name='recipient_all_ang']" ).is(':checked'))
- var recipient_all_ang = 1;
- else
- var recipient_all_ang = 0;
-
- if(recipient_all_slo == 0 && recipient_all_ang == 0)
- $("#recipient").attr('disabled', false);
- else
- $("#recipient").attr('disabled', true);
+function recipient_toggle(type){
+
+ if (type == 'slo') {
+ if ($( "input[name='recipient_all_slo']" ).is(':checked')) {
+ $( "input[name='recipient_custom']" ).attr("checked", false);
+ $("#recipient").addClass('disabled');
+ }
+ }
+
+ if (type == 'ang') {
+ if ($( "input[name='recipient_all_ang']" ).is(':checked')) {
+ $( "input[name='recipient_custom']" ).attr("checked", false);
+ $("#recipient").addClass('disabled');
+ }
+ }
+
+ if (type == 'custom') {
+ if ($( "input[name='recipient_custom']" ).is(':checked')) {
+ $( "input[name='recipient_all_slo']" ).attr("checked", false);
+ $( "input[name='recipient_all_ang']" ).attr("checked", false);
+ $("#recipient").removeClass('disabled');
+ }
+ }
}
+
// Prikaze popup z neprebranimi sporocili
diff --git a/lang/1.php b/lang/1.php
index 717078db9..3846c3f04 100644
--- a/lang/1.php
+++ b/lang/1.php
@@ -7198,13 +7198,15 @@ $lang = array (
'srv_notifications_unread' => "Neprebrana sporočila",
'srv_notifications_alert' => "Imate novo neprebrano sporočilo!",
'srv_notifications_admin_alert' => "Pošiljanje je omogočeno samo administratorjem!",
- 'srv_notifications_send_reciever' => "Prejemnik (e-pošta)",
+ 'srv_notifications_send_reciever2' => "Prejemnik (e-pošta)",
+ 'srv_notifications_send_reciever2' => "Prejemniki",
'srv_notifications_send_title' => "Naslov",
'srv_notifications_send_text' => "Besedilo",
'srv_notifications_send' => "Pošlji",
'srv_notifications_save_send' => "Shrani in pošlji",
- 'srv_notifications_send_all_slo' => "Pošlji vsem slovenskim uporabnikom",
- 'srv_notifications_send_all_ang' => "Pošlji vsem angleškim uporabnikom",
+ 'srv_notifications_send_all_slo' => "Vsi slovenski uporabniki",
+ 'srv_notifications_send_all_ang' => "Vsi angleški uporabniki",
+ 'srv_notifications_send_custom' => "E-poštni naslov po meri:",
'srv_notifications_force_show' => "Prikaži obvestilo avtomatsko po prijavi",
'slider_min_label_note' => "Labela za Min",
'slider_max_label_note' => "Labela za Max",
diff --git a/lang/2.php b/lang/2.php
index 7178a2838..eb3dba08d 100644
--- a/lang/2.php
+++ b/lang/2.php
@@ -7082,12 +7082,14 @@ $lang = array (
'srv_notifications_alert' => "You have new unread message!",
'srv_notifications_admin_alert' => "Only administrator can send a notification!",
'srv_notifications_send_reciever' => "Recipient (e-mail)",
+ 'srv_notifications_send_reciever2' => "Recipients",
'srv_notifications_send_title' => "Subject",
'srv_notifications_send_text' => "Message",
'srv_notifications_send' => "Send",
'srv_notifications_save_send' => "Save and send",
- 'srv_notifications_send_all_slo' => "Send to all slovenian users",
- 'srv_notifications_send_all_ang' => "Send to all english users",
+ 'srv_notifications_send_all_slo' => "All Slovenian users",
+ 'srv_notifications_send_all_ang' => "All English users",
+ 'srv_notifications_send_custom' => "Custom e-mail address:",
'srv_notifications_force_show' => "Show notification automatically after login",
'slider_min_label_note' => "Min's label",
'slider_max_label_note' => "Max's label",
diff --git a/public/css/admin_new.css b/public/css/admin_new.css
index 0ee7ef6ed..0dc454671 100644
--- a/public/css/admin_new.css
+++ b/public/css/admin_new.css
@@ -6695,13 +6695,10 @@ and open the template in the editor.
*/
/* Invitation table */
span.faicon.inv_sent_0::before {
- font-size: 14px;
content: "\f2b6";
- font-weight: 400;
}
span.faicon.inv_sent_1::before {
- font-size: 14px;
content: "\f0e0";
}
@@ -15112,7 +15109,7 @@ fieldset #obvescanje_sidebyside_holder #obvescanje_sidebyside_right div.message_
margin-bottom: 16px;
}
fieldset #obvescanje_sidebyside_holder label {
- cursor: default;
+ cursor: text;
}
fieldset #obvescanje_sidebyside_holder label.bottom4 {
margin-bottom: 4px;
@@ -22475,6 +22472,7 @@ div.page_obvestila div.title div.title_icon {
align-items: center;
justify-content: center;
margin-right: 8px;
+ box-sizing: border-box;
}
div.page_obvestila div.title h2 {
width: 100%;
@@ -22503,7 +22501,7 @@ div.page_obvestila #notifications .notifications_content {
div.page_obvestila #notifications .notifications_content .notifications_content_left {
display: flex;
flex-direction: column;
- height: 660px;
+ height: 694px;
box-sizing: border-box;
width: 50%;
}
@@ -22513,8 +22511,10 @@ div.page_obvestila #notifications .notifications_content .notifications_content_
}
div.page_obvestila #notifications .notifications_content .notifications_content_left .sent_list ul {
padding-left: 0;
+ margin-block-start: 0;
}
div.page_obvestila #notifications .notifications_content .notifications_content_left .sent_list ul li {
+ box-sizing: border-box;
list-style-type: none;
margin: 0;
padding: 16px;
@@ -22574,6 +22574,50 @@ div.page_obvestila #notifications .notifications_content .notifications_content_
cursor: pointer;
border: 1px #1E88E5 solid;
}
+div.page_obvestila #notifications .notifications_content .notifications_content_right {
+ display: flex;
+ flex-direction: column;
+ height: 694px;
+ box-sizing: border-box;
+ width: 50%;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form .setting_holder {
+ margin-bottom: 16px;
+ display: flex;
+ flex-direction: column;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form .setting_holder:last-of-type {
+ margin-bottom: 0;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form .setting_holder .setting_item {
+ margin-top: 8px;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form .setting_holder .setting_item label {
+ margin-right: 8px;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form .setting_holder .setting_item input.text {
+ width: 250px;
+ height: 28px;
+ padding: 3px 5px;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form input.text {
+ width: 100%;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form label {
+ margin-bottom: 4px;
+ cursor: text;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form textarea {
+ width: 100%;
+ padding: 3px 5px;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form div.auto_checkbox {
+ margin-top: 16px;
+}
+div.page_obvestila #notifications .notifications_content .notifications_content_right .send_form div.button_holder {
+ margin-top: 32px;
+ margin-bottom: 0;
+}
div.page_obvestila #notifications .notifications_content #message {
display: inline;
float: left;
@@ -22583,28 +22627,6 @@ div.page_obvestila #notifications .notifications_content #message {
background-color: #1E88E5;
border: 1px #E5E5E5 solid;
}
-div.page_obvestila #notifications .notifications_content .send_form {
- display: inline;
- float: left;
- margin-top: 30px;
- padding: 20px;
- width: 415px;
- background-color: #1E88E5;
- border: 1px #E5E5E5 solid;
- color: #333333 !important;
-}
-div.page_obvestila #notifications .notifications_content .send_form input[type=text] {
- width: 400px;
- padding: 3px 5px;
- border: 1px solid #E5E5E5 !important;
- color: #333333 !important;
-}
-div.page_obvestila #notifications .notifications_content .send_form textarea {
- width: 400px;
- padding: 3px 5px;
- border: 1px solid #E5E5E5 !important;
- color: #333333 !important;
-}
div.page_obvestila #new_notification_alert {
cursor: pointer;
position: absolute;
diff --git a/resources/sass/admin_new/basic/icons/invitation.scss b/resources/sass/admin_new/basic/icons/invitation.scss
index 8845bee16..0a50cef3a 100644
--- a/resources/sass/admin_new/basic/icons/invitation.scss
+++ b/resources/sass/admin_new/basic/icons/invitation.scss
@@ -11,12 +11,9 @@ and open the template in the editor.
/* Invitation table */
span.faicon.inv_sent_0::before {
- font-size: 14px;
content: "\f2b6";
- font-weight: 400;
}
span.faicon.inv_sent_1::before {
- font-size: 14px;
content: "\f0e0";
}
span.faicon.inv_responded_0::before {
diff --git a/resources/sass/admin_new/pages/sporocila/sporocila.scss b/resources/sass/admin_new/pages/sporocila/sporocila.scss
index 9a8c3b208..c44bcdf0c 100644
--- a/resources/sass/admin_new/pages/sporocila/sporocila.scss
+++ b/resources/sass/admin_new/pages/sporocila/sporocila.scss
@@ -20,6 +20,8 @@ div.page_obvestila {
justify-content: center;
margin-right: 8px;
+
+ box-sizing: border-box;
}
h2 {
@@ -56,7 +58,7 @@ div.page_obvestila {
.notifications_content_left {
display: flex;
flex-direction: column;
- height: 660px;
+ height: 694px;
box-sizing: border-box;
width: 50%;
@@ -67,7 +69,9 @@ div.page_obvestila {
ul {
padding-left: 0;
+ margin-block-start: 0;
li {
+ box-sizing: border-box;
list-style-type: none;
margin: 0;
padding: 16px;
@@ -105,7 +109,7 @@ div.page_obvestila {
}
}
- //Prejeta sporočila
+ //Prejeta sporočila - še stari styling
.recieved_list {
display: inline;
float: left;
@@ -139,9 +143,70 @@ div.page_obvestila {
}
+ .notifications_content_right {
+
+ display: flex;
+ flex-direction: column;
+ height: 694px;
+ box-sizing: border-box;
+ width: 50%;
+
+ .send_form {
+
+ .setting_holder {
+ margin-bottom: 16px;
+ display: flex;
+ flex-direction: column;
+
+ &:last-of-type {
+ margin-bottom: 0;
+ }
+
+ .setting_item {
+ margin-top: 8px;
+
+ label {
+ margin-right: 8px;
+ }
+
+ input.text {
+ width: 250px;
+ height: 28px;
+ padding: 3px 5px;
+ }
+ }
+ }
+
+ input.text {
+ width: 100%;
+ }
+
+ label {
+ margin-bottom: 4px;
+ cursor: text;
+ }
+
+ textarea {
+ width: 100%;
+ padding: 3px 5px;
+ }
+
+ div.auto_checkbox {
+ margin-top: 16px;
+ }
+
+ div.button_holder {
+ margin-top: 32px;
+ margin-bottom: 0;
+ }
+ }
+
+ }
+
+ //// Skopiran stari tari styling
#message {
@@ -153,28 +218,6 @@ div.page_obvestila {
background-color: $blue;
border: 1px $gray solid;
}
- .send_form {
- display: inline;
- float: left;
- margin-top: 30px;
- padding: 20px;
- width: 415px;
- background-color: $blue;
- border: 1px $gray solid;
- color: $black !important;
- input[type="text"] {
- width: 400px;
- padding: 3px 5px;
- border: 1px solid $gray !important;
- color: $black !important;
- }
- textarea {
- width: 400px;
- padding: 3px 5px;
- border: 1px solid $gray !important;
- color: $black !important;
- }
- }
}
}
#new_notification_alert {
diff --git a/resources/sass/admin_new/pages/survey_edit/survey_settings/obvescanje.scss b/resources/sass/admin_new/pages/survey_edit/survey_settings/obvescanje.scss
index 7fa4feb48..27049af21 100644
--- a/resources/sass/admin_new/pages/survey_edit/survey_settings/obvescanje.scss
+++ b/resources/sass/admin_new/pages/survey_edit/survey_settings/obvescanje.scss
@@ -31,7 +31,7 @@ fieldset{
}
label{
- cursor: default;
+ cursor: text;
//Label nad editorjem besedila
&.bottom4 {