Revision 19c25a53
Added by Jack Booth over 8 years ago
src/usr/local/www/services_ntpd.php | ||
---|---|---|
252 | 252 |
$maxrows = max(count($timeservers), 1); |
253 | 253 |
for ($counter=0; $counter < $maxrows; $counter++) { |
254 | 254 |
$group = new Form_Group($counter == 0 ? 'Time Servers':''); |
255 |
$group->addClass('repeatable');
|
|
256 |
$group->setAttribute('max_repeats', NUMTIMESERVERS);
|
|
257 |
$group->setAttribute('max_repeats_alert', sprintf(gettext('%d is the maximum number of configured servers.'), NUMTIMESERVERS));
|
|
255 |
$group->addClass('repeatable');
|
|
256 |
$group->setAttribute('max_repeats', NUMTIMESERVERS);
|
|
257 |
$group->setAttribute('max_repeats_alert', sprintf(gettext('%d is the maximum number of configured servers.'), NUMTIMESERVERS));
|
|
258 | 258 |
|
259 | 259 |
$group->add(new Form_Input( |
260 | 260 |
'server' . $counter, |
Also available in: Unified diff
Fix indentation
(cherry picked from commit c18d0d12b3e683f07b4bac933240332cd4d95829)