<commit_before>{% extends "locations/base.html" %}
{% load table_tags %}
{% load forms_tags %}

{% block stylesheets %}
{{ block.super }}
<link type="text/css" rel="stylesheet" href="/static/locations/stylesheets/label-overlay.css" />
{% endblock %}

{% block javascripts %}
{{ block.super }}
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="{{ MEDIA_URL }}locations/javascripts/label-overlay.js" type="text/javascript"></script>
<script src="{{ MEDIA_URL }}locations/javascripts/mask.js" type="text/javascript"></script>
<script src="{{ MEDIA_URL }}locations/javascripts/map.js" type="text/javascript"></script>
{% endblock %}

{% block left %}{% if no_location_types %}
<div class="module">
	<table>
		<tbody>
		<tr class="no-data error">
			<td>
				<p>
					You haven't created any subclasses of Location yet.
				</p>
			</td>
			</tr>
		</tbody>
	</table>
</div>{% endif %}{% for type in location_types %}{% if not type.is_empty %}
<div class="module">
	<h2>{{ type.plural|title }}</h2>
	<table class="locations">
		{% table_cols type.table %}
		{% table_head type.table %}

		<tbody>{% for location in type.table.rows %}
			<tr>
				<th scope="row"><a href="{% url locations location.uid %}">{{ location.name }}</a></th>
				<td>{{ location.slug|upper }}</td>
			</tr>{% endfor %}
		</tbody>

		{% table_foot type.table %}
	</table>
</div>{% endif %}{% endfor %}
{% endblock %}

{% block middle %}
<div class="module">
	<h2>Map</h2>
	<div class="map" lat="{{ default_latitude }}" lng="{{ default_longitude }}">
		<div class="container"></div>

		<ul class="labels">{% for type in location_types %}{% for location in type.locations %}
			<li lat="{{ location.point.latitude }}" lng="{{ location.point.longitude }}">
				{{ location.label }}
			</li>{% endfor %}{% endfor %}
		</ul>
	</div>
</div>
{% endblock %}

{% block right %}
<div class="module">{% for type in location_types %}
	<h2>Add a {{ type.singular }}</h2>
	<form action="" method="post">
		{% render_form type.form %}

		<div class="submit">
			<input type="submit" name="submit" value="Save" />
			<input type="hidden" name="type" value="{{ type.name }}" />{% if type.form.instance %}
			<input type="hidden" name="id" value="{{ type.form.instance.uid }}" />{% endif %}
			<input type="hidden" name="parent_type" value="{{ location.content_type }}" />
			<input type="hidden" name="parent_id" value="{{ location.id }}" />
		</div>
	</form>{% endfor %}
</div>
{% endblock %}<commit_msg>collapse location type modules as default.<commit_after>{% extends "locations/base.html" %}
{% load table_tags %}
{% load forms_tags %}

{% block stylesheets %}
{{ block.super }}
<link type="text/css" rel="stylesheet" href="/static/locations/stylesheets/label-overlay.css" />
{% endblock %}

{% block javascripts %}
{{ block.super }}
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="{{ MEDIA_URL }}locations/javascripts/label-overlay.js" type="text/javascript"></script>
<script src="{{ MEDIA_URL }}locations/javascripts/mask.js" type="text/javascript"></script>
<script src="{{ MEDIA_URL }}locations/javascripts/map.js" type="text/javascript"></script>
{% endblock %}

{% block left %}{% if no_location_types %}
<div class="module">
	<table>
		<tbody>
		<tr class="no-data error">
			<td>
				<p>
					You haven't created any subclasses of Location yet.
				</p>
			</td>
			</tr>
		</tbody>
	</table>
</div>{% endif %}{% for type in location_types %}{% if not type.is_empty %}
<div class="module">
	<h2>{{ type.plural|title }}</h2>
	<table class="locations">
		{% table_cols type.table %}
		{% table_head type.table %}

		<tbody>{% for location in type.table.rows %}
			<tr>
				<th scope="row"><a href="{% url locations location.uid %}">{{ location.name }}</a></th>
				<td>{{ location.slug|upper }}</td>
			</tr>{% endfor %}
		</tbody>

		{% table_foot type.table %}
	</table>
</div>{% endif %}{% endfor %}
{% endblock %}

{% block middle %}
<div class="module">
	<h2>Map</h2>
	<div class="map" lat="{{ default_latitude }}" lng="{{ default_longitude }}">
		<div class="container"></div>

		<ul class="labels">{% for type in location_types %}{% for location in type.locations %}
			<li lat="{{ location.point.latitude }}" lng="{{ location.point.longitude }}">
				{{ location.label }}
			</li>{% endfor %}{% endfor %}
		</ul>
	</div>
</div>
{% endblock %}

{% block right %}{% for type in location_types %}
<div class="module collapsed">
	<h2>Add a {{ type.singular }}</h2>
	<form action="" method="post">
		{% render_form type.form %}

		<div class="submit">
			<input type="submit" name="submit" value="Save" />
			<input type="hidden" name="type" value="{{ type.name }}" />{% if type.form.instance %}
			<input type="hidden" name="id" value="{{ type.form.instance.uid }}" />{% endif %}
			<input type="hidden" name="parent_type" value="{{ location.content_type }}" />
			<input type="hidden" name="parent_id" value="{{ location.id }}" />
		</div>
	</form>
</div>{% endfor %}
{% endblock %}
{'fraction_non_alphanumeric': 0.22469915170645097, 'fraction_numerical': 0.0023673308344841193, 'mean_word_length': 4.348101265822785, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2484296', 'n_tokens_mistral': 1958, 'n_tokens_neox': 1699, 'n_words': 400}