
{% include 'header.twig' %}
				<div class="paddingbody"></div>
		<div class="">			
			<div class="container-fluid container-fluid-spacious">
				<div class="row">
					<div class="col-md-12">
						<div id="main-page" class="well well-float table-responsive">
							<div class="">
								
								 {% if error %}
        <div class="alert alert-dismissible alert-danger">
          <button type="button" class="close" data-dismiss="alert">&times;</button>
          {{ errorText }}
        </div>
      {% endif %}
      {% if success %}
        <div class="alert alert-dismissible alert-success">
          <button type="button" class="close" data-dismiss="alert">&times;</button>
          {{ successText }}
        </div>
      {% endif %}
								
								<form method="post" action="account">
									<div class="form-group">
										    <label for="charge" class="control-label">{{ lang['account.password.current'] }}</label>
            <input type="password" class="form-control" value="" name="current_password">
          </div>

          <div class="form-group">
            <label for="charge" class="control-label">{{ lang['account.password.new'] }}</label>
            <input type="password" class="form-control" value="" name="password">
          </div>

          <div class="form-group">
            <label for="charge" class="control-label">{{ lang['account.password.confirm'] }}</label>
            <input type="password" class="form-control" value="" name="confirm_password">
          </div>
									<input type="hidden" name="password_reset" value="password_reset" >
									<button type="submit" class="btn btn-default m-b">Change password</button>
									<input type="hidden" name="_csrf"  value="64c35d0979e4b62cce7b0d9df5a7cf62_8dcd8b430d237cdf8c7c6b25869fab14" />
								</form>
								
								   
         <form method="post" action="account/timezone">

           <div class="form-group">
             <label for="charge" class="control-label">{{ lang['account.timezone.title'] }}</label>
             <select class="form-control" name="timezone">
                 {% for timezone in timezones %}
                 <option {% if timezone["timezone"] == user['timezone'] %} selected {% endif %} value="{{ timezone["timezone"] }}">{{ timezone["label"] }}</option>
                 {% endfor %}
             </select>
           </div>
									
									<input type="hidden" name="change_default_time_zone" value="change_default_time_zone" >
									<button type="submit" class="btn btn-default">Save</button>
									<input type="hidden" name="_csrf"  value="64c35d0979e4b62cce7b0d9df5a7cf62_8dcd8b430d237cdf8c7c6b25869fab14" />
								</form>
								
								<form method="post" action="account/newapikey">
          <div class="form-group">
            <label for="charge" class="control-label">API Link</label>
            <input type="text" class="form-control" value="{{ site['url'] }}/api/v2" readonly>
          </div>

          <div class="form-group">
            <label for="charge" class="control-label">API Key</label>
            <input type="text" class="form-control" value="{{ user['apikey'] }}" readonly>
          </div>
									<input type="hidden" name="api_reset" value="api_reset" >
									<button type="submit" class="btn btn-default">Generate new</button>
								</form>
								
							</div>
						</div>
						
					</div>
				</div>
			</div>
		</div>
{% include 'footer.twig' %}