Leitgedanken/msd2/myoos/templates/phoenix/page/checkout_payment_address.html
2023-01-23 11:03:31 +01:00

158 lines
5.6 KiB
HTML

{include file="phoenix/system/_header.html"}
{include file="phoenix/system/_breadcrumbs.html"}
{if $message}
{foreach $message as $info}
{include file="phoenix/system/_message.html"}
{/foreach}
{/if}
<section class="mainContent clearfix stepsWrapper">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="innerWrapper clearfix stepsPage">
<div class="row progress-wizard" style="border-bottom:0;">
<div class="col-md-3 progress-wizard-step complete fullBar">
<div class="text-center progress-wizard-stepnum">{$lang.checkout_bar_delivery}</div>
<div class="progress"><div class="progress-bar"></div></div>
<a href="{html_href_link content=$filename.checkout_shipping}" class="progress-wizard-dot"></a>
</div>
<div class="col-md-3 progress-wizard-step active">
<div class="text-center progress-wizard-stepnum">{$lang.checkout_bar_payment}</div>
<div class="progress"><div class="progress-bar"></div></div>
<a href="{html_href_link content=$filename.checkout_payment}" class="progress-wizard-dot"></a>
</div>
<div class="col-md-3 progress-wizard-step disabled">
<div class="text-center progress-wizard-stepnum">{$lang.checkout_bar_confirmation}</div>
<div class="progress"><div class="progress-bar"></div></div>
<div class="progress-wizard-dot"></div>
</div>
<div class="col-md-3 progress-wizard-step disabled">
<div class="text-center progress-wizard-stepnum">{$lang.checkout_bar_finished}</div>
<div class="progress"><div class="progress-bar"></div></div>
<div class="progress-wizard-dot"></div>
</div>
</div>
<form name="checkout_address" action="{html_get_link}" method="POST" role="form" onSubmit="return check_form();">
<input type="hidden" name="content" value="{$filename.checkout_payment_address}">
<input type="hidden" name="action" value="submit">
{if $mySystem.sed}
<input type="hidden" name="{$mySystem.session_name}" value="{$mySystem.session_id}">
<input type="hidden" name="formid" value="{$mySystem.formid}">
{/if}
{if $process eq true}
<div class="alert alert-danger" role="alert">
<h4 class="alert-heading">{$lang.table_heading_new_payment_address_problem}</h4>
<p>{$lang.text_new_payment_address_problem}</p>
</div>
{/if}
{if $process eq false}
<div class="page-header">
<h4>{$lang.table_heading_payment_address}</h4>
</div>
<div class="row payment-info">
<div class="col-10">
<p>{$lang.text_selected_payment_destination}</p>
</div>
<div class="col-2">
<h5>{$lang.title_payment_address}</h5>
<address>
{oos_address_label customers_id=$smarty.session.customer_id address_id=$smarty.session.billto}
</address>
</div>
</div>
<hr />
{if $addresses_count > 0}
<div class="page-header">
<h4>{$lang.table_heading_address_book_entries}</h4>
</div>
<div class="row payment-info">
<div class="col-10">
<p>{$lang.text_select_other_payment_destination}</p>
</div>
<div class="col-2">
<strong>{$lang.title_please_select}</strong>
</div>
</div>
<div class="table-responsive">
<table class="table">
<tbody>
{foreach item=addresses from=$addresses_array}
<tr>
<td><strong>{$addresses.firstname} {$addresses.lastname}</strong></td>
<td align="right">
<div class="form-check">
{if $addresses.address_book_id eq $smarty.session.billto }
<input class="form-check-input" type="radio" name="address" id="address" value="{$addresses.address_book_id}" checked>
{else}
<input class="form-check-input" type="radio" name="address" id="address" value="{$addresses.address_book_id}">
{/if}
</div>
</td>
</tr>
<tr>
<td colspan="2"><address>{$addresses.address}</address></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<button type="submit" class="btn btn-primary float-right"><i class="fa fa-check" aria-hidden="true"></i> {$lang.button_continue}</button>
{/if}
{/if}
{if $addresses_count < $smarty.const.MAX_ADDRESS_BOOK_ENTRIES }
<!-- checkout new address -->
<fieldset id="shipping" class="mt-80">
<h4>{$lang.table_heading_new_payment_address}</h4>
<p>{$lang.text_create_new_payment_address}</p>
<hr />
{include file="phoenix/modules/checkout_new_address.html"}
</fieldset>
<!-- /checkout new address -->
{/if}
<div class="col-md-12">
<div class="well well-lg clearfix">
<ul class="pager">
<li class="previous float-left">
{if $process eq true}
<a href="{html_href_link content=$filename.checkout_payment_address}" class="btn btn-secondary btn-default float-left" role="button">{$lang.button_back}</a>
{else}
<strong>{$lang.title_continue_checkout_procedure}</strong><br>{$lang.text_continue_checkout_procedure}
{/if}
</li>
<li class="next"><button class="btn btn-primary btn-default float-right" type="submit">{$lang.button_continue} <i class="fa fa-angle-right" aria-hidden="true"></i></button></li>
</ul>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
{include file="phoenix/system/_footer.html"}