Files
znc/modules/data/certauth/tmpl/index.tmpl
uu1101 4376b373d8 Prepend URIPrefix to web interface links
Prefix links in templates with URIPrefix and add the input field to the
Listener editor.

The URIPrefix is provided as a top-level template variable. All URIs
have been changed to have the prefix prepended.
2014-02-16 12:45:10 +01:00

44 lines
928 B
Cheetah

<? INC Header.tmpl ?>
<form method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>add">
<? INC _csrf_check.tmpl ?>
<div class="section">
<h3>Add A Note</h3>
<div class="sectionbg">
<div class="sectionbody">
<div class="subsection full">
<div class="inputlabel">Key:</div>
<input type="text" name="key" size="40" />
</div>
<div class="subsection submitline">
<input type="submit" name="add" value="Add Key" />
</div>
</div>
</div>
</div>
</form>
<? IF !KeyLoop ?>
<p>You have no keys.</p>
<? ELSE ?>
<table class="data">
<thead>
<tr>
<td></td>
<td>Key</td>
</tr>
</thead>
<tbody>
<? LOOP KeyLoop ?>
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
<td>[<a href="<? VAR ModPath ?>delete?key=<? VAR Key ESC=URL,HTML ?>">del</a>]</td>
<td><? VAR Key ?></td>
</tr>
<? ENDLOOP ?>
</tbody>
</table>
<? ENDIF ?>
<? INC Footer.tmpl ?>