mirror of
https://github.com/znc/znc.git
synced 2026-07-03 00:11:59 +02:00
Move module's templates to their data dir
Instead of having the template files and images in /usr/share/znc/www/<mod>/, modules now get to use /usr/share/znc/<mod>/tmpl/ and files/ for this purpose. This puts those directories for static data to good use again and might even fix some bugs (after all, the code for that dir is older and more tested than the new code for www/). git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1997 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<form method="post" action="/mods/notes/addnote">
|
||||
<? INC _csrf_check.tmpl ?>
|
||||
<div class="section">
|
||||
<h3>Add A Note</h3>
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection third">
|
||||
<div class="inputlabel">Key:</div>
|
||||
<div><input type="text" name="key" size="8" /></div>
|
||||
</div>
|
||||
<div class="subsection full">
|
||||
<div class="inputlabel">Note:</div>
|
||||
<div><input type="text" name="note" size="40" /></div>
|
||||
</div>
|
||||
<div class="subsection submitline">
|
||||
<input type="submit" name="add" value="Add Note" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<? IF !NotesLoop ?>
|
||||
<p>You have no notes to display.</p>
|
||||
<? ELSE ?>
|
||||
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="width: 10px;"> </td>
|
||||
<td>Key</td>
|
||||
<td>Note</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<? LOOP NotesLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><a href="/mods/notes/delnote?key=<? VAR Key ESC=URL,HTML ?>"><img src="/modfiles/<? VAR ModName TOP ?>/trash.gif" alt="[del]" /></a></td>
|
||||
<td><? VAR Key ?></td>
|
||||
<td><? VAR Note ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<? ENDIF ?>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
Reference in New Issue
Block a user