add ranging feature in mesh control
This commit is contained in:
parent
f07b06ec60
commit
5cf839577a
7 changed files with 91 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
|||
from django.views.generic import TemplateView
|
||||
|
||||
from c3nav.mesh.forms import RangingForm
|
||||
from c3nav.mesh.utils import get_node_names
|
||||
from c3nav.mesh.views.base import MeshControlMixin
|
||||
|
||||
|
@ -12,3 +13,13 @@ class MeshLogView(MeshControlMixin, TemplateView):
|
|||
**super().get_context_data(),
|
||||
"node_names": get_node_names(),
|
||||
}
|
||||
|
||||
|
||||
class MeshRangingView(TemplateView):
|
||||
template_name = "mesh/mesh_ranging.html"
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
return {
|
||||
"ranging_form": RangingForm(self.request.GET or None),
|
||||
"node_names": get_node_names(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue