8.4.1 Rows and Columns

master
Jason Zhu 2020-11-11 18:18:10 +11:00
parent 8a57cbfc10
commit bfa3bde075
1 changed files with 21 additions and 7 deletions

View File

@ -9,12 +9,26 @@
</head> </head>
<body> <body>
<h1>{% block header_text %}{% endblock %}</h1> <div class="container">
<form method="POST" action="{% block form_action %}{% endblock %}"> <div class="row">
<input name="item_text" id="id_new_item" placeholder="Enter a to-do item" /> <div class="col-md-6 col-md-offset-3">
{% csrf_token %} <div class="text-center">
</form> <h1>{% block header_text %}{% endblock %}</h1>
{% block table %} <form method="POST" action="{% block form_action %}{% endblock %}">
{% endblock %} <input name="item_text" id="id_new_item" placeholder="Enter a to-do item" />
{% csrf_token %}
</form>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3">
{% block table %}
{% endblock %}
</div>
</div>
</div>
</body> </body>
</html> </html>