﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:template match="/">
          <xsl:variable name="BrandID" select="normalize-space(AjaxRequest/Params/BrandID)"/>
          <xsl:variable name="HostName" select="normalize-space(AjaxRequest/HostName)"/>
          <xsl:variable name="TemplateRL" select="normalize-space(AjaxRequest/TemplateURL)"/>
          <center>
               <div style="text-align:right;margin-top:-15px; margin-right:5px;">
                    <span class="link" onClick='Brand_CloseBrandTab("divAddBrandLocation", "divTextBoxLocationsTab");'>[ X ]</span>
               </div>
               <table class="tableMaster" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                         <td style="padding-left: 5px;" rowspan="14"></td>
                         <td>
                              <div id ="divResult"></div>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <span class="labelFormFields lineHeight">Location Name</span>
                         </td>
                         <td>
                              <input type="text" id="txtLocationName" class="text" style="margin-bottom:5px;"
                                           maxlength="50"></input>
                              <!--<span id ="span_tab_ErrorMessage" class="labelError" style="display:none;">*</span>-->
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <span class="labelFormFields lineHeight">Address 1</span>
                         </td>
                         <td>
                              <input type="text" id="txtAddress1" class="text" style="margin-bottom:5px;"
                                            maxlength="50"></input>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <span class="labelFormFields lineHeight">Address 2</span>
                         </td>
                         <td>
                              <input type="text" id="txtAddress2" class="text" style="margin-bottom:5px;"
                                           maxlength="50"></input>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <span class="labelFormFields lineHeight">City</span>
                         </td>
                         <td>
                              <input type="text" id="txtCity" class="text" style="margin-bottom:5px;"
                                            maxlength="50"></input>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <span class="labelFormFields lineHeight">State</span>
                         </td>
                         <td>
                              <input type="text" id="txtState" class="text" style="margin-bottom:5px;"
                                            maxlength="50"></input>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <span class="labelFormFields lineHeight">Postal Code</span>
                         </td>
                         <td>
                              <input type="text" id="txtPostalCode" class="text" style="margin-bottom:5px;"
                                           maxlength="50"></input>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <span class="labelFormFields lineHeight">Primary Phone</span>
                         </td>
                         <td>
                              <input type="text" id="txtPrimaryPhone" class="text" style="margin-bottom:5px;"
                                           maxlength="50"></input>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <span class="labelFormFields lineHeight">Country</span>
                         </td>
                         <td>
                              <input type="text" id="txtCountry" class="text" style="margin-bottom:5px;"
                                           maxlength="50"></input>
                         </td>
                    </tr>
                    <tr>
                         <td style="padding-top: 10px; padding-bottom: 10px;">
                            <input type="button" value="Save" class="button"  tabindex="5"
                                     onClick='return Brand_SaveBrandLocation("{$BrandID}", "divResult","txtLocationName","txtAddress1",
                                   "txtAddress2","txtCity","txtState","txtPostalCode","txtPrimaryPhone", "txtCountry");'/>
                              <input type="button" value="Cancel" class="button"  tabindex="5" style="margin-left:10px;"
                                     onClick='Brand_CloseBrandTab("divAddBrandLocation", "divTextBoxLocationsTab");'/>
                         </td>
                         <td></td>
                    </tr>
               </table>
          </center>
     </xsl:template>
</xsl:stylesheet>
