Commit 820c8298 authored by okhin's avatar okhin 🚴

Adding a Home button back Fix: #25

parent ecca0bf4
{% extends "base.html" %}
{% load bt %}
{% load i18n %}
{% block styles %}
<link rel="stylesheet" type="text/css" media="all" href="/static/css/jquery.autocomplete.css" />
{% endblock %}
{% block scripts %}
<script type="text/javascript">
$(document).ready(function(){
init_form();
{% if not form.is_bound %}
$(".fieldWrapper").hide();
$("#id_country").parent().show();
$("#save_button").hide();
{% else %}
if($("#id_contractual").attr('checked')==false) {
$("#id_contract_excerpt").parent().hide();
}
{% endif %}
});
</script>
{% endblock %}
{%block content%}
<h2>{% trans "New Violation" %}</h2>
<form id='addForm' name="addForm" enctype="multipart/form-data" action="{% url add_violation %}" method="post">
{% for field in form %}
{% if field.label = 'Resource' %}<div id="show_optionals">{% trans "Provide optional details" %}</div><div id="optional">{%endif%}
<div class="fieldWrapper">
<p>
{{ field.errors }}
<div class="help_text">{{ field.help_text }}</div>
{{ field.label_tag }} {{ field }}
</p>
</div>
{% endfor %}
</div>
{% csrf_token %}
<input id="save_button" type="submit" value="{% trans "save" %}" />
</form>
{%endblock%}
......@@ -39,6 +39,7 @@
</div>
<ul id="nav">
<li><a {% block active_tab_home %}{% endblock %} href="/">{% trans "Home" %}</a></li>
<li><a {% block active_tab_cases %}{% endblock %} href="{% url 'list_violations' %}">{% trans "Cases" %}</a></li>
<li><a {% block active_tab_about %}{% endblock %} href="{%root_url%}/about">{% trans "What is Net Neutrality?" %}</a></li>
<li><a {% block active_tab_start %}{% endblock %} href="{%root_url%}/start">{% trans "Start Monitoring" %}</a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment