rearranging text
This commit is contained in:
		
					parent
					
						
							
								dd77f40707
							
						
					
				
			
			
				commit
				
					
						6dfbf67d7d
					
				
			
		
					 2 changed files with 79 additions and 70 deletions
				
			
		| 
						 | 
				
			
			@ -23,41 +23,40 @@
 | 
			
		|||
                <button class="btn-plain"><img src="{% static 'hosting/img/icon-print.svg' %}" class="svg-img"></button>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="invoice-title">
 | 
			
		||||
            <h3>
 | 
			
		||||
                {% trans "Order #"%} {{order.id}}
 | 
			
		||||
            </h3>
 | 
			
		||||
        <div class="order-details">
 | 
			
		||||
            {% if order %}
 | 
			
		||||
                <div>
 | 
			
		||||
                    <strong>{% trans "Order #"%} {{order.id}}</strong>
 | 
			
		||||
                </div>
 | 
			
		||||
        <div class="row">
 | 
			
		||||
            <div class="col-xs-12 col-md-6 pull-right order-confirm-date">
 | 
			
		||||
                <address>
 | 
			
		||||
                    <strong>{% trans "Date"%}:</strong><br>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
            <div>
 | 
			
		||||
                <strong>{% trans "Invoice Date"%}:</strong>
 | 
			
		||||
                <span id="order-created_at">
 | 
			
		||||
                    {% if order %}
 | 
			
		||||
                        {{order.created_at|date:'Y-m-d H:i'}}
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                        {% now "Y-m-d H:i" %}
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                        </span><br><br>
 | 
			
		||||
                    {% if order %}
 | 
			
		||||
                    <strong>{% trans "Status:"%}</strong><br>
 | 
			
		||||
                    {% if order.status == 'Approved' %}
 | 
			
		||||
                    <strong class="text-success">
 | 
			
		||||
                        {% trans "Approved" %}
 | 
			
		||||
                    </strong>
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                    <strong class="text-danger">
 | 
			
		||||
                        {% trans "Declined" %}
 | 
			
		||||
                    </strong>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    <br><br>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </address>
 | 
			
		||||
 | 
			
		||||
                </span>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="col-xs-12 col-md-6">
 | 
			
		||||
            {% if order %}
 | 
			
		||||
 | 
			
		||||
            {% endif %}
 | 
			
		||||
            <div>
 | 
			
		||||
                <strong>{% trans "Status" %}: </strong>
 | 
			
		||||
                <strong>
 | 
			
		||||
                    {% if order.status == 'Approved' %}
 | 
			
		||||
                        <span class="vm-status-active">{% trans "Approved" %}</span>
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                        <span class="vm-status-failed">{% trans "Declined" %}</span>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </strong>
 | 
			
		||||
            </div>
 | 
			
		||||
            <hr>
 | 
			
		||||
            <div>
 | 
			
		||||
                <address>
 | 
			
		||||
                    <h3><b>{% trans "Billed To:"%}</b></h3>
 | 
			
		||||
                    <h4>{% trans "Billed to" %}:</h4>
 | 
			
		||||
                    <div>
 | 
			
		||||
                        {% if order %}
 | 
			
		||||
                            {{user.name}}<br>
 | 
			
		||||
                            {{order.billing_address.street_address}},{{order.billing_address.postal_code}}<br>
 | 
			
		||||
| 
						 | 
				
			
			@ -72,14 +71,13 @@
 | 
			
		|||
                            {{billing_address.country}}.
 | 
			
		||||
                            {% endwith %}
 | 
			
		||||
                        {% endif %}
 | 
			
		||||
                    </div>
 | 
			
		||||
                </address>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="row">
 | 
			
		||||
            <div class="col-xs-6">
 | 
			
		||||
                <address>
 | 
			
		||||
                    <strong>{% trans "Payment Method:"%}</strong><br>
 | 
			
		||||
            <hr>
 | 
			
		||||
            <div>
 | 
			
		||||
                <h4>{% trans "Payment method" %}:</h4>
 | 
			
		||||
                <div>
 | 
			
		||||
                    {% if order %}
 | 
			
		||||
                        {{order.cc_brand}} {% trans "ending in" %} ****
 | 
			
		||||
                        {{order.last4}}<br>
 | 
			
		||||
| 
						 | 
				
			
			@ -89,15 +87,24 @@
 | 
			
		|||
                        {{cc_last4}}<br>
 | 
			
		||||
                        {{request.session.user.email}}
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                </address>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div>
 | 
			
		||||
                <h4>{% trans "Order summary"%}</h4>
 | 
			
		||||
                <div>
 | 
			
		||||
                    {% if request.session.specs %}
 | 
			
		||||
                        {% request.session.specs as vm %}
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    <strong>{% trans "Product" %}:</strong> {{request.session.template.name}}
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
        <h3><b>{% trans "Order summary"%}</b></h3>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <h3><b></b></h3>
 | 
			
		||||
        <hr>
 | 
			
		||||
        <div class="content">
 | 
			
		||||
            {% if request.session.specs %}
 | 
			
		||||
            {% with request.session.specs as vm %}
 | 
			
		||||
 | 
			
		||||
            <p><b>{% trans "Cores"%}</b>
 | 
			
		||||
                <span class="pull-right">{{vm.cpu}}</span>
 | 
			
		||||
            </p>
 | 
			
		||||
| 
						 | 
				
			
			@ -195,7 +202,7 @@
 | 
			
		|||
 | 
			
		||||
<script type="text/javascript">
 | 
			
		||||
    {% trans "Some problem encountered. Please try again later." as err_msg %}
 | 
			
		||||
    var create_vm_error_message = '{{err_msg|safe}}.';
 | 
			
		||||
    var create_vm_error_message = '{{err_msg|safe}}';
 | 
			
		||||
 | 
			
		||||
    window.onload = function () {
 | 
			
		||||
        var locale_date = moment.utc(document.getElementById("order-created_at").textContent, 'YYYY-MM-DD HH:mm').toDate();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,13 +41,15 @@
 | 
			
		|||
                        <td data-header="IPv6">{{vm.ipv6}}</td>
 | 
			
		||||
                    {% endif %}
 | 
			
		||||
                    <td data-header="{% trans 'Status' %}">
 | 
			
		||||
                        <strong>
 | 
			
		||||
                            {% if vm.state == 'ACTIVE' %}
 | 
			
		||||
                            <span class="vm-status-active"><strong>{{vm.state|title}}</strong></span>
 | 
			
		||||
                                <span class="vm-status-active">{{vm.state|title}}</span>
 | 
			
		||||
                            {% elif  vm.state == 'FAILED' %}
 | 
			
		||||
                            <span class="vm-status-failed"><strong>{{vm.state|title}}</strong></span>
 | 
			
		||||
                                <span class="vm-status-failed">{{vm.state|title}}</span>
 | 
			
		||||
                            {% else %}
 | 
			
		||||
                            <span class="vm-status"><strong>{{vm.state|title}}</strong></span>
 | 
			
		||||
                                <span class="vm-status">{{vm.state|title}}</span>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </strong>
 | 
			
		||||
                    </td>
 | 
			
		||||
                    <td class="text-right last-td">
 | 
			
		||||
                        <a class="btn btn-vm-detail" href="{% url 'hosting:virtual_machines' vm.vm_id %}">{% trans "View Detail" %}</a>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue