{% include 'header.twig' %}

       
<!-- Main variables *content* -->
		<main id="content">
		<div class="container">
<div class="container">
                <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <div class="well">
                     {% 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">
                    <div class="row">
                        <div class="col-md-12">
                                                    </div>
                        <div class="col-md-6">
                            <div class="first">
                                <div class="form-group">
                                    <label for="domain" class="control-label">Domain</label>
                                    <input type="text" class="form-control" id="domain" name="panel_domain"
                                            value="">
                                </div>
                                <div class="alert alert-info dns_info">
                                    <br>
                                    <div>Please change nameservers to:</div>
                                    <ul style="padding-left: 20px">
                                                                                    <li>{{ site['ns1'] }}</li>
                                                                                    <li>{{ site['ns2'] }}</li>
                                                                            </ul>
                                </div>
                            </div>
                            <div class="form-group mt-1">
                                <label class="control-label"
                                        for="createorderform-currency">Currency</label>
                                 <select class="form-control" name="panel_currency" required>
{{ child_panel_currencies }}
</select>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="control-label"
                                        for="createorderform-username">Admin username</label>
                                <input
                                        type="text" id="createorderform-username" class="form-control"
                                        name="admin_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="admin_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="admin_confirm_password" 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="{{site_base_currency_symbol}}{{" "}}{{site["childpanel_price"]}}" disabled>
                            </div>
                            
                        </div>
                        <div class="col-md-12">
                            <button type="submit" class="btn btn-primary w-100">Submit order</button>
                        </div>
                    </div>
                    </form>
                                    </div>
            </div>
        </div>
    </div>
</div>

            </div>
        </div>
    </div>
</div>
</div>
                </div>
            </div>
        </main>
          
    
{% include 'footer.twig' %}
