From ecc7552c20ee1cf17ae2af606b5f144e7f5000c2 Mon Sep 17 00:00:00 2001 From: docteur_mucus Date: Sat, 8 Jun 2019 13:44:47 +0200 Subject: [PATCH] boat merge --- port/forms.py | 3 +++ port/templates/boat/form.html | 36 +++++++++++++++++++++++++++++++++++ port/templates/boat/list.html | 8 ++++++++ port/urls/boat.py | 0 port/views/boat.py | 0 5 files changed, 47 insertions(+) create mode 100644 port/templates/boat/form.html create mode 100644 port/templates/boat/list.html create mode 100644 port/urls/boat.py create mode 100644 port/views/boat.py 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