This commit is contained in:
Martin Edenhofer 2015-09-15 01:26:02 +02:00
parent cf20e4f4a5
commit 0fca16a62d
3 changed files with 30 additions and 139 deletions

View file

@ -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' )

View file

@ -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' )
App.Config.set( 'Trigger', { prio: 3000, name: 'Trigger', parent: '#manage', target: '#manage/triggers', controller: Index, role: ['Admin'] }, 'NavBarAdmin' )

View file

@ -1,98 +0,0 @@
<div class="page-header">
<div class="page-header-title">
<h1>Trigger <small>Management</small></h1>
</div>
</div>
<div class="row">
<div class="span3">
<ul class="nav nav-tabs nav-stacked">
<li><a href="#">Notifications</a></li>
<li><a href="#">Actions</a></li>
</ul>
</div>
<div class="table-overview">
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#channel-inbound" data-toggle="tab">Recipients</a></li>
<li><a href="#channel-outbound" data-toggle="tab">Properties</a></li>
<li><a href="#channel-filter" data-toggle="tab">Message</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="channel-inbound">
<table class="table table-striped">
<tr>
<th>Host</th>
<th>User</th>
<th>Type</th>
<th>Active</th>
<th>Delete</th>
</tr>
<tr>
<td>lalal.example.com</td>
<td>wpt234rwr</td>
<td>IMAP</td>
<td>true</td>
<td>x</td>
</tr>
<tr>
<td>l31alal.example.com</td>
<td>wpt23dd4rwr</td>
<td>POP3</td>
<td>true</td>
<td>x</td>
</tr>
</table>
</div>
<div class="tab-pane" id="channel-outbound">
<table class="table table-striped">
<tr>
<th>Host</th>
<th>User</th>
<th>Type</th>
<th>Active</th>
<th>Delete</th>
</tr>
<tr>
<td>lalal.example.com</td>
<td>wpt234rwr</td>
<td>SMTP</td>
<td>true</td>
<td>x</td>
</tr>
<tr>
<td>l31alal.example.com</td>
<td>wpt23dd4rwr</td>
<td>Sendmail</td>
<td>true</td>
<td>x</td>
</tr>
</table>
</div>
<div class="tab-pane" id="channel-filter">
<table class="table table-striped">
<tr>
<th>Name</th>
<th>Active</th>
<th>Delete</th>
</tr>
<tr>
<td>lalal.example.com</td>
<td>true</td>
<td>x</td>
</tr>
<tr>
<td>wpt23dd4rwr</td>
<td>true</td>
<td>x</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>