make old dashboard accommodate new definitions file
parent
baa277f359
commit
da832659a9
|
@ -1,5 +1,5 @@
|
||||||
<!--API Window-->
|
<!--API Window-->
|
||||||
<div class="modal fade dark" id="apis" role="dialog" aria-labelledby="apisLabel" aria-hidden="true">
|
<div class="modal fade medium dark" id="apis" role="dialog" aria-labelledby="apisLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
|
@ -9,6 +9,7 @@
|
||||||
<h4 class="modal-title" id="apisLabel"><i class="fa fa-code"></i> <%-lang['API Keys']%> <small><%-lang['Group Key']%> : <%- $user.ke %></small></h4>
|
<h4 class="modal-title" id="apisLabel"><i class="fa fa-code"></i> <%-lang['API Keys']%> <small><%-lang['Group Key']%> : <%- $user.ke %></small></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
<%
|
<%
|
||||||
var drawBlock
|
var drawBlock
|
||||||
var buildOptions
|
var buildOptions
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
drawBlock(accountSettings)
|
drawBlock(accountSettings)
|
||||||
}) %>
|
}) %>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="modal-footer text-left">
|
<div class="modal-footer text-left">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal"><%-lang['Close']%></button>
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%-lang['Close']%></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="modal dark fade" id="monitorStates" role="dialog" aria-labelledby="monitorStatesLabel" aria-hidden="true">
|
<div class="modal dark medium fade" id="monitorStates" role="dialog" aria-labelledby="monitorStatesLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<form class="modal-content">
|
<form class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
|
@ -8,33 +8,18 @@
|
||||||
<h4 class="modal-title" id="monitorStatesLabel"><i class="fa fa-align-right"></i> <%-lang['Monitor States']%></h4>
|
<h4 class="modal-title" id="monitorStatesLabel"><i class="fa fa-align-right"></i> <%-lang['Monitor States']%></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group">
|
<div class="row">
|
||||||
<label>
|
<%
|
||||||
<div><select class="form-control" id="monitorStatesSelector">
|
var drawBlock
|
||||||
<option value=""><%-lang['Add New']%></option>
|
var buildOptions
|
||||||
<optgroup label="<%-lang['Saved Presets']%>"></optgroup>
|
%>
|
||||||
</select></div>
|
<%
|
||||||
</label>
|
include fieldBuilders.ejs
|
||||||
</div>
|
%>
|
||||||
<div class="form-group-group green">
|
<% Object.keys(define['Monitor States'].blocks).forEach(function(blockKey){
|
||||||
<h4><%- lang['Preset'] %>
|
var accountSettings = define['Monitor States'].blocks[blockKey]
|
||||||
<div class="pull-right">
|
drawBlock(accountSettings)
|
||||||
<a class="btn btn-danger btn-xs delete" style="display:none"> <i class="fa fa-trash-o"></i> </a>
|
}) %>
|
||||||
</div>
|
|
||||||
</h4>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span><%-lang['Name']%></span></div>
|
|
||||||
<div><input class="form-control" name="name"></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group-group blue">
|
|
||||||
<h4><%- lang['Monitors'] %>
|
|
||||||
<div class="pull-right">
|
|
||||||
<a class="btn btn-success btn-xs add-monitor"> <i class="fa fa-plus"></i> </a>
|
|
||||||
</div>
|
|
||||||
</h4>
|
|
||||||
<div id="monitorStatesMonitors"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="modal dark fade" id="schedules" role="dialog" aria-labelledby="schedulesLabel" aria-hidden="true">
|
<div class="modal medium dark fade" id="schedules" role="dialog" aria-labelledby="schedulesLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<form class="modal-content">
|
<form class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
|
@ -8,74 +8,18 @@
|
||||||
<h4 class="modal-title" id="schedulesLabel"><i class="fa fa-clock-o"></i> <%-lang['Schedules']%></h4>
|
<h4 class="modal-title" id="schedulesLabel"><i class="fa fa-clock-o"></i> <%-lang['Schedules']%></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group">
|
<div class="row">
|
||||||
<label>
|
<%
|
||||||
<div><select class="form-control" id="schedulesSelector">
|
var drawBlock
|
||||||
<option value=""><%-lang['Add New']%></option>
|
var buildOptions
|
||||||
<optgroup label="<%-lang['Saved Schedules']%>"></optgroup>
|
|
||||||
</select></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group-group green">
|
|
||||||
<h4><%- lang['Schedule'] %>
|
|
||||||
<div class="pull-right">
|
|
||||||
<a class="btn btn-danger btn-xs delete" style="display:none"> <i class="fa fa-trash-o"></i> </a>
|
|
||||||
</div>
|
|
||||||
</h4>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span><%-lang['Name']%></span></div>
|
|
||||||
<div><input class="form-control" name="name"></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span><%-lang['Enabled']%></span></div>
|
|
||||||
<div><select class="form-control" name="enabled">
|
|
||||||
<option value="1" selected><%-lang.Yes%></option>
|
|
||||||
<option value="0"><%-lang.No%></option>
|
|
||||||
</select></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span><%-lang['Timezone Offset']%></span></div>
|
|
||||||
<div><select class="form-control" name="timezone">
|
|
||||||
<% config.timeZones.forEach(function(option){
|
|
||||||
var selected = ''
|
|
||||||
if(option.selected)selected = 'selected'
|
|
||||||
%>
|
%>
|
||||||
<option value="<%- option.value %>" <%- selected %>><%- option.text %></option>
|
<%
|
||||||
<% }) %>
|
include fieldBuilders.ejs
|
||||||
</select></div>
|
%>
|
||||||
</label>
|
<% Object.keys(define['Schedules'].blocks).forEach(function(blockKey){
|
||||||
</div>
|
var accountSettings = define['Schedules'].blocks[blockKey]
|
||||||
<div class="form-group">
|
drawBlock(accountSettings)
|
||||||
<label><div><span><%-lang['Start']%></span></div>
|
}) %>
|
||||||
<div><input class="form-control" name="start" placeholder="HH:mm"></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span><%-lang['End']%></span></div>
|
|
||||||
<div><input class="form-control" name="end" placeholder="HH:mm"></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span><%-lang['Days']%></span></div>
|
|
||||||
<div><select class="form-control" style="min-height:100px" multiple name="days">
|
|
||||||
<option value="0"><%- lang.Sunday %></option>
|
|
||||||
<option value="1"><%- lang.Monday %></option>
|
|
||||||
<option value="2"><%- lang.Tuesday %></option>
|
|
||||||
<option value="3"><%- lang.Wednesday %></option>
|
|
||||||
<option value="4"><%- lang.Thursday %></option>
|
|
||||||
<option value="5"><%- lang.Friday %></option>
|
|
||||||
<option value="6"><%- lang.Saturday %></option>
|
|
||||||
</select></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span><%-lang['Monitor States']%></span></div>
|
|
||||||
<div><select class="form-control" style="min-height:100px" multiple name="monitorStates">
|
|
||||||
</select></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!--Sub Account Manager Window-->
|
<!--Sub Account Manager Window-->
|
||||||
<div class="modal fade" id="subAccountManager" tabindex="-1" role="dialog" aria-labelledby="subAccountManagerLabel" aria-hidden="true">
|
<div class="modal medium fade dark" id="subAccountManager" tabindex="-1" role="dialog" aria-labelledby="subAccountManagerLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
|
@ -9,6 +9,7 @@
|
||||||
<h4 class="modal-title" id="subAccountManagerLabel"><i class="fa fa-group"></i> <%-lang.subAccountManager%></h4>
|
<h4 class="modal-title" id="subAccountManagerLabel"><i class="fa fa-group"></i> <%-lang.subAccountManager%></h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
<%
|
<%
|
||||||
var drawBlock
|
var drawBlock
|
||||||
var buildOptions
|
var buildOptions
|
||||||
|
@ -20,44 +21,7 @@
|
||||||
var accountSettings = define['Sub-Account Manager'].blocks[blockKey]
|
var accountSettings = define['Sub-Account Manager'].blocks[blockKey]
|
||||||
drawBlock(accountSettings)
|
drawBlock(accountSettings)
|
||||||
}) %>
|
}) %>
|
||||||
<!-- <div class="row">
|
|
||||||
<div class="col-md-4">
|
|
||||||
<table class="table table-striped" id="sub_accounts">
|
|
||||||
<tbody></tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
|
||||||
<form id="sub_accounts_add_form">
|
|
||||||
<div class="form-group-group forestgreen">
|
|
||||||
<h4>Add<small id="msg" class="pull-right" style="color:#fff"></small></h4>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span>Email</span></div>
|
|
||||||
<div><input class="form-control" type="email" name="mail"></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span>Password</span></div>
|
|
||||||
<div><input class="form-control" type="password" name="pass"></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label><div><span>Password Again</span></div>
|
|
||||||
<div><input class="form-control" type="password" name="password_again"></div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<button type="reset" class="btn btn-danger"><i class="fa fa-undo"></i> Clear</button>
|
|
||||||
<div class="pull-right">
|
|
||||||
<button type="submit" class="btn btn-success"><i class="fa fa-check"></i> Submit</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-4">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal"><i class="fa fa-times"></i> <%-lang.Close%></button>
|
<button type="button" class="btn btn-default pull-left" data-dismiss="modal"><i class="fa fa-times"></i> <%-lang.Close%></button>
|
||||||
|
|
Loading…
Reference in New Issue