We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 255f7d4 + 6a79f86 commit 5e20affCopy full SHA for 5e20aff
subadd/templates/subadd/add.html
@@ -43,8 +43,12 @@ <h2>Add Substance</h2>
43
44
<br>
45
46
- <input type="submit" value="Add Substance" />
+ {% if add_sub_form %}
47
48
+ <input type="submit" value="Add Substance" />
49
+
50
+ {% endif %}
51
52
</form>
53
54
</body>
subadd/views.py
@@ -65,9 +65,9 @@ def addentry(request):
65
66
except:
67
context = {}
68
- context['error_message'] = "Please navigate to addentry only from here."
+ context['error_message'] = "Please navigate to addentry (here) only from the links."
69
70
- return render(request, 'subadd/add.html', context)
+ return render(request, 'subadd/add.html', add_header_info(context))
71
72
73
try:
0 commit comments