site_import.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {% extends '_base.html' %}
  2. {% load form_helpers %}
  3. {% block title %}Site Import{% endblock %}
  4. {% block content %}
  5. <h1>Site Import</h1>
  6. <div class="row">
  7. <div class="col-md-6">
  8. <form action="." method="post" class="form">
  9. {% csrf_token %}
  10. {% render_form form %}
  11. <div class="form-group">
  12. <button type="submit" class="btn btn-primary">Submit</button>
  13. <a href="{% url return_url %}" class="btn btn-default">Cancel</a>
  14. </div>
  15. </form>
  16. </div>
  17. <div class="col-md-6">
  18. <h4>CSV Format</h4>
  19. <table class="table">
  20. <thead>
  21. <tr>
  22. <th>Field</th>
  23. <th>Description</th>
  24. <th>Example</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <tr>
  29. <td>Name</td>
  30. <td>Site's proper name</td>
  31. <td>ASH-4 South</td>
  32. </tr>
  33. <tr>
  34. <td>Slug</td>
  35. <td>URL-friendly name</td>
  36. <td>ash4-south</td>
  37. </tr>
  38. <tr>
  39. <td>Region</td>
  40. <td>Name of region (optional)</td>
  41. <td>North America</td>
  42. </tr>
  43. <tr>
  44. <td>Tenant</td>
  45. <td>Name of tenant (optional)</td>
  46. <td>Pied Piper</td>
  47. </tr>
  48. <tr>
  49. <td>Facility</td>
  50. <td>Name of the hosting facility (optional)</td>
  51. <td>Equinix DC6</td>
  52. </tr>
  53. <tr>
  54. <td>ASN</td>
  55. <td>Autonomous system number (optional)</td>
  56. <td>65000</td>
  57. </tr>
  58. <tr>
  59. <td>Contact Name</td>
  60. <td>Name of administrative contact (optional)</td>
  61. <td>Hank Hill</td>
  62. </tr>
  63. <tr>
  64. <td>Contact Phone</td>
  65. <td>Phone number (optional)</td>
  66. <td>+1-214-555-1234</td>
  67. </tr>
  68. <tr>
  69. <td>Contact E-mail</td>
  70. <td>E-mail address (optional)</td>
  71. <td>hhill@example.com</td>
  72. </tr>
  73. </tbody>
  74. </table>
  75. <h4>Example</h4>
  76. <pre>ASH-4 South,ash4-south,North America,Pied Piper,Equinix DC6,65000,Hank Hill,+1-214-555-1234,hhill@example.com</pre>
  77. </div>
  78. </div>
  79. {% endblock %}