Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat(fleet): show whether a fleet is managed or not
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry authored and DIOHz0r committed May 17, 2018
1 parent 25fa7be commit d3d94ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions inc/fleet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public function showForm($ID, array $options = []) {
$this->getType(), -1);
$fields['name'] = Html::autocompletionTextField($this, 'name',
['value' => $objectName, 'display' => false]);
$fields['is_default'] = $fields['is_default'] ? __('No') : __('Yes');
$data = [
'withTemplate' => (isset($options['withtemplate']) && $options['withtemplate'] ? "*" : ""),
'fleet' => $fields,
Expand Down
6 changes: 6 additions & 0 deletions tpl/fleet.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
<td>
{{ fleet.name|raw }}
</td>
<td>
{{ __('Is managed', 'flyvemdm') }}{{ withTemplate }}
</td>
<td>
{{ fleet.is_default }}
</td>
</tr>

0 comments on commit d3d94ff

Please sign in to comment.