Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix settings page on the web panel

  • Loading branch information...
commit b65b48a812054c5ba6ed07840cbb1a170b93481b 1 parent 64d3934
@JordanPerkins authored
View
184 modules/data/webadmin/tmpl/settings.tmpl
@@ -1,72 +1,77 @@
<? INC Header.tmpl ?>
-<form action="settings" method="post">
- <? INC _csrf_check.tmpl ?>
- <div class="section">
- <input type="hidden" name="submitted" value="1" />
+<div class="section">
- <h3>Listen Port(s)</h3>
- <div class="sectionbg">
- <div class="sectionbody">
- <div class="subsection">
- <div>
+ <h3>Listen Port(s)</h3>
+ <div class="sectionbg">
+ <div class="sectionbody">
+ <div class="subsection">
+ <div class="listeners">
+ <div class="listeners_header">
+ <div class="listeners_header1">Port</div>
+ <div class="listeners_header1">BindHost</div>
+ <div class="listeners_header1">SSL</div>
+ <div class="listeners_header1">IPv4</div>
+ <div class="listeners_header1">IPv6</div>
+ <div class="listeners_header1">IRC</div>
+ <div class="listeners_header1">Web</div>
+ <!--<td/>-->
+ </div>
+ <? LOOP ListenLoop ?>
+ <div class="listener_show <? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
+ <div class="listener_show_port"><? VAR Port ?></div>
+ <div class="listener_show_host"><? VAR BindHost DEFAULT=** ?></div>
+ <div class="listener_show_ssl">
+ <div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsSSL ?>checked="checked"<? ENDIF ?>/></div>
+ </div>
+ <div class="listener_show_ipv4">
+ <div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIPV4 ?>checked="checked"<? ENDIF ?>/></div>
+ </div>
+ <div class="listener_show_ipv6">
+ <div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIPV6 ?>checked="checked"<? ENDIF ?>/></div>
+ </div>
+ <div class="listener_show_irc">
+ <div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIRC ?>checked="checked"<? ENDIF ?>/></div>
+ </div>
+ <div class="listener_show_web">
+ <div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsWeb ?>checked="checked"<? ENDIF ?>/></div>
+ </div>
+ <div class="listener_show_delete">
+ <? IF SuggestDeletion ?>
+ <form action="del_listener" method="post">
+ <? INC _csrf_check.tmpl ?>
+ <input name="host" type="hidden" value="<? VAR BindHost ?>"/>
+ <input name="port" type="hidden" value="<? VAR Port ?>"/>
+ <input name="ipv4" type="hidden" value="<? VAR IsIPV4 ?>"/>
+ <input name="ipv6" type="hidden" value="<? VAR IsIPV6 ?>"/>
+ <input type="submit" value="Del"/>
+ </form>
+ <? ENDIF ?>
+ </div>
+ </div>
+ <? ENDLOOP ?>
+ <div class="listener_add">
<form action="add_listener" method="post">
- <table>
- <thead>
- <tr>
- <td>Port</td>
- <td>BindHost</td>
- <td>SSL</td>
- <td>IPv4</td>
- <td>IPv6</td>
- <td>IRC</td>
- <td>Web</td>
- <td/>
- </tr>
- </thead>
- <tbody>
- <? LOOP ListenLoop ?>
- <tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
- <td><? VAR Port ?></td>
- <td><? VAR BindHost DEFAULT=** ?></td>
- <td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsSSL ?>checked="checked"<? ENDIF ?>/></div></td>
- <td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIPV4 ?>checked="checked"<? ENDIF ?>/></div></td>
- <td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIPV6 ?>checked="checked"<? ENDIF ?>/></div></td>
- <td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIRC ?>checked="checked"<? ENDIF ?>/></div></td>
- <td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsWeb ?>checked="checked"<? ENDIF ?>/></div></td>
- <td>
- <? IF SuggestDeletion ?>
- <form action="del_listener" method="post">
- <? INC _csrf_check.tmpl ?>
- <input name="host" type="hidden" value="<? VAR BindHost ?>"/>
- <input name="port" type="hidden" value="<? VAR Port ?>"/>
- <input name="ipv4" type="hidden" value="<? VAR IsIPV4 ?>"/>
- <input name="ipv6" type="hidden" value="<? VAR IsIPV6 ?>"/>
- <input type="submit" value="Del"/>
- </form>
- <? ENDIF ?>
- </td>
- </tr>
- <? ENDLOOP ?>
- <tr>
- <? INC _csrf_check.tmpl ?>
- <td><input name="port" type="number" min="1" max="65535" class="number"/></td>
- <td><input name="host" type="text" value="*" class="third"/></td>
- <td><div class="checkbox"><input name="ssl" type="checkbox"/></div></td>
- <td><div class="checkbox"><input name="ipv4" type="checkbox" checked="checked"/></div></td>
- <td><div class="checkbox"><input name="ipv6" type="checkbox" checked="checked"/></div></td>
- <td><div class="checkbox"><input name="irc" type="checkbox" checked="checked"/></div></td>
- <td><div class="checkbox"><input name="web" type="checkbox" checked="checked"/></div></td>
- <td><input type="submit" value="Add"/></td>
- </tr>
- </tbody>
- </table>
+ <? INC _csrf_check.tmpl ?>
+ <div class="listener_add_port"><input name="port" type="number" min="1" max="65535" class="number"/></div>
+ <div class="listener_add_host"><input name="host" type="text" value="*" class="third"/></div>
+ <div class="listener_add_ssl"><div class="checkbox"><input name="ssl" type="checkbox"/></div></div>
+ <div class="listener_add_ipv4"><div class="checkbox"><input name="ipv4" type="checkbox" checked="checked"/></div></div>
+ <div class="listener_add_ipv6"><div class="checkbox"><input name="ipv6" type="checkbox" checked="checked"/></div></div>
+ <div class="listener_add_irc"><div class="checkbox"><input name="irc" type="checkbox" checked="checked"/></div></div>
+ <div class="listener_add_web"><div class="checkbox"><input name="web" type="checkbox" checked="checked"/></div></div>
+ <div class="listener_add_submit"><input type="submit" value="Add"/></div>
</form>
</div>
</div>
</div>
</div>
</div>
+</div>
+
+<form action="settings" method="post">
+ <? INC _csrf_check.tmpl ?>
+ <input type="hidden" name="submitted" value="1" />
<div class="section">
<h3>Settings</h3>
@@ -74,70 +79,78 @@
<div class="sectionbody">
<div class="subsection">
<div class="inputlabel">Skin:</div>
- <div>
+
<select name="skin">
<? LOOP SkinLoop ?>
<option value="<? VAR Name ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? IF Name == "_default_" ?>Default<? ELSE ?><? VAR Name ?><? ENDIF ?></option>
<? ENDLOOP ?>
</select>
- </div>
+
</div>
- <div style="clear: both;"></div>
+
<div class="subsection third">
<div class="inputlabel">Status Prefix:</div>
- <div><input type="text" name="statusprefix" value="<? VAR StatusPrefix ?>" /></div>
+ <input type="text" name="statusprefix" value="<? VAR StatusPrefix ?>"
+ title="The prefix for the status and module queries."/>
<br /><span class="info">Default for new users only.</span>
</div>
- <div style="clear: both;"></div>
+
<div class="subsection half">
<div class="inputlabel">Maximum Buffer Size:</div>
- <div><input type="text" name="maxbufsize" value="<? VAR MaxBufferSize ?>" /></div>
+ <input type="text" name="maxbufsize" value="<? VAR MaxBufferSize ?>"
+ title="Sets the global Max Buffer Size a user can have."/>
</div>
- <div style="clear: both;"></div>
+
<div class="subsection half">
<div class="inputlabel">Connect Delay:</div>
- <div><input type="text" name="connectdelay" value="<? VAR ConnectDelay ?>" /></div>
+ <input type="text" name="connectdelay" value="<? VAR ConnectDelay ?>"
+ title="The time every connection will be delayed, in seconds.
+ Some servers refuse your connection if you reconnect too fast.
+ This affects the connection between ZNC and the IRC server;
+ not the connection between your IRC client and ZNC. "/>
</div>
- <div style="clear: both;"></div>
+
<div class="subsection half">
<div class="inputlabel">Server Throttle:</div>
- <div><input type="text" name="serverthrottle" value="<? VAR ServerThrottle ?>" /></div>
+ <input type="text" name="serverthrottle" value="<? VAR ServerThrottle ?>"
+ title="The time between two connect attempts to the same hostname." />
</div>
- <div style="clear: both;"></div>
+
<div class="subsection half">
<div class="inputlabel">Anonymous IP Limit:</div>
- <div><input type="text" name="anoniplimit" value="<? VAR AnonIPLimit ?>" /></div>
+ <input type="text" name="anoniplimit" value="<? VAR AnonIPLimit ?>"
+ title="Limits the number of unidentified connections per IP." />
</div>
- <div style="clear: both;"></div>
+
<div class="subsection">
<div class="inputlabel">Protect Web Sessions:</div>
<div class="checkbox"><input type="checkbox" name="protectwebsessions" id="protectwebsessions_checkbox"<? IF ProtectWebSessions ?> checked="checked"<? ENDIF ?> />
<label for="protectwebsessions_checkbox">Disallow IP changing during each web session</label></div>
</div>
- <div style="clear: both;"></div>
+
<div class="subsection twothird">
<div class="inputlabel">MOTD:</div>
- <div><textarea name="motd" cols="70" rows="5" class="monospace"><? LOOP MOTDLoop ?><? VAR Line ?>
+ <textarea name="motd" cols="70" rows="5" class="monospace"><? LOOP MOTDLoop ?><? VAR Line ?>
<? ENDLOOP ?>
-</textarea></div>
+</textarea>
<br /><span class="info">"Message of the Day", sent to all ZNC users on connect.</span>
</div>
<div class="subsection twothird">
<div class="inputlabel">BindHosts:</div>
- <div><textarea name="bindhosts" cols="70" rows="8"><? LOOP BindHostLoop ?><? VAR BindHost ?>
+ <textarea name="bindhosts" cols="70" rows="8"><? LOOP BindHostLoop ?><? VAR BindHost ?>
<? ENDLOOP ?>
-</textarea></div>
+</textarea>
<br /><span class="info">One host name or IP entry per line.</span>
</div>
- <div style="clear: both;"></div>
+
</div>
</div>
</div>
@@ -157,8 +170,19 @@
<tbody>
<? LOOP ModuleLoop ?>
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
- <td class="mod_name"><input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ?>"> <? IF Wiki ?> <a href="http://wiki.znc.in/<? VAR Wiki ?>"><? VAR Name ?></a> <? ELSE ?> <? VAR Name ?> <? ENDIF ?></label></td>
- <td class="mod_args"><input type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>" /></td>
+ <td class="mod_name">
+ <input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>"
+ <? IF Checked ?> checked="checked"<? ENDIF ?>
+ <? IF Disabled ?> disabled="disabled"<? ENDIF ?> />
+ <label for="lm_<? VAR Name ?>">
+ <? IF Wiki ?><a href="http://wiki.znc.in/<? VAR Wiki ?>"><? VAR Name ?></a>
+ <? ELSE ?> <? VAR Name ?> <? ENDIF ?></label>
+ </td>
+ <td class="mod_args">
+ <input type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>"
+ <? IF !HasArgs ?> disabled="disabled"<? ENDIF ?>
+ <? IF ArgsHelpText ?> title="<? VAR ArgsHelpText ?>"<? ENDIF ?> />
+ </td>
<td class="mod_descr"><? VAR Description ?></td>
</tr>
<? ENDLOOP ?>
View
123 webskins/_default_/pub/_default_.css
@@ -101,7 +101,7 @@ ul.nav li.subitem {
ul.nav li.topitem:before,
ul.nav li.modtitle:before {
- content: "» ";
+ content: "» ";
}
ul.nav li.topitem, ul.nav li.modtitle {
@@ -364,3 +364,124 @@ td {
.textsection p {
margin-bottom: 0.7em;
}
+
+.listeners {
+ display: table
+}
+
+.listeners_header {
+ display: table-row
+}
+
+.listeners_header1 {
+ display: table-cell
+}
+
+.listener_show {
+ display: table-row
+}
+
+.listener_show_port {
+ display: table-cell
+}
+
+.listener_show_host {
+ display: table-cell
+}
+
+.listener_show_ssl {
+ display: table-cell
+}
+
+.listener_show_ipv4 {
+ display: table-cell
+}
+
+.listener_show_ipv6 {
+ display: table-cell
+}
+
+.listener_show_irc {
+ display: table-cell
+}
+
+.listener_show_web {
+ display: table-cell
+}
+
+.listener_show_delete {
+ display: table-cell
+}
+
+.listener_add {
+ display: table-row
+}
+
+.listener_add_port {
+ display: table-cell
+}
+
+.listener_add_host {
+ display: table-cell
+}
+
+.listener_add_ssl {
+ display: table-cell
+}
+
+.listener_add_ipv4 {
+ display: table-cell
+}
+
+.listener_add_ipv6 {
+ display: table-cell
+}
+
+.listener_add_irc {
+ display: table-cell
+}
+
+.listener_add_web {
+ display: table-cell
+}
+
+.listener_add_submit {
+ display: table-cell
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.