Files
TravianZ/templates/sendUnits/catapultTargets.tpl
T
iopietro 0065cb3970 Additions
+Added the possibility to send units to another villages (spy,
reinforcement, normal attack and raid)
+Added the possibility to set the spying type and the catapult targets
+Some changes in the DB
2018-09-20 12:52:47 +02:00

17 lines
598 B
Smarty

{$groupNames = [$smarty.const.RESOURCES, $smarty.const.INFRASTRUCTURE, $smarty.const.MILITARY]}
<select name="{$targetName}" class="dropdown">
{if $randomTargetValue < 0}
<option value="{$randomTargetValue + 1}">-</option>
{/if}
<option value="{$randomTargetValue}">{$smarty.const.RANDOM}</option>
{foreach $groupNames as $type => $groupName}
{if !empty($catapultTargetBuildings[$type])}
<optgroup label="{$groupName}">
{foreach $catapultTargetBuildings[$type] as $building}
<option value="{$building.id}">{$building.name}</option>
{/foreach}
</optgroup>
{/if}
{/foreach}
</select>