zncstrap/modules/notes/tmpl/index.tmpl

59 lines
1.6 KiB
Cheetah
Raw Normal View History

2014-02-11 05:44:19 +01:00
<? INC Header.tmpl ?>
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">Notes</div>
<div class="panel-body">
2014-05-21 09:41:26 +02:00
<form class="form-horizontal" method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>addnote">
2014-02-11 05:44:19 +01:00
<? INC _csrf_check.tmpl ?>
<h3>Add A Note</h3>
<hr>
<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="8">
</div>
</div>
<div class="form-group">
<label for="inputNote" class="col-sm-2 control-label">Note:</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="inputNote" name="note" size="40">
</div>
</div>
<? IF !NotesLoop ?>
2014-05-21 09:41:26 +02:00
<div class="alert alert-warning">You have no notes to display.</div>
2014-02-11 05:44:19 +01:00
<? ELSE ?>
<table class="table table-bordered table-hover">
<thead>
<tr>
<td>Key</td>
<td>Note</td>
2014-05-21 09:41:26 +02:00
<td></td>
2014-02-11 05:44:19 +01:00
</tr>
</thead>
<tbody>
<? LOOP NotesLoop ?>
<tr>
<td><? VAR Key ?></td>
<td><? VAR Note ?></td>
2014-05-21 09:41:26 +02:00
<td><a href="<? VAR URIPrefix TOP ?><? VAR ModPath TOP ?>delnote?key=<? VAR Key ESC=URL,HTML ?>" class="btn btn-danger btn-xs">Delete</a></td>
2014-02-11 05:44:19 +01:00
</tr>
<? ENDLOOP ?>
</tbody>
</table>
<? ENDIF ?>
2014-05-21 09:41:26 +02:00
<div class="pull-right">
<input class="btn btn-danger" type="reset" value="Reset">
<input class="btn btn-success" type="submit" name="add" value="Add Note" />
</div>
</form>
2014-02-11 05:44:19 +01:00
</div>
</div>
</div>
<? INC Footer.tmpl ?>