Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from tbotnz/dev
Browse files Browse the repository at this point in the history
fix missing html tag
  • Loading branch information
tbotnz authored Aug 23, 2023
2 parents b5205ea + 5d757d4 commit 28571ff
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
6 changes: 5 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ A netbox plugin providing floorplan mapping capability for locations and sites
- export to svg

#### installing
Install the package, apply migrations then add the plugin to ```PLUGINS = ["netbox_floorplan"]``` in ```/opt/netbox/netbox/netbox/configuration.py:```
Install the package, apply migrations, then add the plugin to ```PLUGINS = ["netbox_floorplan"]``` in ```/opt/netbox/netbox/netbox/configuration.py:``` then collectstatic


#### mentions
Special thanks to Ziply Fiber network automation team for helping originally helping to conceive this during the NANOG hackathon
18 changes: 2 additions & 16 deletions netbox_floorplan/templates/netbox_floorplan/floorplan_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,7 @@

{% block content-wrapper %}
{% load template_utils %}
<style>
#drag_zone {
box-sizing: content-box;
}

.drag {
z-index: 999;
}


#drag-container {
padding-right: 1rem
}
</style>

<!--- start js vars -->
<input type="hidden" id="obj_pk" value="{{ obj.pk }}">
Expand Down Expand Up @@ -190,8 +177,7 @@ <h5 class="card-header">Controls</h5>
</div>
</div>

<div class="modal fade" id="control_unit_modal" tabindex="-1" aria-labelledby="control_unit_modal_label"
aria-hidden="true">
<div class="modal fade" id="control_unit_modal" tabindex="-1" aria-labelledby="control_unit_modal_label" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down Expand Up @@ -230,6 +216,6 @@ <h5 class="modal-title" id="control_unit_modal_label">Set Floorplan Dimensions</
</div>
</div>

<script type="module" src="{% static 'netbox_floorplan/floorplan/edit.js' %}">
<script type="module" src="{% static 'netbox_floorplan/floorplan/edit.js' %}"></script>

{% endblock content-wrapper %}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
</div>
</div>

<script type="module" src="{% static 'netbox_floorplan/floorplan/view.js' %}">
</script>
<script type="module" src="{% static 'netbox_floorplan/floorplan/view.js' %}"></script>

{% endblock content %}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<td><b>Zoom in/out</b><br>
<i class="text-secondary">MOUSE WHEEL IN/OUT</i>
</td>
<td><i>Zooms in/out</td>
<td>Zooms in/out</td>
</tr>
<tr>
<td><b>Move Object (Down/Up/Left/Right)</b><br>
Expand Down

0 comments on commit 28571ff

Please sign in to comment.