| 
									
										
										
										
											2017-04-13 15:09:08 -04:00
										 |  |  | <tr class="consoleserverport{% if csp.connected_console and not csp.connected_console.connection_status %} info{% endif %}"> | 
					
						
							| 
									
										
										
										
											2017-11-03 16:58:56 -04:00
										 |  |  |     {% if perms.dcim.change_consoleserverport or perms.dcim.delete_consoleserverport %} | 
					
						
							| 
									
										
										
										
											2016-07-26 10:14:51 -04:00
										 |  |  |         <td class="pk"> | 
					
						
							|  |  |  |             <input name="pk" type="checkbox" value="{{ csp.pk }}" /> | 
					
						
							|  |  |  |         </td> | 
					
						
							|  |  |  |     {% endif %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |     <td> | 
					
						
							| 
									
										
										
										
											2017-10-26 09:24:39 -07:00
										 |  |  |         <i class="fa fa-fw fa-keyboard-o"></i> {{ csp }} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |     </td> | 
					
						
							|  |  |  |     {% if csp.connected_console %} | 
					
						
							|  |  |  |         <td> | 
					
						
							|  |  |  |             <a href="{% url 'dcim:device' pk=csp.connected_console.device.pk %}">{{ csp.connected_console.device }}</a> | 
					
						
							|  |  |  |         </td> | 
					
						
							|  |  |  |         <td> | 
					
						
							| 
									
										
										
										
											2017-11-02 08:51:27 -07:00
										 |  |  |             {{ csp.connected_console }} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |         </td> | 
					
						
							|  |  |  |     {% else %} | 
					
						
							| 
									
										
										
										
											2016-07-06 16:01:18 -04:00
										 |  |  |         <td colspan="2"> | 
					
						
							|  |  |  |             <span class="text-muted">Not connected</span> | 
					
						
							|  |  |  |         </td> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |     {% endif %} | 
					
						
							| 
									
										
										
										
											2017-11-03 16:58:56 -04:00
										 |  |  |     <td class="text-right"> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |         {% if perms.dcim.change_consoleserverport %} | 
					
						
							|  |  |  |             {% if csp.connected_console %} | 
					
						
							|  |  |  |                 {% if csp.connected_console.connection_status %} | 
					
						
							| 
									
										
										
										
											2017-06-16 10:01:47 -04:00
										 |  |  |                     <a href="#" class="btn btn-warning btn-xs consoleport-toggle connected" title="Mark planned" data="{{ csp.connected_console.pk }}"> | 
					
						
							|  |  |  |                         <i class="glyphicon glyphicon-ban-circle" aria-hidden="true"></i> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                     </a> | 
					
						
							|  |  |  |                 {% else %} | 
					
						
							| 
									
										
										
										
											2017-06-16 10:01:47 -04:00
										 |  |  |                     <a href="#" class="btn btn-success btn-xs consoleport-toggle" title="Mark installed" data="{{ csp.connected_console.pk }}"> | 
					
						
							|  |  |  |                         <i class="fa fa-plug" aria-hidden="true"></i> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                     </a> | 
					
						
							|  |  |  |                 {% endif %} | 
					
						
							| 
									
										
										
										
											2017-06-16 10:01:47 -04:00
										 |  |  |                 <a href="{% url 'dcim:consoleserverport_disconnect' pk=csp.pk %}" title="Delete connection" class="btn btn-danger btn-xs"> | 
					
						
							|  |  |  |                     <i class="glyphicon glyphicon-resize-full" aria-hidden="true"></i> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                 </a> | 
					
						
							|  |  |  |             {% else %} | 
					
						
							| 
									
										
										
										
											2017-06-16 10:01:47 -04:00
										 |  |  |                 <a href="{% url 'dcim:consoleserverport_connect' pk=csp.pk %}" title="Connect" class="btn btn-success btn-xs"> | 
					
						
							|  |  |  |                     <i class="glyphicon glyphicon-resize-small" aria-hidden="true"></i> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                 </a> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							| 
									
										
										
										
											2017-06-16 10:01:47 -04:00
										 |  |  |             <a href="{% url 'dcim:consoleserverport_edit' pk=csp.pk %}" title="Edit port" class="btn btn-info btn-xs"> | 
					
						
							|  |  |  |                 <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |             </a> | 
					
						
							|  |  |  |         {% endif %} | 
					
						
							|  |  |  |         {% if perms.dcim.delete_consoleserverport %} | 
					
						
							|  |  |  |             {% if csp.connected_console %} | 
					
						
							|  |  |  |                 <button class="btn btn-danger btn-xs" disabled="disabled"> | 
					
						
							|  |  |  |                     <i class="glyphicon glyphicon-trash" aria-hidden="true"></i> | 
					
						
							|  |  |  |                 </button> | 
					
						
							|  |  |  |             {% else %} | 
					
						
							| 
									
										
										
										
											2018-02-27 14:59:45 -05:00
										 |  |  |                 <a href="{% url 'dcim:consoleserverport_delete' pk=csp.pk %}?return_url={{ device.get_absolute_url }}" title="Delete port" class="btn btn-danger btn-xs"> | 
					
						
							| 
									
										
										
										
											2017-06-16 10:01:47 -04:00
										 |  |  |                     <i class="glyphicon glyphicon-trash" aria-hidden="true"></i> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                 </a> | 
					
						
							|  |  |  |             {% endif %} | 
					
						
							|  |  |  |         {% endif %} | 
					
						
							|  |  |  |     </td> | 
					
						
							|  |  |  | </tr> |