<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" class="no-js" ng-app="myapp">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{$language.lblAccountinfo} : {$language.lblAddress}</title>
    <meta name="viewport" content="width=device-width">
    <meta name="Description" content="{$commonMetaDescription}" />
    <meta name="Keywords" content="{$commonMetaKeywords}" />
    {include file='CommonStyles.tpl'}
    <link href="{$view_styles}/myaccount.css" rel="stylesheet" type="text/css" media="screen" />
    {include file='CommonJavaScript.tpl'}
    {form->rootpath_script}
    {form->basepath_script}
    {include file='TheamingStyles.tpl'}
  </head>
  <body ng-controller="SearchCtrl"> 
      {*<!-- Begin : Outer Pane -->*}
    <div id="main" class="outer">
    {*<!-- Begin : Header--> *}
    {include file='CommonTop.tpl'} 
    {*<!-- End : Header --> *}
    {*<!-- Begin : Content Pane -->*}
    <div id="content-wrapper" ng-show="!query">
        <h4 class="side-head bg-primary padding text-center">{html->anchor href="user/accounts" caption="{$language.lblBack}" class="light pull-left back  icon-arrow-left"}{$language.lblAddress} </h4>
      <div class="container">
         <div class="right-panel light-bg margin-top">
          {*<!-- Begin : Content Pane --> *}
          {form->start name="formaddress" method="post" enctype="multipart/form-data"}                      
          {form->hidden name="userID"}
          {form->hidden name="cityhidValue"}  
          <fieldset class="form1">
            <div class="clearfix">
              
              <div id="common_message" ></div>
              <div class="margin-top">
                <div class="form-group row">
                  <label class="col-xs-12 col-sm-4"> {$language.lblAddress1}<span class="mndty">*</span> : </label>
                  <div class="col-xs-12 col-sm-5"> {form->textbox  tabindex="1" class="form-control" maxlength="100" name="userAdress1" validate="required" error=$language.errAddress1 validate_event="submit"} </div>
                </div>
                <div class="form-group row">
                  <label class="col-xs-12 col-sm-4"> {$language.lblAddress2} : </label>
                  <div class="col-xs-12 col-sm-5"> {form->textbox  tabindex="2"  class="form-control" maxlength="100" name="userAdress2"} </div>
                </div>
                <div class="form-group row">
                  <label class="col-xs-12 col-sm-4"> {$language.lblPhoneNo} : </label>
                  <div class="col-xs-12 col-sm-5"> {form->textbox tabindex="3" class="form-control" maxlength="20" name="userPhone"} </div>
                </div>
               {* <div class="form-group row">
                  <label class="col-xs-12 col-sm-4"> {$language.lblCity} <span class="mndty">*</span> : </label>
                  <div class="col-xs-12 col-sm-5"> {form->textbox   class="form-control" maxlength="70" name="userCity"  tabindex="4"  validate="required" error=$language.errCityName validate_event="submit"} </div>
                </div>*}
                <div class="form-group row">
                  <label class="col-xs-12 col-sm-4"> {$language.lblCountry} <span class="mndty">*</span> : </label>
                  <div class="col-xs-12 col-sm-5"> {form->select tabindex="5" options=$resCountry   class="form-control"  onchange="listCities(this.value,'');" name="countryID" caption="->Select" validate="required" error=$language.errCountry validate_event="submit"} </div>
                </div>
                <div class="form-group row">
                  <label class="col-xs-12 col-sm-4"> {$language.lblCity}<span class="mndty">*</span> : </label>
                  <div class="col-xs-12 col-sm-5"> <span id="cityInput" style="display:none"> {assign var="class" value="choosen"}{form->select  tabindex="6" class="{$class} form-control" validate="citySelectedType->isequal->city~userCity->required" error=$language.errCityName name="userCity" options="->"|cat:$language.lblSelect  onchange="getCityHiddenValue(this.value);" validate_event="submit"} </span> <span id="cityProvinceInput" > {form->textbox validate="required" name="userProvince" tabindex="7"  maxlength="70" class="form-control" validate="citySelectedType->isequal->province~*userProvince->required"   error=$language.errProvince} </span><span id="loadProcessImage"></span> {form->hidden id="citySelectedType"  name="citySelectedType" value="province" validate_event="submit"}  </div>
                </div>
                <div class="form-group row">
                  <label class="col-xs-12 col-sm-4"> {$language.lblZipPostalCode} <span class="mndty">*</span> : </label>
                  <div class="col-xs-12 col-sm-5"> {form->textbox  tabindex="8" class="form-control" maxlength="20" name="userZip" validate="required" error=$language.errZipCode validate_event="submit"} </div>
                </div>
                <div class="form-group row">
                  <div class="field col-xs-12 visible-xs">{form->submit tabindex="9" name="submit" id="submit" class="btn btn-primary btn-block" form="formaddress" value=$language.lblSaveChanges}</div>
                  
                  <div class="field col-sm-8 col-sm-offset-4 hidden-xs">{form->submit tabindex="9" name="submit" id="submit" class="btn btn-primary btn-sm" form="formaddress" value=$language.lblSaveChanges}</div>
                </div>
              </div>
          </fieldset>
          {form->close} 
          {*<!-- End : Content Pane --> *}
            </div>
        </div>
      </div>
      {*<!-- End : Content Pane --> *}
      {*<!-- Begin : Footer	Pane --> *}
      {include file='CommonBottom.tpl'} 
        {*<!-- End : Footer Pane --> *}
    </div>
   {* <!-- End : Outer Pane --> *}
    {html->messages_script id="common_message"}
    {include file='CommonJavaScriptBottom.tpl'} 
	{html->script src="{$common_js}/chosen.pluggin.js"}
      {html->script_group_start name="{$compiled_js_path}/account.address.js"}
        {html->script src="{$common_frontend_js}/signup.page.js"}
      {html->script_group_end} 
    <script type="text/javascript">
      var lblSelect = '{$language.lblSelect}';
      var errSelectCity = '{$language.errSelectCity}';
    </script> 
    {form->validate_script form="formaddress"}
  </body>
</html>
