luci-mod-system: system.js: rework local time widget markup
[oweals/luci.git] / modules / luci-mod-system / htdocs / luci-static / resources / view / system / system.js
index c2f31e7b4cdd2399a22bf53d52936e2d4653c4b8..8fe6b57545328ccbc09fd5236e179a26cd1a38b1 100644 (file)
@@ -48,28 +48,28 @@ callTimezone = rpc.declare({
 CBILocalTime = form.DummyValue.extend({
        renderWidget: function(section_id, option_id, cfgvalue) {
                return E([], [
-                       E('span', {}, [
-                               E('input', {
-                                       'id': 'localtime',
-                                       'type': 'text',
-                                       'readonly': true,
-                                       'value': new Date(cfgvalue * 1000).toLocaleString()
-                               })
-                       ]),
-                       ' ',
-                       E('button', {
-                               'class': 'cbi-button cbi-button-apply',
-                               'click': ui.createHandlerFn(this, function() {
-                                       return callSetLocaltime(Math.floor(Date.now() / 1000));
-                               })
-                       }, _('Sync with browser')),
-                       ' ',
-                       this.ntpd_support ? E('button', {
-                               'class': 'cbi-button cbi-button-apply',
-                               'click': ui.createHandlerFn(this, function() {
-                                       return callInitAction('sysntpd', 'restart');
-                               })
-                       }, _('Sync with NTP-Server')) : ''
+                       E('input', {
+                               'id': 'localtime',
+                               'type': 'text',
+                               'readonly': true,
+                               'value': new Date(cfgvalue * 1000).toLocaleString()
+                       }),
+                       E('br'),
+                       E('span', { 'class': 'control-group' }, [
+                               E('button', {
+                                       'class': 'cbi-button cbi-button-apply',
+                                       'click': ui.createHandlerFn(this, function() {
+                                               return callSetLocaltime(Math.floor(Date.now() / 1000));
+                                       })
+                               }, _('Sync with browser')),
+                               ' ',
+                               this.ntpd_support ? E('button', {
+                                       'class': 'cbi-button cbi-button-apply',
+                                       'click': ui.createHandlerFn(this, function() {
+                                               return callInitAction('sysntpd', 'restart');
+                                       })
+                               }, _('Sync with NTP-Server')) : ''
+                       ])
                ]);
        },
 });