Added Syslog section

This commit is contained in:
JuanjiJG 2018-09-26 13:40:37 +02:00
parent 7ccadd2ad6
commit 328ad9380a
2 changed files with 29 additions and 32 deletions

View File

@ -1,16 +1,16 @@
<!-- This section contains the main content and the right sidenav -->
<div flex="auto" layout="row" ng-if="!load && configurationSubTab === 'email-alerts'">
<!-- No configuration section -->
<wz-no-config
flex
error="currentConfig['mail-alerts']"
ng-if="currentConfig['mail-alerts'] && isString(currentConfig['mail-alerts'])"></wz-no-config>
<wz-no-config
flex
error="'not-present'"
ng-if="currentConfig['mail-alerts'] && !isString(currentConfig['mail-alerts']) && (!currentConfig['mail-alerts'].email_alerts || !currentConfig['mail-alerts'].email_alerts.length)"></wz-no-config>
<!-- End no configuration section -->
<!-- No configuration section -->
<wz-no-config
flex
error="currentConfig['mail-alerts']"
ng-if="currentConfig['mail-alerts'] && isString(currentConfig['mail-alerts'])"></wz-no-config>
<wz-no-config
flex
error="'not-present'"
ng-if="currentConfig['mail-alerts'] && !isString(currentConfig['mail-alerts']) && (!currentConfig['mail-alerts'].email_alerts || !currentConfig['mail-alerts'].email_alerts.length)"></wz-no-config>
<!-- End no configuration section -->
<!-- This section is the main content -->
<div flex layout="column" ng-if="currentConfig['mail-alerts'] && !isString(currentConfig['mail-alerts']) && currentConfig['mail-alerts'].email_alerts && currentConfig['mail-alerts'].email_alerts.length">

View File

@ -1,12 +1,19 @@
<!-- This section contains the main content and the right sidenav -->
<div flex="auto" layout="row" ng-if="!load && configurationSubTab === 'syslog'">
<!-- This section appears when there's no configuration -->
<wz-no-config flex ng-if="false"></wz-no-config>
<!-- No configuration section -->
<wz-no-config
flex
error="currentConfig['csyslog-csyslog']"
ng-if="currentConfig['csyslog-csyslog'] && isString(currentConfig['csyslog-csyslog'])"></wz-no-config>
<wz-no-config
flex
error="'not-present'"
ng-if="currentConfig['csyslog-csyslog'] && !isString(currentConfig['csyslog-csyslog']) && (!currentConfig['csyslog-csyslog'].syslog_output || !currentConfig['csyslog-csyslog'].syslog_output.length)"></wz-no-config>
<!-- End no configuration section -->
<!-- This section is the main content -->
<div flex layout="column">
<div flex layout="column" ng-if="currentConfig['csyslog-csyslog'] && !isString(currentConfig['csyslog-csyslog']) && currentConfig['csyslog-csyslog'].syslog_output && currentConfig['csyslog-csyslog'].syslog_output.length">
<!-- The main card will all the settings -->
<md-card class="wz-md-card" ng-if="!JSONContent && !XMLContent">
@ -40,25 +47,15 @@
<th class="wz-text-left col-lg-2">Location</th>
</thead>
<tbody class="wz-word-wrap">
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<td>test</td>
<tr ng-repeat="item in currentConfig['csyslog-csyslog'].syslog_output">
<td>{{ item.server || 'n/a' }}</td>
<td>{{ item.port || '514' }}</td>
<td>{{ item.level }}</td>
<td>{{ item.format || 'default' }}</td>
<td>{{ item.use_fqdn || 'no' }}</td>
<td>{{ item.rule_id || 'n/a' }}</td>
<td>{{ item.group || 'n/a' }}</td>
<td>{{ item.location || 'n/a' }}</td>
</tr>
</tbody>
</table>