diff --git a/data/web/css/site/edit.css b/data/web/css/site/edit.css index ac3a430c..8a594ee1 100644 --- a/data/web/css/site/edit.css +++ b/data/web/css/site/edit.css @@ -40,4 +40,8 @@ table.footable>tbody>tr.footable-empty>td { -moz-transform:rotateX(180deg); -webkit-transform:rotateX(180deg); transform:rotateX(180deg); +} +.input-group-addon-xmpp { + background-color: #fff; + border: 0px solid #fff; } \ No newline at end of file diff --git a/data/web/edit.php b/data/web/edit.php index 6087a7c6..c6bf50c7 100644 --- a/data/web/edit.php +++ b/data/web/edit.php @@ -362,12 +362,13 @@ if (isset($_SESSION['mailcow_cc_role'])) {
-
+
- + .
+

: username@.


diff --git a/data/web/js/site/edit.js b/data/web/js/site/edit.js index 1626d4b0..5a27da10 100644 --- a/data/web/js/site/edit.js +++ b/data/web/js/site/edit.js @@ -28,34 +28,42 @@ $(document).ready(function() { $('#mailbox-passwd-hidden-info').addClass('hidden'); $('#mailbox-passwd-form-groups').removeClass('hidden'); }); -}); -if ($("#editSelectMultipleBookings").val() == "custom") { - $("#multiple_bookings_custom_div").show(); - $('input[name=multiple_bookings]').val($("#multiple_bookings_custom").val()); -} -$("#editSelectMultipleBookings").change(function() { - $('input[name=multiple_bookings]').val($("#editSelectMultipleBookings").val()); - if ($('input[name=multiple_bookings]').val() == "custom") { - $("#multiple_bookings_custom_div").show(); - } - else { - $("#multiple_bookings_custom_div").hide(); - } -}); -if ($("#editSelectSenderACL option[value='\*']:selected").length > 0){ - $("#sender_acl_disabled").show(); -} -$('#editSelectSenderACL').change(function() { + // Preview XMPP JID + $('.xmpp-prefix-preview').text($("#xmpp-prefix").val()); + $("#xmpp-prefix").bind("change keypress keyup blur", function() { + $('.xmpp-prefix-preview').text($(this).val()); + }); + // Sender ACL if ($("#editSelectSenderACL option[value='\*']:selected").length > 0){ $("#sender_acl_disabled").show(); } - else { - $("#sender_acl_disabled").hide(); + $('#editSelectSenderACL').change(function() { + if ($("#editSelectSenderACL option[value='\*']:selected").length > 0){ + $("#sender_acl_disabled").show(); + } + else { + $("#sender_acl_disabled").hide(); + } + }); + // Resources + if ($("#editSelectMultipleBookings").val() == "custom") { + $("#multiple_bookings_custom_div").show(); + $('input[name=multiple_bookings]').val($("#multiple_bookings_custom").val()); } + $("#editSelectMultipleBookings").change(function() { + $('input[name=multiple_bookings]').val($("#editSelectMultipleBookings").val()); + if ($('input[name=multiple_bookings]').val() == "custom") { + $("#multiple_bookings_custom_div").show(); + } + else { + $("#multiple_bookings_custom_div").hide(); + } + }); + $("#multiple_bookings_custom").bind("change keypress keyup blur", function() { + $('input[name=multiple_bookings]').val($("#multiple_bookings_custom").val()); + }); }); -$("#multiple_bookings_custom").bind("change keypress keyup blur", function() { - $('input[name=multiple_bookings]').val($("#multiple_bookings_custom").val()); -}); + jQuery(function($){ // http://stackoverflow.com/questions/46155/validate-email-address-in-javascript function validateEmail(email) { diff --git a/data/web/lang/lang.de.json b/data/web/lang/lang.de.json index 2f99e9b0..8df6ddd7 100644 --- a/data/web/lang/lang.de.json +++ b/data/web/lang/lang.de.json @@ -531,6 +531,7 @@ "xmpp_access_info": "XMPP muss für diese Domain aktiviert sein.", "xmpp_admin": "XMPP Administrator", "xmpp_admin_info": "Vorsicht: Ernennt den Benutzer zum Administrator der jeweiligen XMPP Domain.", + "xmpp_example_jid": "Beispiel JID (Passwort entspricht Mailbox-Passwort)", "generate": "generieren", "grant_types": "Grant types", "hostname": "Servername", diff --git a/data/web/lang/lang.en.json b/data/web/lang/lang.en.json index 92559969..195b0867 100644 --- a/data/web/lang/lang.en.json +++ b/data/web/lang/lang.en.json @@ -532,6 +532,7 @@ "xmpp_access_info": "XMPP must be enabled for this domain.", "xmpp_admin": "XMPP administrator", "xmpp_admin_info": "Danger: Promotes a user to an XMPP administrator of this domain.", + "xmpp_example_jid": "Example JID (login with mailbox password)", "generate": "generate", "grant_types": "Grant types", "hostname": "Hostname",