-
-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#349 add support for inserting/updating/deleting scripts
- Loading branch information
Showing
10 changed files
with
126 additions
and
17 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
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
37 changes: 36 additions & 1 deletion
37
src/main/webapp/resources/js/admin/feature/scripting/add-update/scripting-add-update.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 +1,36 @@ | ||
add/update | ||
<div class="modal-header"> | ||
<h3>Add/Update script</h3> | ||
</div> | ||
<form role="form" name="script" ng-submit="$ctrl.save($ctrl.script)" data-error-sensitive novalidate data-oncancel="$ctrl.cancel()"> | ||
<div class="modal-body"> | ||
<div class="form-group" bs-form-error="$ctrl.script.path"> | ||
<label for="script-path">Path</label> | ||
<input class="form-control" type="text" data-grab-focus id="script-path" name="path" data-ng-model="$ctrl.script.path" required> | ||
<field-error data-form-obj="script" data-field-obj="$ctrl.script.path"></field-error> | ||
</div> | ||
|
||
<div class="form-group" bs-form-error="$ctrl.script.name"> | ||
<label for="script-name">Name</label> | ||
<input class="form-control" type="text" data-grab-focus id="script-name" name="name" data-ng-model="$ctrl.script.name" required> | ||
<field-error data-form-obj="script" data-field-obj="$ctrl.script.name"></field-error> | ||
</div> | ||
|
||
<div class="form-group" bs-form-error="$ctrl.script.enabled"> | ||
<label for="script-enabled">Enabled</label> | ||
<input type="checkbox" data-grab-focus id="script-enabled" name="enabled" data-ng-model="$ctrl.script.enabled"> | ||
<field-error data-form-obj="script" data-field-obj="$ctrl.script.enabled"></field-error> | ||
</div> | ||
|
||
<div class="form-group" bs-form-error="$ctrl.script.script"> | ||
<label for="script-script">Script</label> | ||
<textarea class="form-control" id="script-script" name="script" data-ng-model="$ctrl.script.script" required></textarea> | ||
<field-error data-form-obj="script" data-field-obj="$ctrl.script.script"></field-error> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<div> | ||
<button type="submit" class="btn btn-success" data-ng-disabled="scriptForm.$waiting">Save</button> | ||
<button type="button" class="btn btn-default" data-ng-disabled="scriptForm.$waiting" ng-click="$ctrl.dismiss()">Cancel</button> | ||
</div> | ||
</div> | ||
</form> |
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