mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	Fix instance current status update after action. Fix log related error.Some pep8 compatibility fix.
This commit is contained in:
		
							parent
							
								
									198c100524
								
							
						
					
					
						commit
						276097a44e
					
				
					 3 changed files with 21 additions and 28 deletions
				
			
		| 
						 | 
				
			
			@ -691,12 +691,12 @@
 | 
			
		|||
                                                                    <div class="col-sm-2">
 | 
			
		||||
                                                                        {% if media_iso and allow_admin_or_not_template %}
 | 
			
		||||
                                                                            <button type="submit" class="btn btn-sm btn-success pull-left" name="mount_iso" value="{{ cd.dev }}" style="margin-top: 2px;">{% trans "Mount" %}</button>
 | 
			
		||||
                                                                            {% if status == 5 %}
 | 
			
		||||
                                                                                <button type="submit" class="btn btn-sm btn-danger pull-left" title="Detach CD-Rom (remove device)" name="detach_cdrom" value="{{ cd.dev }}" style="margin-top: 2px;"><i class="glyphicon glyphicon-remove-circle"></i></button>
 | 
			
		||||
                                                                            {% endif %}
 | 
			
		||||
                                                                        {% else %}
 | 
			
		||||
                                                                            <button class="btn btn-sm btn-success pull-left disabled" style="margin-top: 2px;">{% trans "Mount" %}</button>
 | 
			
		||||
                                                                        {% endif %}
 | 
			
		||||
                                                                        {% if status == 5 and allow_admin_or_not_template %}
 | 
			
		||||
                                                                            <button type="submit" class="btn btn-sm btn-danger pull-left" title="Detach CD-Rom (remove device)" name="detach_cdrom" value="{{ cd.dev }}" style="margin-top: 2px;"><i class="glyphicon glyphicon-remove-circle"></i></button>
 | 
			
		||||
                                                                        {% endif %}
 | 
			
		||||
                                                                    </div>
 | 
			
		||||
                                                                {% else %}
 | 
			
		||||
                                                                    <div class="col-sm-6">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue