token support, api fixes and security, dark mode
This commit is contained in:
0
app/views/about.html
Normal file
0
app/views/about.html
Normal file
28
app/views/admin/tokens/create.html
Normal file
28
app/views/admin/tokens/create.html
Normal file
@ -0,0 +1,28 @@
|
||||
<form action="" method="post" class="form-horizontal">
|
||||
<legend>Create Token</legend>
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-lg-6 control-label">Name:</label>
|
||||
<div class="col-lg-2">
|
||||
<input class="form-control" type="text" name="name" id="name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="notes" class="col-lg-3 control-label">Notes</label>
|
||||
<div class="col-lg-6">
|
||||
<textarea class="form-control" name="notes" maxlength="2000" rows="10" cols="50" id="notes"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="token_type" class="col-lg-6 control-label">Token Type:</label>
|
||||
<div class="col-lg-2">
|
||||
<select name="token_type" id="token_type" class="">
|
||||
<option value='app' selected>Application</option>
|
||||
<option value='user'>User</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Create</button><br>
|
||||
</form>
|
29
app/views/admin/tokens/edit.html
Normal file
29
app/views/admin/tokens/edit.html
Normal file
@ -0,0 +1,29 @@
|
||||
<form action="" method="post" class="form-horizontal">
|
||||
<legend>Edit Token</legend>
|
||||
<fieldset>
|
||||
<div class="form-group">
|
||||
<label for="name" class="col-lg-6 control-label">Name:</label>
|
||||
<div class="col-lg-2">
|
||||
<input class="form-control" type="text" name="name" id="name" value="{name}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="notes" class="col-lg-3 control-label">Notes</label>
|
||||
<div class="col-lg-6">
|
||||
<textarea class="form-control" name="notes" maxlength="2000" rows="10" cols="50" id="notes">{notes}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="token_type" class="col-lg-6 control-label">Token Type:</label>
|
||||
<div class="col-lg-2">
|
||||
<select name="token_type" id="token_type" class="">
|
||||
{OPTION=token_type}
|
||||
<option value='app'>Application</option>
|
||||
<option value='user'>User</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Save</button><br>
|
||||
</form>
|
30
app/views/admin/tokens/list.html
Normal file
30
app/views/admin/tokens/list.html
Normal file
@ -0,0 +1,30 @@
|
||||
<legend>Tokens</legend>
|
||||
{PAGINATION}
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 15%">ID</th>
|
||||
<th style="width: 45%">Name</th>
|
||||
<th style="width: 25%">Type</th>
|
||||
<th style="width: 15%">Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{LOOP}
|
||||
<tr>
|
||||
<td align="center">{ID}</td>
|
||||
<td><a href='{ROOT_URL}admin/tokens/view/{ID}'>{name}</a></td>
|
||||
<td>{token_type}</td>
|
||||
<td><a href="{ROOT_URL}admin/tokens/delete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="glyphicon glyphicon-trash"></i></a></td>
|
||||
</tr>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<tr>
|
||||
<td align="center" colspan="6">
|
||||
No results to show.
|
||||
</td>
|
||||
</tr>
|
||||
{/ALT}
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="{ROOT_URL}admin/tokens/create" class="btn btn-sm btn-primary" role="button">Create</a>
|
48
app/views/admin/tokens/view.html
Normal file
48
app/views/admin/tokens/view.html
Normal file
@ -0,0 +1,48 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xs-offset-0 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 top-pad" >
|
||||
<div class="panel panel-primary">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{name}</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class=" col-md-9 col-lg-9 ">
|
||||
<table class="table table-user-primary">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Type</td>
|
||||
<td>{token_type}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Created At</td>
|
||||
<td>{DTC}{createdAt}{/DTC}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Expires At</td>
|
||||
<td>{DTC}{expiresAt}{/DTC}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Token</td>
|
||||
<td>{token}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Secret</td>
|
||||
<td>{secret}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Notes</td>
|
||||
<td>{notes}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<a href="{ROOT_URL}admin/tokens/delete/{ID}" class="btn btn-sm btn-danger" role="button">Delete</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
0
app/views/contact.html
Normal file
0
app/views/contact.html
Normal file
@ -12,4 +12,8 @@
|
||||
<a href="{ROOT_URL}privacy">Privacy Policy</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="material-switch" style="margin-top: 25px; margin-bottom: 25px;">
|
||||
<input name="dark-mode-toggle" type="checkbox" id="dark-mode-toggle"/>
|
||||
<label for="dark-mode-toggle" class="label-default"></label>
|
||||
</div>
|
||||
</div>
|
0
app/views/privacy.html
Normal file
0
app/views/privacy.html
Normal file
52
app/views/switches.html
Normal file
52
app/views/switches.html
Normal file
@ -0,0 +1,52 @@
|
||||
<div class="col-xs-12 col-sm-6 col-md-4 col-sm-offset-3 col-md-offset-4">
|
||||
<div class="panel panel-default">
|
||||
<!-- Default panel contents -->
|
||||
<div class="panel-heading">Material Design Switch Demos</div>
|
||||
|
||||
<!-- List group -->
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item">
|
||||
Bootstrap Switch Default
|
||||
<div class="material-switch pull-right">
|
||||
<input id="someSwitchOptionDefault" name="someSwitchOption001" type="checkbox"/>
|
||||
<label for="someSwitchOptionDefault" class="label-default"></label>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Bootstrap Switch Primary
|
||||
<div class="material-switch pull-right">
|
||||
<input id="someSwitchOptionPrimary" name="someSwitchOption001" type="checkbox"/>
|
||||
<label for="someSwitchOptionPrimary" class="label-primary"></label>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Bootstrap Switch Success
|
||||
<div class="material-switch pull-right">
|
||||
<input id="someSwitchOptionSuccess" name="someSwitchOption001" type="checkbox"/>
|
||||
<label for="someSwitchOptionSuccess" class="label-success"></label>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Bootstrap Switch Info
|
||||
<div class="material-switch pull-right">
|
||||
<input id="someSwitchOptionInfo" name="someSwitchOption001" type="checkbox"/>
|
||||
<label for="someSwitchOptionInfo" class="label-info"></label>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Bootstrap Switch Warning
|
||||
<div class="material-switch pull-right">
|
||||
<input id="someSwitchOptionWarning" name="someSwitchOption001" type="checkbox"/>
|
||||
<label for="someSwitchOptionWarning" class="label-warning"></label>
|
||||
</div>
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
Bootstrap Switch Danger
|
||||
<div class="material-switch pull-right">
|
||||
<input id="someSwitchOptionDanger" name="someSwitchOption001" type="checkbox"/>
|
||||
<label for="someSwitchOptionDanger" class="label-danger"></label>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user