-
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.
Introduced an object import template
- Loading branch information
1 parent
3c63190
commit 79089cc
Showing
16 changed files
with
626 additions
and
771 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,57 @@ | ||
{% extends '_base.html' %} | ||
{% extends 'utilities/obj_import.html' %} | ||
{% load render_table from django_tables2 %} | ||
{% load form_helpers %} | ||
|
||
{% block title %}Circuit Import{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Circuit Import</h1> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<form action="." method="post" class="form"> | ||
{% csrf_token %} | ||
{% render_form form %} | ||
<div class="form-group"> | ||
<button type="submit" class="btn btn-primary">Submit</button> | ||
<a href="{% url return_url %}" class="btn btn-default">Cancel</a> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="col-md-6"> | ||
<h4>CSV Format</h4> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Field</th> | ||
<th>Description</th> | ||
<th>Example</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Circuit ID</td> | ||
<td>Alphanumeric circuit identifier</td> | ||
<td>IC-603122</td> | ||
</tr> | ||
<tr> | ||
<td>Provider</td> | ||
<td>Name of circuit provider</td> | ||
<td>TeliaSonera</td> | ||
</tr> | ||
<tr> | ||
<td>Type</td> | ||
<td>Circuit type</td> | ||
<td>Transit</td> | ||
</tr> | ||
<tr> | ||
<td>Tenant</td> | ||
<td>Name of tenant (optional)</td> | ||
<td>Strickland Propane</td> | ||
</tr> | ||
<tr> | ||
<td>Install Date</td> | ||
<td>Date in YYYY-MM-DD format (optional)</td> | ||
<td>2016-02-23</td> | ||
</tr> | ||
<tr> | ||
<td>Commit rate</td> | ||
<td>Commited rate in Kbps (optional)</td> | ||
<td>2000</td> | ||
</tr> | ||
<tr> | ||
<td>Description</td> | ||
<td>Short description (optional)</td> | ||
<td>Primary for voice</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h4>Example</h4> | ||
<pre>IC-603122,TeliaSonera,Transit,Strickland Propane,2016-02-23,2000,Primary for voice</pre> | ||
</div> | ||
</div> | ||
{% block instructions %} | ||
<h4>CSV Format</h4> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Field</th> | ||
<th>Description</th> | ||
<th>Example</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Circuit ID</td> | ||
<td>Alphanumeric circuit identifier</td> | ||
<td>IC-603122</td> | ||
</tr> | ||
<tr> | ||
<td>Provider</td> | ||
<td>Name of circuit provider</td> | ||
<td>TeliaSonera</td> | ||
</tr> | ||
<tr> | ||
<td>Type</td> | ||
<td>Circuit type</td> | ||
<td>Transit</td> | ||
</tr> | ||
<tr> | ||
<td>Tenant</td> | ||
<td>Name of tenant (optional)</td> | ||
<td>Strickland Propane</td> | ||
</tr> | ||
<tr> | ||
<td>Install Date</td> | ||
<td>Date in YYYY-MM-DD format (optional)</td> | ||
<td>2016-02-23</td> | ||
</tr> | ||
<tr> | ||
<td>Commit rate</td> | ||
<td>Commited rate in Kbps (optional)</td> | ||
<td>2000</td> | ||
</tr> | ||
<tr> | ||
<td>Description</td> | ||
<td>Short description (optional)</td> | ||
<td>Primary for voice</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h4>Example</h4> | ||
<pre>IC-603122,TeliaSonera,Transit,Strickland Propane,2016-02-23,2000,Primary for voice</pre> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,47 @@ | ||
{% extends '_base.html' %} | ||
{% extends 'utilities/obj_import.html' %} | ||
{% load render_table from django_tables2 %} | ||
{% load form_helpers %} | ||
|
||
{% block title %}Provider Import{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Provider Import</h1> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<form action="." method="post" class="form"> | ||
{% csrf_token %} | ||
{% render_form form %} | ||
<div class="form-group"> | ||
<button type="submit" class="btn btn-primary">Submit</button> | ||
<a href="{% url return_url %}" class="btn btn-default">Cancel</a> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="col-md-6"> | ||
<h4>CSV Format</h4> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Field</th> | ||
<th>Description</th> | ||
<th>Example</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Name</td> | ||
<td>Provider's proper name</td> | ||
<td>Level 3</td> | ||
</tr> | ||
<tr> | ||
<td>Slug</td> | ||
<td>URL-friendly name</td> | ||
<td>level3</td> | ||
</tr> | ||
<tr> | ||
<td>ASN</td> | ||
<td>Autonomous system number (optional)</td> | ||
<td>3356</td> | ||
</tr> | ||
<tr> | ||
<td>Account</td> | ||
<td>Account number (optional)</td> | ||
<td>08931544</td> | ||
</tr> | ||
<tr> | ||
<td>Portal URL</td> | ||
<td>Customer service portal URL (optional)</td> | ||
<td>https://mylevel3.net</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h4>Example</h4> | ||
<pre>Level 3,level3,3356,08931544,https://mylevel3.net</pre> | ||
</div> | ||
</div> | ||
{% block instructions %} | ||
<h4>CSV Format</h4> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Field</th> | ||
<th>Description</th> | ||
<th>Example</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Name</td> | ||
<td>Provider's proper name</td> | ||
<td>Level 3</td> | ||
</tr> | ||
<tr> | ||
<td>Slug</td> | ||
<td>URL-friendly name</td> | ||
<td>level3</td> | ||
</tr> | ||
<tr> | ||
<td>ASN</td> | ||
<td>Autonomous system number (optional)</td> | ||
<td>3356</td> | ||
</tr> | ||
<tr> | ||
<td>Account</td> | ||
<td>Account number (optional)</td> | ||
<td>08931544</td> | ||
</tr> | ||
<tr> | ||
<td>Portal URL</td> | ||
<td>Customer service portal URL (optional)</td> | ||
<td>https://mylevel3.net</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h4>Example</h4> | ||
<pre>Level 3,level3,3356,08931544,https://mylevel3.net</pre> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,47 @@ | ||
{% extends '_base.html' %} | ||
{% extends 'utilities/obj_import.html' %} | ||
{% load render_table from django_tables2 %} | ||
{% load form_helpers %} | ||
|
||
{% block title %}Console Connections Import{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Console Connections Import</h1> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<form action="." method="post" class="form"> | ||
{% csrf_token %} | ||
{% render_form form %} | ||
<div class="form-group"> | ||
<div class="col-md-12 text-right"> | ||
<button type="submit" class="btn btn-primary">Submit</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="col-md-6"> | ||
<h4>CSV Format</h4> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Field</th> | ||
<th>Description</th> | ||
<th>Example</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Console server</td> | ||
<td>Device name or {ID}</td> | ||
<td>abc1-cs3</td> | ||
</tr> | ||
<tr> | ||
<td>Console server port</td> | ||
<td>Full CS port name</td> | ||
<td>Port 35</td> | ||
</tr> | ||
<tr> | ||
<td>Device</td> | ||
<td>Device name or {ID}</td> | ||
<td>abc1-switch7</td> | ||
</tr> | ||
<tr> | ||
<td>Console Port</td> | ||
<td>Console port name</td> | ||
<td>Console</td> | ||
</tr> | ||
<tr> | ||
<td>Connection Status</td> | ||
<td>"planned" or "connected"</td> | ||
<td>planned</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h4>Example</h4> | ||
<pre>abc1-cs3,Port 35,abc1-switch7,Console,planned</pre> | ||
</div> | ||
</div> | ||
{% block instructions %} | ||
<h4>CSV Format</h4> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Field</th> | ||
<th>Description</th> | ||
<th>Example</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Console server</td> | ||
<td>Device name or {ID}</td> | ||
<td>abc1-cs3</td> | ||
</tr> | ||
<tr> | ||
<td>Console server port</td> | ||
<td>Full CS port name</td> | ||
<td>Port 35</td> | ||
</tr> | ||
<tr> | ||
<td>Device</td> | ||
<td>Device name or {ID}</td> | ||
<td>abc1-switch7</td> | ||
</tr> | ||
<tr> | ||
<td>Console Port</td> | ||
<td>Console port name</td> | ||
<td>Console</td> | ||
</tr> | ||
<tr> | ||
<td>Connection Status</td> | ||
<td>"planned" or "connected"</td> | ||
<td>planned</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<h4>Example</h4> | ||
<pre>abc1-cs3,Port 35,abc1-switch7,Console,planned</pre> | ||
{% 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
Oops, something went wrong.