As an admin I can change the VM ip using admin panel ,Fixed notification view count label, Fixed hosting company name on payment view, Added configuration in VM hosting page, Admin can changes the VM configuration using admin panel
This commit is contained in:
		
					parent
					
						
							
								a6eba4f536
							
						
					
				
			
			
				commit
				
					
						82ca7da20a
					
				
			
		
					 18 changed files with 165 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -53,7 +53,7 @@
 | 
			
		|||
                    <span class="icon-bar"></span>
 | 
			
		||||
                    <span class="icon-bar"></span>
 | 
			
		||||
                </button>
 | 
			
		||||
                <a class="navbar-brand topnav" href="#"><img src="{% static 'hosting/img/logo_black.svg' %}"></a>
 | 
			
		||||
                <a class="navbar-brand topnav" href="{% url 'ungleich_page:landing' %}"><img src="{% static 'hosting/img/logo_black.svg' %}"></a>
 | 
			
		||||
            </div>
 | 
			
		||||
            <!-- Collect the nav links, forms, and other content for toggling -->
 | 
			
		||||
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
 | 
			
		||||
| 
						 | 
				
			
			@ -161,6 +161,9 @@
 | 
			
		|||
    <!-- Bootstrap Core JavaScript -->
 | 
			
		||||
    <script src="{% static 'hosting/js/bootstrap.min.js' %}"></script>
 | 
			
		||||
 | 
			
		||||
    <!-- Init JavaScript -->
 | 
			
		||||
    <script src="{% static 'hosting/js/initial.js' %}"></script>
 | 
			
		||||
 | 
			
		||||
    <!-- Stripe Lib -->
 | 
			
		||||
    <script type="text/javascript" src="//js.stripe.com/v2/"></script>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,7 +11,7 @@
 | 
			
		|||
                <span class="icon-bar"></span>
 | 
			
		||||
                <span class="icon-bar"></span>
 | 
			
		||||
            </button>
 | 
			
		||||
            <a class="navbar-brand topnav" href="#"><img src="{% static 'hosting/img/logo_black.svg' %}"></a>
 | 
			
		||||
            <a class="navbar-brand topnav" href="{% url 'ungleich_page:landing' %}"><img src="{% static 'hosting/img/logo_black.svg' %}"></a>
 | 
			
		||||
        </div>
 | 
			
		||||
        <!-- Collect the nav links, forms, and other content for toggling -->
 | 
			
		||||
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,9 @@
 | 
			
		|||
              <form class="form-inline" method="POST" action="{{request.path}}">
 | 
			
		||||
                {% csrf_token %}
 | 
			
		||||
                <input type="hidden" name="hosting_company" value="{{vm.hosting_company}}">
 | 
			
		||||
                <input type="hidden" name="hosting_company_name" value="{{vm.hosting_company_name}}">
 | 
			
		||||
                <input type="hidden" name="location_code" value="{{vm.location_code}}">
 | 
			
		||||
                <input type="hidden" name="configuration_detail" value="{{configuration_detail}}">
 | 
			
		||||
                <input type="hidden" name="configuration" value="{{hosting}}">
 | 
			
		||||
                
 | 
			
		||||
                
 | 
			
		||||
                <ul class="pricing {% cycle 'p-red' 'p-black' 'p-red' 'p-yel' %}">
 | 
			
		||||
| 
						 | 
				
			
			@ -43,6 +45,15 @@
 | 
			
		|||
                      </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                  </li>
 | 
			
		||||
                  <li>
 | 
			
		||||
                    <!-- Single button -->
 | 
			
		||||
                    <div class="btn-group">
 | 
			
		||||
                      <div class="form-group">
 | 
			
		||||
                        <label for="cores">Configuration: </label>
 | 
			
		||||
                        {{configuration_detail}}
 | 
			
		||||
                      </div>
 | 
			
		||||
                    </div>
 | 
			
		||||
                  </li>
 | 
			
		||||
                  <li>
 | 
			
		||||
                    <!-- Single button -->
 | 
			
		||||
                    <div class="btn-group">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,12 @@
 | 
			
		|||
				          <ul class="nav nav-tabs tabs-left sideways">
 | 
			
		||||
				            <li  class="active">
 | 
			
		||||
				            	<a href="#unread-v" data-toggle="tab">
 | 
			
		||||
				            		Unread  <span class="badge">{{unread_notifications|length}}</span>
 | 
			
		||||
				            		Unread  
 | 
			
		||||
				            		{% if unread_notifications|length > 0%}
 | 
			
		||||
					            		<span class="badge">
 | 
			
		||||
					            			{{unread_notifications|length}}
 | 
			
		||||
					            		</span>
 | 
			
		||||
				            		{% endif %}
 | 
			
		||||
				            	</a>
 | 
			
		||||
				            </li>
 | 
			
		||||
				            <li>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,6 +50,8 @@
 | 
			
		|||
            <div class="content">
 | 
			
		||||
                <p><b>Type</b> <span class="pull-right">{{order.vm_plan.hosting_company_name}}</span></p>
 | 
			
		||||
                <hr>
 | 
			
		||||
                <p><b>Configuration</b> <span class="pull-right">{{order.vm_plan.get_configuration_display}}</span></p>
 | 
			
		||||
                <hr>
 | 
			
		||||
                <p><b>Cores</b> <span class="pull-right">{{order.vm_plan.cores}}</span></p>
 | 
			
		||||
                <hr>
 | 
			
		||||
                <p><b>Memory</b> <span class="pull-right">{{order.vm_plan.memory}} GiB</span></p>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -86,10 +86,12 @@
 | 
			
		|||
							<h3><b>Billing Amount</b></h3>
 | 
			
		||||
							<hr>
 | 
			
		||||
							<div class="content">
 | 
			
		||||
								<p><b>Type</b> <span class="pull-right">{{request.session.vm_specs.hosting_company_name}}</span></p>
 | 
			
		||||
								<p><b>Type</b> <span class="pull-right">{{request.session.vm_specs.location_code}}</span></p>
 | 
			
		||||
								<hr>
 | 
			
		||||
								<p><b>Cores</b> <span class="pull-right">{{request.session.vm_specs.cores}}</span></p>
 | 
			
		||||
								<hr>
 | 
			
		||||
								<p><b>Configuration</b> <span class="pull-right">{{request.session.vm_specs.configuration_detail}}</span></p>
 | 
			
		||||
								<hr>								
 | 
			
		||||
								<p><b>Memory</b> <span class="pull-right">{{request.session.vm_specs.memory}} GiB</span></p>
 | 
			
		||||
								<hr>
 | 
			
		||||
								<p><b>Disk space</b> <span class="pull-right">{{request.session.vm_specs.disk_size}} GiB</span></p>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,9 +42,27 @@
 | 
			
		|||
				          <div class="tab-content">
 | 
			
		||||
				            <div class="tab-pane active" id="settings-v">
 | 
			
		||||
				            	<div class="row">
 | 
			
		||||
									<div class="col-md-12">
 | 
			
		||||
									<div class="col-md-12 inline-headers">
 | 
			
		||||
									<h3>{{virtual_machine.hosting_company_name}}</h3>
 | 
			
		||||
 | 
			
		||||
										{% if virtual_machine.ip %}
 | 
			
		||||
											<div class="pull-right right-place">
 | 
			
		||||
												<button type="link" data-clipboard-text="{{virtual_machine.ip}}" id="copy_vm_id" class="to_copy btn btn-link"
 | 
			
		||||
													data-toggle="tooltip"  data-placement="bottom" title="Copied"  data-trigger="click">
 | 
			
		||||
														Ip: {{virtual_machine.ip}} <i class="fa fa-files-o" aria-hidden="true"></i> 
 | 
			
		||||
												</button>
 | 
			
		||||
											</div>
 | 
			
		||||
										{% else %}
 | 
			
		||||
 | 
			
		||||
											<div class="pull-right right-place">
 | 
			
		||||
												<span class="label label-warning"><strong>Ip not assigned yet</strong></span>
 | 
			
		||||
												<i data-toggle="tooltip"  title="Your ip will be assigned soon" class="fa fa-info-circle" aria-hidden="true"></i> 
 | 
			
		||||
											</div>
 | 
			
		||||
 | 
			
		||||
										{% endif %}
 | 
			
		||||
 | 
			
		||||
									<hr>
 | 
			
		||||
 | 
			
		||||
									</div>
 | 
			
		||||
				            	</div>
 | 
			
		||||
								<div class="row">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue