Skip to content

Commit

Permalink
final template
Browse files Browse the repository at this point in the history
  • Loading branch information
GunpreetAhuja committed Jun 28, 2014
1 parent 356f9b3 commit 3c4e5b9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
6 changes: 6 additions & 0 deletions src/librehatti/print/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.conf.urls import url, patterns

urlpatterns = patterns('librehatti.print.views',
url(r'^addmaterial/', 'add_material'),

)
22 changes: 11 additions & 11 deletions src/templates/print/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<title>Lab Reports</title>
</head>
<body>
<form action='librehatti/print/views/add_material' method='post'>
{% csrf_token %}
<form action='' method='POST'>
{% csrf_token %}
<b>Material:</b>
<select>
{% for name in forms.material_name|make_list %}
<option value='{{name}}' > {{name}} </option>
{% endfor %}
</select>
<p><b>Time span:</b></p>
<p>From:<small>(dd/mm/yyyy)</small> <input type="text" name="From" />
To:<small>(dd/mm/yyyy)</small> <input type="text" name="To" /></p>
<input type="submit" value="Submit" />
<select name = 'material'>
{% for i in material_name %}
<option value={{i.name}} name={{i.name}} >{{i.name}} </option>
{% endfor %}
</select>
<p><b>Time span:</b></p>
<p>From:<input type="text" name="From" />
To: <input type="text" name="To" /></p>
<input type="submit" value="Submit" />
</form>
</body>
</html>

0 comments on commit 3c4e5b9

Please sign in to comment.