-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show virtual machines on Cluster page
- Loading branch information
Showing
5 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
netbox/templates/virtualization/cluster_add_virtualmachines.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
{% load form_helpers %} | ||
|
||
{% block content %} | ||
<form action="." method="post" class="form form-horizontal"> | ||
{% csrf_token %} | ||
{% for field in form.hidden_fields %} | ||
{{ field }} | ||
{% endfor %} | ||
<div class="row"> | ||
<div class="col-md-6 col-md-offset-3"> | ||
<h3>{% block title %}Add Virtual Machines to Cluster {{ cluster }}{% endblock %}</h3> | ||
{% if form.non_field_errors %} | ||
<div class="panel panel-danger"> | ||
<div class="panel-heading"><strong>Errors</strong></div> | ||
<div class="panel-body"> | ||
{{ form.non_field_errors }} | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="panel panel-default"> | ||
<div class="panel-heading"><strong>Virtual Machine Selection</strong></div> | ||
<div class="panel-body"> | ||
{% render_form form %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-md-6 col-md-offset-3 text-right noprint"> | ||
<button type="submit" name="_add" class="btn btn-primary">Add Virtual Machines</button> | ||
<a href="{{ return_url }}" class="btn btn-default">Cancel</a> | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters