Project

General

Profile

« Previous | Next » 

Revision 6639718c

Added by Viktor Gurov almost 5 years ago

Static Routes Page tooltips and help text. Fixes #10889

View differences:

src/usr/local/www/system_routes.php
249 249
				<tbody>
250 250
<?php
251 251
foreach ($a_routes as $i => $route):
252
	if (isset($route['disabled'])) {
252
	if (isset($a_gateways[$route['gateway']]['inactive'])) {
253
		$icon = 'fa-times-circle-o';
254
		$title = gettext("Route inactive, gateway interface is missing");
255
	} elseif (isset($route['disabled'])) {
253 256
		$icon = 'fa-ban';
257
		$title = gettext("Route disabled");
254 258
	} else {
255 259
		$icon = 'fa-check-circle-o';
260
		$title = gettext("Route enabled");
256 261
	}
257 262
?>
258 263
				<tr<?=($icon != 'fa-check-circle-o')? ' class="disabled"' : ''?>>
259
					<td><i class="fa <?=$icon?>"></i></td>
264
					<td title="<?=$title?>"><i class="fa <?=$icon?>"></i></td>
260 265
					<td>
261 266
						<?=strtolower($route['network'])?>
262 267
					</td>
......
298 303
		<?=gettext("Add")?>
299 304
	</a>
300 305
</nav>
306
<div class="infoblock">
307
<?php
308
print_info_box(
309
	sprintf(gettext('%1$s Route is inactive, gateway interface is missing'), '<br /><strong><i class="fa fa-times-circle-o"></i></strong>') .
310
	sprintf(gettext('%1$s Route disabled'), '<br /><strong><i class="fa fa-ban"></i></strong>') .
311
	sprintf(gettext('%1$s Route enabled'), '<br /><strong><i class="fa fa-check-circle-o"></i></strong>')
312
	);
313
?>
314
</div>
301 315
<?php
302 316

  
303 317
include("foot.inc");

Also available in: Unified diff