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