diff --git a/app/assets/javascripts/app/controllers/scheduler.js.coffee b/app/assets/javascripts/app/controllers/scheduler.js.coffee deleted file mode 100644 index 8ec53f30d..000000000 --- a/app/assets/javascripts/app/controllers/scheduler.js.coffee +++ /dev/null @@ -1,27 +0,0 @@ -class Index extends App.ControllerContent - constructor: -> - super - - # check authentication - return if !@authenticate() - - new App.ControllerGenericIndex( - el: @el - id: @id - genericObject: 'Job' - pageData: - title: 'Schedulers' - home: 'schedulers' - object: 'Scheduler' - objects: 'Schedulers' - navupdate: '#schedulers' - notes: [ - 'Scheduler are ...' - ] - buttons: [ - { name: 'New Scheduler', 'data-type': 'new', class: 'btn--success' } - ] - container: @el.closest('.content') - ) - -App.Config.set( 'Scheduler', { prio: 3000, name: 'Schedulers', parent: '#manage', target: '#manage/schedulers', controller: Index, role: ['Admin'] }, 'NavBarAdmin' ) \ No newline at end of file diff --git a/app/assets/javascripts/app/controllers/trigger.js.coffee b/app/assets/javascripts/app/controllers/trigger.js.coffee index 659926e15..eddea8b6b 100644 --- a/app/assets/javascripts/app/controllers/trigger.js.coffee +++ b/app/assets/javascripts/app/controllers/trigger.js.coffee @@ -1,21 +1,37 @@ -class Index extends App.ControllerContent +class Index extends App.ControllerTabs + header: 'Trigger' constructor: -> super - # check authentication - return if !@authenticate() + @title 'Trigger', true - # set title - @title 'Triggers' - @navupdate '#trigger' + @tabs = [ + { + name: 'Time Based', + target: 'c-time-based', + controller: App.SettingsArea, + params: { area: 'Email::Base' }, + }, + { + name: 'Event Based', + target: 'c-event-based', + controller: App.SettingsArea, + params: { area: 'Email::Base' }, + }, + { + name: 'Notifications', + target: 'c-notification', + controller: App.SettingsArea, + params: { area: 'Email::Base' }, + }, + { + name: 'Web Hooks', + target: 'c-web-hook', + controller: App.SettingsArea, + params: { area: 'Email::Base' }, + }, + ] - # render page @render() - render: -> - - @html App.view('trigger')( - head: 'some header' - ) - -App.Config.set( 'Trigger', { prio: 3100, name: 'Triggers', parent: '#manage', target: '#manage/triggers', controller: Index, role: ['Admin'] }, 'NavBarAdmin' ) \ No newline at end of file +App.Config.set( 'Trigger', { prio: 3000, name: 'Trigger', parent: '#manage', target: '#manage/triggers', controller: Index, role: ['Admin'] }, 'NavBarAdmin' ) \ No newline at end of file diff --git a/app/assets/javascripts/app/views/trigger.jst.eco b/app/assets/javascripts/app/views/trigger.jst.eco deleted file mode 100644 index 779b97151..000000000 --- a/app/assets/javascripts/app/views/trigger.jst.eco +++ /dev/null @@ -1,98 +0,0 @@ - - -
-
- -
-
- -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - -
HostUserTypeActiveDelete
lalal.example.comwpt234rwrIMAPtruex
l31alal.example.comwpt23dd4rwrPOP3truex
- -
-
- - - - - - - - - - - - - - - - - - - - - - -
HostUserTypeActiveDelete
lalal.example.comwpt234rwrSMTPtruex
l31alal.example.comwpt23dd4rwrSendmailtruex
-
-
- - - - - - - - - - - - - - - - -
NameActiveDelete
lalal.example.comtruex
wpt23dd4rwrtruex
-
-
-
- -
-
\ No newline at end of file