From 870925837a63598dc94e8f3bb546f445d8d1693d Mon Sep 17 00:00:00 2001 From: Chris GIACOFEI Date: Mon, 3 Jun 2024 08:05:56 -0400 Subject: [PATCH] Format entry forms as tables. Keeps everything aligned nicely. --- yeast/templates/yeast/batch.html | 9 +++- yeast/templates/yeast/batch_form.html | 57 ++++++++++++++++---------- yeast/templates/yeast/strain_form.html | 57 ++++++++++++++++---------- 3 files changed, 79 insertions(+), 44 deletions(-) diff --git a/yeast/templates/yeast/batch.html b/yeast/templates/yeast/batch.html index b83927d..cb3976a 100644 --- a/yeast/templates/yeast/batch.html +++ b/yeast/templates/yeast/batch.html @@ -20,6 +20,8 @@
+
+
Batch Samples @@ -41,15 +43,18 @@ {% endfor %}
-

+

+

Print Labels for this Batch

+

+
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/yeast/templates/yeast/batch_form.html b/yeast/templates/yeast/batch_form.html index 34d529e..e786c1a 100644 --- a/yeast/templates/yeast/batch_form.html +++ b/yeast/templates/yeast/batch_form.html @@ -1,23 +1,38 @@ -

Add New Batch

+{% extends 'base.html' %} +{% block style %} +form { display: table; } +p { display: table-row; } +label { display: table-cell; } +input { display: table-cell; } +{% endblock %} -
{% csrf_token %} - {{ form.as_p }} - -
+{% block content %} +
+
+

Add Batch

+
+
+
+
{% csrf_token %} + {{ form.as_p }} + +
- \ No newline at end of file + +
+{% endblock %} \ No newline at end of file diff --git a/yeast/templates/yeast/strain_form.html b/yeast/templates/yeast/strain_form.html index 70827bf..6e88698 100644 --- a/yeast/templates/yeast/strain_form.html +++ b/yeast/templates/yeast/strain_form.html @@ -1,23 +1,38 @@ -

Add New Strain

+{% extends 'base.html' %} +{% block style %} +form { display: table; } +p { display: table-row; } +label { display: table-cell; } +input { display: table-cell; } +{% endblock %} -
{% csrf_token %} - {{ form.as_p }} - -
+{% block content %} +
+
+

Add Strain

+
+
+
+
{% csrf_token %} + {{ form.as_p }} + +
- \ No newline at end of file + +
+{% endblock %} \ No newline at end of file