Project

General

Profile

« Previous | Next » 

Revision d254b99e

Added by Stephen Beaver over 9 years ago

Fixed #5403

View differences:

src/usr/local/www/diag_smart.php
289 289
// Information
290 290
		$devs = get_smart_drive_list();
291 291

  
292
		$form = new Form(new Form_Button(
292
		$form = new Form(false);
293

  
294
		$btnview = new Form_Button(
293 295
			'submit',
294 296
			'View'
295
		));
297
		);
296 298

  
297 299
		$section = new Form_Section('Information');
298 300

  
......
354 356
			array_combine($devs, $devs)
355 357
		));
356 358

  
359
		$section->addInput(new Form_StaticText(
360
			'',
361
			$btnview
362
		));
363

  
357 364
		$form->add($section);
358 365
		print($form);
359 366

  
360 367
// Tests
361
		$form = new Form(new Form_Button(
368
		$form = new Form(false);
369

  
370
		$btntest = new Form_Button(
362 371
			'submit',
363 372
			'Test'
364
		));
373
		);
365 374

  
366 375
		$section = new Form_Section('Perform self-tests');
367 376

  
......
416 425
			array_combine($devs, $devs)
417 426
		));
418 427

  
428
		$section->addInput(new Form_StaticText(
429
			'',
430
			$btntest
431
		));
432

  
419 433
		$form->add($section);
420 434
		print($form);
421 435

  
422 436
// Logs
423
		$form = new Form(new Form_Button(
437
		$form = new Form(false);
438

  
439
		$btnview =  new Form_Button(
424 440
			'submit',
425 441
			'View'
426
		));
442
		);
427 443

  
428 444
		$section = new Form_Section('View logs');
429 445

  
......
461 477
			array_combine($devs, $devs)
462 478
		));
463 479

  
480
		$section->addInput(new Form_StaticText(
481
			'',
482
			$btnview
483
		));
484

  
464 485
		$form->add($section);
465 486
		print($form);
466 487

  
......
472 493

  
473 494
		$btnabort->removeClass('btn-primary')->addClass('btn-danger');
474 495

  
475
		$form = new Form($btnabort);
496
		$form = new Form(false);
476 497

  
477 498
		$section = new Form_Section('Abort');
478 499

  
......
490 511
			array_combine($devs, $devs)
491 512
		));
492 513

  
514
		$section->addInput(new Form_StaticText(
515
			'',
516
			$btnabort
517
		));
518

  
493 519
		$form->add($section);
494 520
		print($form);
495 521

  

Also available in: Unified diff