diff --git a/port/forms.py b/port/forms.py index cfdcc08..c2dc199 100644 --- a/port/forms.py +++ b/port/forms.py @@ -124,3 +124,6 @@ class TapForm(Form): """ TapFormSet = formset_factory(TapForm) + +class BoatForm(Form): + diff --git a/port/templates/boat/form.html b/port/templates/boat/form.html new file mode 100644 index 0000000..bc51402 --- /dev/null +++ b/port/templates/boat/form.html @@ -0,0 +1,36 @@ +{% extends "base.html" %} +{% block content %} +
+ {% csrf_token %} +
+ Port + {{ port_form }} +
+
+ Dock + + {% for dock_form in dock_forms %} + {{ dock_form.as_table }} + {% endfor %} +
+
+
+ Plug + + {% for plug_form in plug_forms %} + {{ plug_form.as_table }} + {% endfor %} +
+
+
+ Tap + + {% for tap_form in tap_forms %} + {{ tap_form.as_table }} + {% endfor %} +
+
+ +
+ +{% endblock %} diff --git a/port/templates/boat/list.html b/port/templates/boat/list.html new file mode 100644 index 0000000..636f12a --- /dev/null +++ b/port/templates/boat/list.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} +{% block content %} + +{% endblock %} diff --git a/port/urls/boat.py b/port/urls/boat.py new file mode 100644 index 0000000..e69de29 diff --git a/port/views/boat.py b/port/views/boat.py new file mode 100644 index 0000000..e69de29