|
@@ -301,7 +301,9 @@ class GenController {
|
|
|
$display = $this->snakeToTitleCase(substr($meth->name, 4));
|
|
|
$subLinks[] = "<a " .
|
|
|
"href='/{$controller->parentControllerName}/view/<?= \$record->uid ?>/{$meth->name}' " .
|
|
|
- "class='d-block p-3 py-2 border-bottom'>$display</a>";
|
|
|
+ "class='d-block p-3 py-2 border-bottom " .
|
|
|
+ "{{ request()->route()->getActionMethod() === '{$meth->name}' ? 'bg-secondary text-white' : '' }}"
|
|
|
+ . "'>$display</a>";
|
|
|
}
|
|
|
file_put_contents($subLinksView, implode("\n", $subLinks));
|
|
|
// echo "Generated " . $subLinksView . "\n";
|
|
@@ -316,7 +318,7 @@ class GenController {
|
|
|
$display = $this->camelToTitleCase(substr($meth->name, 7));
|
|
|
$actionLinks[] = "<a " .
|
|
|
"href='/{$controller->parentControllerName}/view/<?= \$record->uid ?>/{$meth->name}' " .
|
|
|
- "class='d-block btn btn-sm btn-default m-3'>$display</a>";
|
|
|
+ "class='d-block btn btn-sm btn-default mb-3'>$display</a>";
|
|
|
}
|
|
|
file_put_contents($actionLinksView, implode("\n", $actionLinks));
|
|
|
// echo "Generated " . $actionLinksView . "\n";
|