Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 118 lines (105 sloc) 3.53 KB
{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "New Report" %}{% endblock %}
{% block script %}
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="/js/jquery.livequery.pack.js"></script>
function updateNotes() {
// updates entry notes
var el_id = $('#category_select').val();
$("#secondary_container").load("/ajax/categories/"+el_id, function(){
$(document).ready(function() {
$('#category_select').change(function() {
// Do onLoad as well..
if($('input[name=is_hate]:checked').val() =='yes') {
$('.radiohate').livequery('click', function(event) {
if($(this)[0].value =='yes') {
// disable fields
$('#submit_report_button').enabled = false;
} else {
$('#submit_report_button').enabled = true;
{% endblock %}
{% block content %}
#leftcol ul {
list-style-type:disc !important;
.ishate {display:none;}
<div id="page_content_container">
<div id="leftcol">
<h3>{% trans "Report a Problem" %}</h3>
<form enctype="multipart/form-data" method="post" action="/reports/">
<input type="hidden" name="lat" id="lat" value="{{lat}}" />
<input type="hidden" name="lon" id="lon" value="{{lon}}" />
<table class='form'>
{{ report_form.as_table }}
<td id="photo_note">{% trans "* Optional" %}</td>
<th><label for="strCategory">{% trans "Category:" %}</label></th>
<td>{% if category_error %}
<ul class='errorlist'><li>{{category_error}}</li></ul>
{% endif %}
<select class='input' name="category_id" id='category_select'>
<option value="">{% trans "Select a Category" %}</option>
{% for category in categories %}
{% ifchanged %}
</optgroup><optgroup label='{{}}'>
{% endifchanged %}
<option value="{{}}">{{}}</option>
{% endfor %}
<td><div id='secondary_container'></div></td>
{{ update_form.as_table }}
<td><div class='note'>
<p><strong>{% trans "Please Note" %} :</strong></p>
<li>{% trans "Please be polite, concise and to the point." %}</li>
<li>{% trans "Please do not be abusive - abusing the service devalues the service for all users." %}</li>
<li>{% trans "Writing your message entirely in block capitals makes it hard to read, as does a lack of punctuation." %}</li>
<li>{% trans "Remember that FixMyStreet is primarily for reporting physical problems that can be fixed. If your problem is not appropriate for submission via this site please contact city officials directly." %}</li>
<td align="right"><input type="submit" value="{% trans "Submit" %}" /></td>
<div id="rightcol">
<div id="{{ google.dom_id }}" style="width:400px;height:400px;"></div>
{{ google.body }}
{% endblock %}
Jump to Line
Something went wrong with that request. Please try again.