wazuh-kibana-app/public/templates/ruleset-update.html
2016-08-31 13:40:04 +00:00

29 lines
1.8 KiB
HTML

<md-content layout="row" ng-if="!load && submenuNavItem == 'update'" layout-align="space-around start" layout-sm="column" layout-xs="column" ng-controller="updateRulesetController">
<md-content layout="column" layout-align="space-around center">
<h2>Update</h2>
<md-input-container layout="column" layout-align="space-around center">
<p>1. Do you want to force it?</p>
<md-switch ng-model="$parent.updateForce" aria-label="Force update?">
<span ng-show="$parent.updateForce">Overwrite all the rules (OSSEC manager is going to be restarted)</span>
<span ng-show="!$parent.updateForce">Update the outdated rules (Manager will be restarted only if enabled rules are updated)</span>
</md-switch>
</md-input-container>
<md-button type="submit" ng-click="updateRuleset($event);" class="md-primary md-raised">Update ruleset</md-button>
</md-content>
<md-divider></md-divider>
<md-content layout="column" layout-align="space-around center">
<h2>Backups</h2>
<md-select ng-model="$parent.selectedBackup" md-on-open="load_backups()" style="min-width: 150px;">
<md-option value="{{backup}}" ng-repeat="backup in backups">{{backup}}</md-option>
<md-option-empty ng-if="backups.length == 0">No backups where found</md-option-empty>
</md-select>
<md-button type="submit" class="md-primary md-raised" ng-click="restoreBackup($event);">Restore backup</md-button>
<p style="font-weight: lighter;">* When ruleset is updated, a new backup (the first in the list) will be created.</p>
</md-content>
</md-content>
</md-content>