Project

General

Profile

« Previous | Next » 

Revision 5dfc79c9

Added by Stephen Beaver over 9 years ago

Fixed #5802
Added collapsible action to config backup

View differences:

src/usr/local/www/services_dhcp.php
1106 1106

  
1107 1107
$form->add($section);
1108 1108

  
1109
if ($pconfig['netboot']) {
1110
	$sectate = COLLAPSIBLE|SEC_OPEN;
1111
} else {
1112
	$sectate = COLLAPSIBLE|SEC_CLOSED;
1113
}
1114
$section = new Form_Section("Network booting", nwkbootsec, $sectate);
1115

  
1116
$section->addInput(new Form_Checkbox(
1117
	'netboot',
1118
	'Enable',
1119
	'Enables network booting',
1120
	$pconfig['netboot']
1121
));
1122

  
1123
$section->addInput(new Form_IpAddress(
1124
	'nextserver',
1125
	'Next Server',
1126
	$pconfig['nextserver']
1127
))->setHelp('Enter the IP address of the next server');
1128

  
1129
$section->addInput(new Form_Input(
1130
	'filename',
1131
	'Default BIOS file name',
1132
	'text',
1133
	$pconfig['filename']
1134
));
1135

  
1136
$section->addInput(new Form_Input(
1137
	'filename32',
1138
	'UEFI 32 bit file name',
1139
	'text',
1140
	$pconfig['filename32']
1141
));
1142

  
1143
$section->addInput(new Form_Input(
1144
	'filename64',
1145
	'UEFI 64 bit file name',
1146
	'text',
1147
	$pconfig['filename64']
1148
))->setHelp('You need both a filename and a boot server configured for this to work! ' .
1149
			'You will need all three filenames and a boot server configured for UEFI to work! ');
1150

  
1151
$section->addInput(new Form_Input(
1152
	'rootpath',
1153
	'Root path',
1154
	'text',
1155
	$pconfig['rootpath']
1156
))->setHelp('string-format: iscsi:(servername):(protocol):(port):(LUN):targetname ');
1157

  
1158 1109
// Advanced Additional options
1159 1110
$btnadv = new Form_Button(
1160 1111
	'btnadvopts',
......
1168 1119
	$btnadv
1169 1120
));
1170 1121

  
1171
$form->add($section);
1172

  
1173 1122
$section = new Form_Section('Additional BOOTP/DHCP Options');
1174 1123
$section->addClass('adnlopts');
1175 1124

  
......
1241 1190

  
1242 1191
$form->add($section);
1243 1192

  
1193
if ($pconfig['netboot']) {
1194
	$sectate = COLLAPSIBLE|SEC_OPEN;
1195
} else {
1196
	$sectate = COLLAPSIBLE|SEC_CLOSED;
1197
}
1198
$section = new Form_Section("Network booting", nwkbootsec, $sectate);
1199

  
1200
$section->addInput(new Form_Checkbox(
1201
	'netboot',
1202
	'Enable',
1203
	'Enables network booting',
1204
	$pconfig['netboot']
1205
));
1206

  
1207
$section->addInput(new Form_IpAddress(
1208
	'nextserver',
1209
	'Next Server',
1210
	$pconfig['nextserver']
1211
))->setHelp('Enter the IP address of the next server');
1212

  
1213
$section->addInput(new Form_Input(
1214
	'filename',
1215
	'Default BIOS file name',
1216
	'text',
1217
	$pconfig['filename']
1218
));
1219

  
1220
$section->addInput(new Form_Input(
1221
	'filename32',
1222
	'UEFI 32 bit file name',
1223
	'text',
1224
	$pconfig['filename32']
1225
));
1226

  
1227
$section->addInput(new Form_Input(
1228
	'filename64',
1229
	'UEFI 64 bit file name',
1230
	'text',
1231
	$pconfig['filename64']
1232
))->setHelp('You need both a filename and a boot server configured for this to work! ' .
1233
			'You will need all three filenames and a boot server configured for UEFI to work! ');
1234

  
1235
$section->addInput(new Form_Input(
1236
	'rootpath',
1237
	'Root path',
1238
	'text',
1239
	$pconfig['rootpath']
1240
))->setHelp('string-format: iscsi:(servername):(protocol):(port):(LUN):targetname ');
1241

  
1242
$form->add($section);
1243

  
1244 1244
if ($act == "newpool") {
1245 1245
	$form->addGlobal(new Form_Input(
1246 1246
		'act',

Also available in: Unified diff