- unless @data.empty?
h2.uk-text-success Modify Splash command definition : #{@data[:process]}
- else
h2.uk-text-success Add new Splash command definition
script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.2/jquery.validate.min.js"
form.uk-form.uk-form-horizontal#query action="/save_command" method="POST"
div.uk-text-bold Definition
label.uk-form-label for="name" Name
div
label.uk-form-label for="command" Command
div
label.uk-form-label for="desc" Description
div
label.uk-form-label for="desc" Become User
div
label.uk-form-label for="retention" Retention (Like "2 hours, 2 days")
div
label.uk-form-label for="schedule" Scheduling (Like "'every 10m', 'in 1h', 'at 12:00'")
div
label.uk-form-label for="delegate_to" Delegation (Like "task_name@hostname")
div
div
div.uk-text-bold Callbacks
label.uk-form-label for="on_success" On success
div
label.uk-form-label for="on_success" On failure
div
- unless @data.empty?
input type="hidden" name="update" value="true"
input type="hidden" name="old_command" value="#{@data[:old_command].to_s}"
div.uk-align-right
input.uk-button.uk-button-small-primary type="submit" value="Submit"
javascript:
$("#query").validate();