{block name=pages_checkout_subpageShipping}
    <div id="checkout-shipping" class="row">
        <div class="col col-sm-4 col-md-3">
            <div class="well shipping-address address">
                <p class="headline-underline clearfix">
                    {txt key=TEXT_SHIPPING_ADDRESS}
                    {if $shipping_address.allow_change == true && $shipping_address.address_class=='shipping'}
                    <a title="{txt key=TEXT_EDIT}" class="btn btn-xs btn-primary pull-right" href="{link page='customer' paction='edit_address' params='adType=shipping&abID' params_value=$shipping_address.address_book_id conn=SSL}">
                        <span class="glyphicon glyphicon-pencil"></span>
                        <span class="sr-only">{txt key=TEXT_EDIT}</span>
                    </a>
                    {/if}
                </p>
                {if $shipping_address.customers_company}<p>{$shipping_address.customers_company}</p>{/if}
	            <p>{if $shipping_address.customers_title}{$shipping_address.customers_title} {/if}{$shipping_address.customers_firstname} {$shipping_address.customers_lastname}</p>
                <p>{$shipping_address.customers_street_address}</p>
                {if $shipping_address.customers_suburb}</p>{$shipping_address.customers_suburb}</p>{/if}
                <p>{$shipping_address.customers_postcode} {$shipping_address.customers_city}</p>
                <p>{$shipping_address.customers_country}</p>
                <p><br /></p>
                {if $shipping_address.allow_change == true}
                    {if $address_data|@count > 2}
                        {form type=form role="form" name=shipping_address action='dynamic' link_params='page_action=shipping' method=post conn=SSL}
                        <div class="form-group">
                            <label for="address_data">{txt key=TEXT_SELECT_SHIPPING_ADDRESS}</label>
                            {form type=select class="form-control" id="address_data" name=adID value=$address_data default=$smarty.session.customer->customer_shipping_address.address_book_id params='onchange="this.form.submit();" data-style="btn-secondary"'}
                        </div>
                        {form type=hidden name=adType value=shipping}
                        {form type=hidden name=action value=select_address}
                        {form type=formend}
                    {/if}
                    {if $add_new_address eq 1}
                        <!--<p>{txt key=TEXT_NEW_SHIPPING_ADDRESS}</p>-->
                        <a class="btn btn-primary" href="{link page='customer' paction='edit_address' params='adType=shipping' conn=SSL}">
                            <span class="glyphicon glyphicon-plus"></span>
                            {txt key=BUTTON_ADD_ADDRESS}
                        </a>
                    {/if}
                {/if}
            </div>
        </div>
        <div class="col col-sm-8 col-md-9">
	        {box name=xt_delivery_date type=user}
            <h1>{txt key=TEXT_SELECT_SHIPPING_DESC}</h1>
            {form type=form name=shipping action='checkout' method=post conn=SSL}
            {form type=hidden name=action value=shipping}

            <ul class="list-group">
                {foreach name=aussen item=sdata key=kdata from=$shipping_data}
                    <li class="list-group-item clearfix list-group-item-{$kdata}">{$sdata.shipping}</li>
                {/foreach}
            </ul>

            <div class="clearfix">
                <a href="javascript:history.back();" class="btn btn-default pull-left">
                    <i class="fa fa-chevron-left"></i>
                    {txt key=BUTTON_BACK}
                </a>
                <button id="{$page_action}-submit" type="submit" class="btn btn-success pull-right">
                    <span class="glyphicon glyphicon-ok"></span>
                    {txt key=BUTTON_NEXT}
                </button>
            </div>

            {hook key=checkout_tpl_shipping}
            {form type=formend}
        </div>
    </div>
{/block}