{% include 'header.twig' %}

	<div class="paddingbody"></div>
		<div class="container-fluid container-fluid-spacious">
			<div class="row">
				
				<div class="col-md-12">
{% if error %}
      <div class="alert alert-dismissible alert-danger">
          <button type="button" class="close" data-dismiss="alert">×</button>
        {{ errorText }}
      </div>
    {% endif %}  

    {% if data["childpanel"]["success"] == 1 %}
      <div class="alert alert-dismissible alert-success">
          <strong> Order Id: </strong> {{ data['childpanel']['id'] }} <br>
          <strong> Service: </strong> {{ data['childpanel']['service'] }} <br>
          <strong> Domain: </strong> {{ data['childpanel']['link'] }} <br>
          <strong> Quantity: </strong> {{ data['childpanel']['quantity'] }} <br>
          <strong> Charge: </strong> {{ data['childpanel']['price'] }} <br>
      </div>
    {% endif %}
					<form action="child-panels" method="post" class="component_form_group" style="[childpanel-form_css]">
						
						<div class="">
							<div class="form-group">
								<label for="domain" class="control-label">Domain</label>
								<input type="text" class="form-control" id="domain" name="domain" value="">
							</div>
							<div class="component_alert_dns">
								<div class="">
		 <div class="alert alert-info " id="orderNote">
            <p class="help-block" style="margin-bottom: 5px">Please visit your registrar's dashboard to change nameservers to:</p><ul style="color: #737373; padding-left: 20px"><li>{{ site['ns1'] }}</li><li>{{ site['ns2'] }}</li></ul>        </div>
								</div>
							</div>
							<div class="form-group">
								<label class="control-label" for="createorderform-currency">Currency</label>
								<select id="createorderform-currency" class="form-control" name="currency" aria-required="true">
<option value="USD">United States Dollars (USD)</option>
<option value="INR">Indian Rupee (INR)</option>
								</select>
							</div>
							<div class="form-group">
								<label class="control-label" for="createorderform-username">Admin Username</label>
								<input type="text" id="createorderform-username" class="form-control" name="username" aria-required="true" value="">
							</div>
							<div class="form-group">
								<label class="control-label" for="createorderform-password">Admin Password</label>
								<input type="password" id="createorderform-password" class="form-control" name="password" aria-required="true">
							</div>
							<div class="form-group">
								<label class="control-label" for="createorderform-password_confirm">Confirm Password</label>
								<input type="password" id="createorderform-password_confirm" class="form-control" name="password_confirm" aria-required="true">
							</div>
							<div class="form-group">
								<label for="price" class="control-label">Price per month</label>
              <input type="text" class="form-control" value="{{ currency['symbol'] }}{{ (site['childpanel_price']*currency["value"]) }}" readonly>
							</div>
						</div>
							<div class="">
								<button class="btn btn-block btn-primary" type="submit">
								Submit order
								</button>
							</div>
						</div>
					</form>
					
					
				</div>
			</div>
			
			<br>
			
			<div class="row">
				<div class="col-md-12">
					<div class="table-bg component_table " style="display:none;">
						<div class="table-wr table-responsive ">
							<table class="table">
								<thead>
									<tr>
										<th>Domain</th>
										<th>Status</th>
										<th>Created</th>
										<th>Expiry</th>
										<th></th>
									</tr>
								</thead>
								<tbody>
									
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
		
{% include 'footer.twig' %}
