zncstrap/modules/certauth/tmpl/index.tmpl

49 lines
1.3 KiB
Cheetah
Raw Normal View History

2014-02-11 05:44:19 +01:00
<? INC Header.tmpl ?>
<div class="container col-md-10 col-md-offset-1">
2014-02-11 05:44:19 +01:00
<div class="panel panel-default">
<div class="panel-heading">Certauth &mdash; Add A Note</div>
2014-02-11 05:44:19 +01:00
<div class="panel-body">
2014-05-21 09:41:26 +02:00
<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>add">
2014-02-11 05:44:19 +01:00
<? INC _csrf_check.tmpl ?>
<div class="form-group">
<label for="inputKey" class="col-sm-2 control-label">Key:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="inputKey" name="key" size="40">
</div>
</div>
<? IF !KeyLoop ?>
<p class="text-center">You have no keys.</p>
2014-02-11 05:44:19 +01:00
<? ELSE ?>
<br />
2014-02-11 05:44:19 +01:00
<table class="table table-bordered table-hover">
<thead>
<tr>
<td>Action</td>
2014-02-11 05:44:19 +01:00
<td>Key</td>
</tr>
</thead>
<tbody>
<? LOOP KeyLoop ?>
<tr>
<td><a href="<? VAR ModPath ?>delete?key=<? VAR Key ESC=URL,HTML ?>" class="btn btn-danger btn-xs">Delete</a></td>
2014-02-11 05:44:19 +01:00
<td><? VAR Key ?></td>
</tr>
<? ENDLOOP ?>
2014-02-11 05:44:19 +01:00
</tbody>
</table>
<? ENDIF ?>
</div>
<div class="panel-footer text-right">
<input class="btn btn-danger" type="reset" value="Reset">
<input class="btn btn-success" type="submit" name="add" value="Add Key" />
</div>
</form>
2014-02-11 05:44:19 +01:00
</div>
</div>
<? INC Footer.tmpl ?>