Project

General

Profile

« Previous | Next » 

Revision d7d7820e

Added by Phil Davis over 9 years ago

Apply current UI standard to DHCP Pools table

1) "Actions" column heading.
2) Make action buttons fa-pencil fa-trash
3) Put a title for each button, so that the "Are you sure you wish to..." popup works nicely.

View differences:

src/usr/local/www/services_dhcp.php
660 660
	$pooltbl .=					'<th>' . gettext("Pool Start") . '</th>';
661 661
	$pooltbl .=					'<th>' . gettext("Pool End") . '</th>';
662 662
	$pooltbl .=					'<th>' . gettext("Description") . '</th>';
663
	$pooltbl .=					'<th></th>';
663
	$pooltbl .=					'<th>' . gettext("Actions") . '</th>';
664 664
	$pooltbl .=				'</tr>';
665 665
	$pooltbl .=			'</thead>';
666 666
	$pooltbl .=			'<tbody>';
......
679 679
				$pooltbl .= '<td ondblclick="document.location=\'services_dhcp.php?if=' . htmlspecialchars($if) . '&pool=' . $i . '\';">' .
680 680
							htmlspecialchars($poolent['descr']) . '</td>';
681 681

  
682
				$pooltbl .= '<td><a class="btn btn-xs btn-info" href="services_dhcp.php?if=' . htmlspecialchars($if) . '&pool=' . $i . '" />' . gettext('Edit') . '</a>';
682
				$pooltbl .= '<td><a class="fa fa-pencil" title="'. gettext("Edit pool") . '" href="services_dhcp.php?if=' . htmlspecialchars($if) . '&pool=' . $i . '"></a>';
683 683

  
684
				$pooltbl .= '<a class="btn btn-xs btn-danger" href="services_dhcp.php?if=' . htmlspecialchars($if) . '&act=delpool&id=' . $i . '" />' . gettext('Delete') . '</a></td>';
684
				$pooltbl .= ' <a class="fa fa-trash" title="'. gettext("Delete pool") . '" href="services_dhcp.php?if=' . htmlspecialchars($if) . '&act=delpool&id=' . $i . '"></a></td>';
685 685
				$pooltbl .= '</tr>';
686 686
			}
687 687
		$i++;

Also available in: Unified diff