zncstrap/modules/certauth/tmpl/index.tmpl

50 lines
1.4 KiB
Cheetah
Raw Normal View History

2021-06-16 20:53:00 +02:00
<? I18N znc-certauth ?>
2021-06-15 16:15:14 +02:00
<? INC Header.tmpl ?>
<div class="container col-md-10 col-md-offset-1">
<div class="panel panel-default">
2021-06-16 20:53:00 +02:00
<div class="panel-heading"><? FORMAT "Add a key" ?></div>
2021-06-15 16:15:14 +02:00
<div class="panel-body">
<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>add">
<? INC _csrf_check.tmpl ?>
<div class="form-group">
2021-06-16 20:53:00 +02:00
<label for="inputKey" class="col-sm-2 control-label"><? FORMAT "Key:" ?></label>
2021-06-15 16:15:14 +02:00
<div class="col-sm-10">
<input type="text" class="form-control" id="inputKey" name="key" size="40">
</div>
</div>
<? IF !KeyLoop ?>
2021-06-16 20:53:00 +02:00
<p class="text-center"><? FORMAT "You have no keys." ?></p>
2021-06-15 16:15:14 +02:00
<? ELSE ?>
<br />
<table class="table table-bordered table-hover">
<thead>
<tr>
2021-06-16 20:53:00 +02:00
<td></td>
<td><? FORMAT CTX="web" "Key" ?></td>
2021-06-15 16:15:14 +02:00
</tr>
</thead>
<tbody>
<? LOOP KeyLoop ?>
<tr>
2021-06-16 20:53:00 +02:00
<td><a href="<? VAR ModPath ?>delete?key=<? VAR Key ESC=URL,HTML ?>" class="btn btn-danger btn-xs"><? FORMAT "del" ?></a></td>
2021-06-15 16:15:14 +02:00
<td><? VAR Key ?></td>
</tr>
<? ENDLOOP ?>
</tbody>
</table>
<? ENDIF ?>
</div>
<div class="panel-footer text-right">
<input class="btn btn-danger" type="reset" value="Reset">
2021-06-16 20:53:00 +02:00
<input class="btn btn-success" type="submit" name="add" value="<? FORMAT "Add Key" ?>" />
2021-06-15 16:15:14 +02:00
</div>
</form>
</div>
</div>
<? INC Footer.tmpl ?>