-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from jekram/sania
- Loading branch information
Showing
15 changed files
with
391 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
$(document).ready(function(){ | ||
$('#opener').on('click', function() { | ||
$('#opener').on('click', function() { | ||
var panel = $('#slide-panel'); | ||
if (panel.hasClass("visible")) { | ||
panel.removeClass('visible').animate({'margin-left':'-300px'}); | ||
$('#mycontent').css({'margin-right':'0px'}); | ||
} else {panel.addClass('visible').animate({'margin-left':'0px'}); | ||
$('#mycontent').css({'margin-right':'-300px'}); | ||
} | ||
return false; | ||
$('#divInformation').css({'margin-right':'0px', 'float': 'none'}); | ||
} | ||
return false; | ||
}); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var onEnable = function (id, isActive) { | ||
console.log() | ||
var data = { 'id': id, 'isActive': isActive } | ||
$.ajax({ | ||
type: 'POST', | ||
data: data, | ||
url: 'http://localhost:3000/workflows/enable', | ||
success: function (data) { | ||
console.log(data) | ||
var location = window.location | ||
location.reload() | ||
} | ||
}) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
extends sidebar | ||
block div#content | ||
div#divInformation | ||
h1 | ||
#{title} | ||
form(action="/workflows/createWorkflow",method="post") | ||
table(class = "table table-striped table-bordered table-hover") | ||
tbody | ||
tr | ||
td | ||
label | ||
| Rule | ||
td | ||
select(name='rule' class='form-control' required) | ||
option(value='message_is') Message Is | ||
option(value='message_contains') Message Contains | ||
option(value='message_begins') Message Begins With | ||
tr | ||
td | ||
label | ||
| Keywords(separated with commas) | ||
td | ||
input(type="text" name ="keywords" class="form-control input-medium input-inline" placeholder="hi,hello,ok " required) | ||
tr | ||
td | ||
label | ||
| Reply | ||
td | ||
textarea(name ="reply" class="form-control input-medium input-inline" required) | ||
tr | ||
td | ||
label | ||
| Is Active | ||
td | ||
select(name='isActive' class='form-control' required) | ||
option(value='Yes') Yes | ||
option(value='No') No | ||
tr | ||
td(colspan="2") | ||
button(class = "btn btn-info" type="submit") | ||
| Submit |
Oops, something went wrong.