Project

General

Profile

« Previous | Next » 

Revision 30c4ae8a

Added by Scott Ullrich over 15 years ago

Seperate diffserv box into a <select> dropdown. Hide item behind advanced button. Move down one section near other advanced items. Resolves #60

View differences:

usr/local/www/firewall_rules_edit.php
873 873
				</span>
874 874
			</td>
875 875
		</tr>
876
                <tr>
877
                        <td width="22%" valign="top" class="vncell">Diffserv Code Point</td>
878
                        <td width="78%" class="vtable">
879
                                <input name="dscp" id="dscp" value="<?=htmlspecialchars($pconfig['dscp']);?>">
880
                                        <br />
881
                                <span class="vexpl">Valid values are: af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, EF, 1-64, 0x04-0xfc.</span>
882
                        </td>
883
                </tr>
884 876
		<tr>
885 877
			<td width="22%" valign="top" class="vncellreq">Log</td>
886 878
			<td width="78%" class="vtable">
......
890 882
				<span class="vexpl">Hint: the firewall has limited local log space. Don't turn on logging for everything. If you want to do a lot of logging, consider using a remote syslog server (see the <a href="diag_logs_settings.php">Diagnostics: System logs: Settings</a> page).</span>
891 883
			</td>
892 884
		</tr>
885
		<tr>
886
			<td width="22%" valign="top" class="vncell">Diffserv Code Point</td>
887
			<td width="78%" class="vtable">
888
				<div id="dsadv" name="dsadv">
889
					<input type="button" onClick="show_dsdiv();" value="Advanced"> - Show advanced options
890
				</div>
891
				<div id="dsdivmain" name="dsdivmain" style="display:none">
892
					<select name="dscp" id="dscp">
893
						<option value=""></option>
894
						<?php foreach($firewall_rules_dscp_types as $frdt): ?>
895
							<option value="<?=$frdt?>"<?php if($pconfig['dscp'] == $frdt) echo " SELECTED"; ?>><?=$frdt?></option>
896
						<?php endforeach; ?>
897
					</select>
898
				</div>
899
			</td>
900
		</tr>
893 901
		<tr>
894 902
			<td width="22%" valign="top" class="vncell">Advanced Options</td>
895 903
			<td width="78%" class="vtable">

Also available in: Unified diff