-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21ec987
commit c318131
Showing
12 changed files
with
152 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 39 additions & 17 deletions
56
public/directives/wz-xml-file-editor/wz-xml-file-editor.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,44 @@ | ||
<div class='wzXmlEditor'> | ||
<div class="wzXmlEditor"> | ||
<div id="wzXmlEditorHeader"> | ||
<div layout="row" ng-if="configError" class="extraHeader"> | ||
<md-list> | ||
<md-list-item class="error-enum-configuration" ng-repeat="error in configError | unique: error"> | ||
<span class="wz-agent-status-indicator small red-text padding-left-0">{{error}}</span> | ||
</md-list-item> | ||
</md-list> | ||
<md-list> | ||
<md-list-item | ||
class="error-enum-configuration" | ||
ng-repeat="error in configError | unique: error" | ||
> | ||
<span | ||
class="wz-agent-status-indicator small red-text padding-left-0" | ||
>{{ error }}</span | ||
> | ||
</md-list-item> | ||
</md-list> | ||
</div> | ||
<div class='wzXmlEditorHeader'> | ||
<span>Edit <b>{{fileName}}</b> of <b>{{targetNameShown}}</b> <span tooltip='{{xmlError}}' | ||
class="wz-agent-status-indicator small red-text" ng-if="xmlError">{{xmlError}}</span></span> | ||
<div class="wzXmlEditorHeader"> | ||
<span | ||
>Edit <b>{{ fileName }}</b> of <b>{{ targetNameShown }}</b> | ||
<span | ||
tooltip="{{ xmlError }}" | ||
class="wz-agent-status-indicator small red-text" | ||
ng-if="xmlError" | ||
>{{ xmlError }}</span | ||
></span | ||
> | ||
</div> | ||
<div layout="row" ng-if="restartBtn" class="extraHeaderInfo"> | ||
<span><i class="fa fa-info-circle" aria-hidden="true"></i> | ||
Changes will not take effect until a restart is performed.</span> | ||
<span flex></span> | ||
<span class="cursor-pointer" ng-if="fileName !== 'ossec.conf'" ng-click="doRestart()">Restart now</span> | ||
<span | ||
><i class="fa fa-info-circle" aria-hidden="true"></i> Changes will | ||
not take effect until a restart is performed.</span | ||
> | ||
<span flex></span> | ||
<span | ||
class="cursor-pointer" | ||
ng-if="fileName !== 'ossec.conf'" | ||
ng-click="doRestart()" | ||
>Restart now</span | ||
> | ||
</div> | ||
<div class='wzXmlEditorBody' ng-show='!loadingFile'> | ||
<textarea id='xml_box'></textarea> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="wzXmlEditorBody" ng-show="!loadingFile"> | ||
<textarea id="xml_box"></textarea> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.