h2.uk-text-success   Commands configured in Splash - unless @log_saved.nil? javascript: UIkit.notify("Command definition #{@command_saved} saved", {status:'success'}); - unless @log_failed.nil? javascript: UIkit.notify("Command definition #{@command_saved} not saved", {status:'danger'}); javascript: $(document).on( 'click','input.delete-command',function(){ var id = this.id; var url = "/api/config/deletecommand/" + id + ".json"; UIkit.modal.confirm('Are you sure?', function(){ console.debug(url) $.ajax({ url: url, type: 'DELETE', success: function( data ) { console.debug(data) if (data['status'] == 'success') { $('div#commandrecords h3#' + id).remove(); $('div#commandrecords div#' + id).remove(); UIkit.notify("Deleting log for " + id + " done", {status:'success'}); } else { UIkit.notify("Deleting log for " + id + " failed !", {status:'danger'}); } }, error: function(e) { UIkit.notify("Deleting log for " + id + " failed !", {status:'danger'}); } }); }); }); div.uk-width-medium-1-1 div.uk-panel.uk-panel-box span.uk-text-large.uk-text-bold List of commands availables br div#commandrecords.uk-accordion(data-uk-accordion) - @data.reverse.each do |command| h3.uk-accordion-title id="#{command[:name].to_s}"  Name : #{command[:name]} div.uk-accordion-content id="#{command[:name].to_s} " table.uk-table.uk-table-hover.uk-table-striped thead tr th Definition th Actions tbody tr td dl.uk-description-list-horizontal dt  Description dd #{command[:desc]} - if command[:command] dt  Command Line - if command[:delegate_to] dd.uk-text-danger #{command[:command]} (ignored because delegate_to is set) - else dd #{command[:command]} - if command[:schedule] dt  Schedule dd - if command[:on_success] dt  Execute on success dd #{command[:on_success]} - if command[:on_failure] dt  Execute on failure dd #{command[:on_failure]} - if command[:user] dt  become user dd #{command[:user]} - if command[:delegate_to] dt  Remote delegation dd - if command[:retention].class == Hash dt  History retention dd #{command[:retention].flatten.reverse.join(' ')} td input.delete-command.uk-button.uk-button-mini.uk-button-danger id="#{command[:name].to_s}" value="Delete" br input.modify-process.uk-button.uk-button-mini.uk-button-primary id="#{command[:name].to_s}" value="Modify" onclick="location.href='/add_modify_command/#{command[:name].to_s}';" br input.history-command.uk-button.uk-button-mini.uk-button-primary id="#{command[:name].to_s}" value="History" onclick="location.href='/get_command_history/#{command[:name].to_s}';" div.uk-align-right form.uk-form.uk-form-horizontal#query action="/add_modify_command" method="GET" div   input.add-process.uk-button type="submit" value="Add new process"