Skip to content

Commit

Permalink
show system type and coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
g5bot committed Sep 4, 2023
1 parent b831a2a commit a60633c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Module/Admin/View/Map/ShowSystem/ShowSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function handle(GameControllerInterface $game): void
sprintf(_('System %s editieren'), $system->getName())
);
$game->setPageTitle(_('Sektion anzeigen'));
$game->setTemplateVar('SYSTEM_ID', $system->getId());
$game->setTemplateVar('SYSTEM', $system);
$game->setTemplateVar('HEAD_ROW', range(1, $system->getMaxX()));
$game->setTemplateVar('MAP_FIELDS', $fields);
$game->setTemplateVar('PREVIOUS', $this->starSystemRepository->getPreviousStarSystem($system));
Expand Down
18 changes: 16 additions & 2 deletions src/html/admin/mapeditor_system.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,21 @@
{% endfor %}
</table>
</div>
<div style="margin-left: 10px; width: 100px; float: left">
<div style="margin-left: 10px; float: left">
<table class="tcal">
{% if SYSTEM.getMapField %}
<tr>
<td>System-Koordinaten</td>
<td style="text-align: right;">{{ SYSTEM.getMapField.getSectorString }}</td>
</tr>
{% endif %}
<tr>
<td>System-Typ</td>
<td style="text-align: right;">{{ SYSTEM.getType.getDescription }}</td>
</tr>
</table>
</div>
<div style="margin-left: 10px; margin-top: 10px; width: 100px; float: left">
<table class="tcal">
<tr>
<td>
Expand All @@ -32,7 +46,7 @@
x
{% endif %}
</td>
<td style="text-align: center;"><a href="/admin/?REGENERATE_SYSTEM=1&sysid={{ SYSTEM_ID }}"><img
<td style="text-align: center;"><a href="/admin/?REGENERATE_SYSTEM=1&sysid={{ SYSTEM.getId }}"><img
src="/assets/buttons/update1.png" title="System neu generieren" /></a></td>
<td style="text-align: right;">
{% if NEXT %}
Expand Down

0 comments on commit a60633c

Please sign in to comment.