mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
HASync- add dashboard widgets, closes https://github.com/opnsense/core/issues/3482
This commit is contained in:
parent
9dcacab209
commit
b877610296
@ -270,6 +270,7 @@ if (isset($config['hasync']) && is_array($config['hasync'])) {
|
||||
$section_cnf['synchronizeusers'] = 'system.user,system.group';
|
||||
$section_cnf['synchronizeauthservers'] = 'system.authserver';
|
||||
$section_cnf['synchronizeschedules'] = 'schedules';
|
||||
$section_cnf['synchronizewidgets'] = 'widgets';
|
||||
|
||||
foreach (plugins_xmlrpc_sync() as $syncid => $syncconf) {
|
||||
$section_cnf['synchronize'.$syncid] = $syncconf['section'];
|
||||
|
||||
@ -45,6 +45,7 @@ $checkbox_names = array(
|
||||
'synchronizestaticroutes',
|
||||
'synchronizeusers',
|
||||
'synchronizevirtualip',
|
||||
'synchronizewidgets',
|
||||
);
|
||||
|
||||
$syncplugins = plugins_xmlrpc_sync();
|
||||
@ -241,6 +242,15 @@ include("head.inc");
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a id="help_for_synchronizewidgets" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Dashboard') ?></td>
|
||||
<td>
|
||||
<input type="checkbox" name="synchronizewidgets" value="on" <?=!empty($pconfig['synchronizewidgets']) ? "checked=\"checked\"" : "";?> />
|
||||
<div class="hidden" data-for="help_for_synchronizewidgets">
|
||||
<?=gettext('Synchronize dashboard widgets.') ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a id="help_for_synchronizeusers" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext('Users and Groups') ?></td>
|
||||
<td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user