{if file_exists("templates/orderforms/$carttpl/includes/viewcart/overwrites/form-domain-details.tpl")}
    {include file="templates/orderforms/$carttpl/includes/viewcart/overwrites/form-domain-details.tpl"}
{else}
    {if $domainsinorder}
        <div class="section">
            <div class="section-header">
                <h2 class="section-title">{$LANG.domainregistrantinfo}</h2>
            </div>
            <div class="section-body">
                <div class="panel panel-form m-b-0">
                    <div class="panel-body">
                        <div class="section">
                            <p>{$LANG.orderForm.domainAlternativeContact}</p>
                            <label for="inputDomainContact" class="sr-only">Contact</label>
                            <select name="contact" id="inputDomainContact" class="form-control {if $contact eq "addingnew"}m-b-40{/if}">
                                <option value="">{$LANG.usedefaultcontact}</option>
                                {foreach $domaincontacts as $domcontact}
                                    <option value="{$domcontact.id}" {if $contact==$domcontact.id} selected{/if}>
                                        {$domcontact.name}
                                    </option>
                                {/foreach}
                                <option value="addingnew" {if $contact=="addingnew" } selected{/if}>
                                    {$LANG.clientareanavaddcontact}...
                                </option>
                            </select>
                        </div>
                        <div class="section {if $contact neq "addingnew"} hidden{/if}" id="domainRegistrantInputFields">
                            <h6>{$LANG.orderForm.personalInformation}</h6>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCFirstName" class="control-label">
                                            {$LANG.orderForm.firstName}
                                        </label>
                                        <input type="text" name="domaincontactfirstname" maxlength="50" id="inputDCFirstName" class="form-control" value="{$domaincontact.firstname}">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCLastName" class="control-label">
                                            {$LANG.orderForm.lastName}
                                        </label>
                                        <input type="text" name="domaincontactlastname" maxlength="50" id="inputDCLastName" class="form-control" value="{$domaincontact.lastname}">
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCEmail" class="control-label">
                                            {$LANG.orderForm.emailAddress}
                                        </label>
                                        <input type="email" name="domaincontactemail" id="inputDCEmail" class="form-control" value="{$domaincontact.email}">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCPhone" class="control-label">
                                            {$LANG.orderForm.phoneNumber}
                                        </label>
                                        <input type="tel" name="domaincontactphonenumber" id="inputDCPhone" class="form-control" value="{$domaincontact.phonenumber}">
                                    </div>
                                </div>
                            </div>
                            <h6 class="m-t-2x">{$LANG.orderForm.billingAddress}</h6>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCCompanyName" class="control-label">
                                            {$LANG.orderForm.companyName} ({$LANG.orderForm.optional})
                                        </label>
                                        <input type="text" name="domaincontactcompanyname" id="inputDCCompanyName" class="form-control" value="{$domaincontact.companyname}">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCTaxId">
                                            {$taxLabel} ({$LANG.orderForm.optional})
                                        </label>
                                        <input type="text" name="domaincontacttax_id" id="inputDCTaxId" class="form-control" value="{$domaincontact.tax_id}" autocomplete="off">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCAddress1" class="control-label">
                                            {$LANG.orderForm.streetAddress}
                                        </label>
                                        <input type="text" name="domaincontactaddress1" id="inputDCAddress1" class="form-control" value="{$domaincontact.address1}">
                                    </div>
                                </div>

                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCAddress2" class="control-label">
                                            {$LANG.orderForm.streetAddress2}
                                        </label>
                                        <input type="text" name="domaincontactaddress2" id="inputDCAddress2" class="form-control" value="{$domaincontact.address2}">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCCity" class="control-label">
                                            {$LANG.orderForm.city}
                                        </label>
                                        <input type="text" name="domaincontactcity" id="inputDCCity" class="form-control" value="{$domaincontact.city}">
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputDCPostcode" class="control-label">{$LANG.orderForm.country}</label>
                                        <select name="domaincontactcountry" id="inputDCCountry" class="form-control">
                                            {foreach $countries as $countrycode => $countrylabel}
                                                <option value="{$countrycode}" {if (!$domaincontact.country && $countrycode==$defaultcountry) || $countrycode eq $domaincontact.country} selected{/if}>
                                                    {$countrylabel}
                                                </option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="row">
                                        <div class="col-sm-6">
                                            <div class="form-group">
                                                <label for="inputDCState" class="control-label">
                                                    {$LANG.orderForm.state}
                                                </label>
                                                <input type="text" name="domaincontactstate" id="inputDCState" class="form-control" value="{$domaincontact.state}">
                                            </div>
                                        </div>
                                        <div class="col-sm-6">
                                            <div class="form-group">
                                                <label for="inputDCPostcode" class="control-label">
                                                    {$LANG.orderForm.postcode}
                                                </label>
                                                <input type="text" name="domaincontactpostcode" id="inputDCPostcode" class="form-control" value="{$domaincontact.postcode}">
                                            </div>
                                        </div>
                                    </div>
                                </div>                                
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    {/if}
{/if}