<xf:formrow label="{$event.settings.purchase_amount} {$currency.title}"
explain="{$event.settings.purchase_description}"
hint="{$event.cost_phrase}"
rowtype="input">
<div class="inputGroup">
<xf:if is="{{ count($event.settings.payment_profile_ids) > 1 }}">
<xf:select name="payment_profile_id">
<xf:option>{{ phrase('(choose_payment_method)') }}</xf:option>
<xf:foreach loop="$event.settings.payment_profile_ids" value="$profileId">
<xf:option value="{$profileId}" label="{$profiles.{$profileId}}" />
</xf:foreach>
</xf:select>
<span class="inputGroup-splitter"></span>
<xf:if is="$isGift">
<xf:button type="submit" icon="purchase">{{ phrase('dbtech_credits_gift_to_x', {'param1': $recipient.username}) }}</xf:button>
<xf:else />
<xf:button type="submit" icon="purchase" />
<xf:button href="{{ link('dbtech-credits/currency/gift-purchase', $currency, {'event_id': $event.event_id}) }}" icon="purchase">{{ phrase('dbtech_credits_gift') }}</xf:button>
</xf:if>
<xf:else />
<xf:if is="$isGift">
<xf:button type="submit" icon="purchase">{{ phrase('dbtech_credits_gift_to_x', {'param1': $recipient.username}) }}</xf:button>
<xf:else />
<xf:button type="submit" icon="purchase" />
<xf:button href="{{ link('dbtech-credits/currency/gift-purchase', $currency, {'event_id': $event.event_id}) }}" icon="purchase">{{ phrase('dbtech_credits_gift') }}</xf:button>
</xf:if>
<xf:hiddenval name="payment_profile_id">{$event.settings.payment_profile_ids|first}</xf:hiddenval>
</xf:if>
</div>
</xf:formrow>