<|start_filename|>feincms/templates/admin/medialibrary/mediafile/change_list.html<|end_filename|>
{% extends "admin/change_list.html" %}

{% load i18n %}

{% block content %}{{ block.super }}
<div class="module">
    <form action="{% url "admin:mediafile_bulk_upload" %}" method="POST" enctype="multipart/form-data">
	{% csrf_token %}
    <p style="color: #666; font-size: 11px;">
        <label for="data">{% trans "Bulk upload a ZIP file:" %}
            <input type="file" name="data">
        </label>
        | {% trans "Category" %}
        <select name="category">
            <option value="">---</option>
            {% for cat in categories %}
                <option value="{{ cat.id }}">{{ cat.path }}</option>
            {% endfor %}
        </select>
        | {% trans "Overwrite" %}
        <input type="checkbox" name="overwrite">
        |
        <input type="submit" value="{% trans "Send" %}">
    </p>
    </form>
</div>
<script type="text/javascript">
if (window.location.href.indexOf('pop=1') != -1) {
    (function($){
        $(function() {
            $('#result_list img').bind('click', function() {
                $(this).parents('tr').find('th:nth(0) a').trigger('click');
                return false;
            });
        });
    })(django.jQuery);
}
</script>
{% endblock %}


<|start_filename|>feincms/templates/admin/feincms/content_type_selection_widget.html<|end_filename|>
{% load i18n %}
<select name="order-machine-add-select">
  <option selected value>{% trans 'Insert new content:' %}</option>
  {% for group, cts in types.items %}
    {% if group %}<optgroup label="{{ group }}">{% endif %}
      {% for v, n in cts %}
        <option value="{{ v }}">{{ n|capfirst }}</option>
      {% endfor %}
    {% if group %}</optgroup>{% endif %}
  {% endfor %}
</select>


<|start_filename|>feincms/templates/content/filer/image.html<|end_filename|>
{% load thumbnail %}{% with image=content.mediafile %}
<img src="{% thumbnail image 200x300 crop upscale %}" alt="{{ image.default_alt_text|default_if_none:image.label }}" />
{% if image.default_caption %}<br><span class="caption">{{ image.default_caption }}</span>{% endif %}
{% endwith %}

{#{% thumbnail obj.img 200x300 crop upscale subject_location=obj.img.subject_location %}#}


<|start_filename|>tests/testapp/templates/alias_reverse_test.html<|end_filename|>
{% load applicationcontent_tags %}home:{% app_reverse "ac_module_root" "whatever" %} args:{% app_reverse "ac_args_test" "whatever" "xy" "zzy" %} base:{% url "feincms_handler" "test" %}


<|start_filename|>tests/testapp/templates/base.html<|end_filename|>
{% load applicationcontent_tags feincms_tags feincms_page_tags %}
<html>
<head>
    <title>{{ feincms_page.title }}</title>
</head>
<body>
    <h1>{{ feincms_page.title }}</h1>

    <div id="navigation" class="clearfix">
        {% feincms_nav feincms_page level=1 as toplevel %}
        {% for p in toplevel %}
        <a {% if p|is_equal_or_parent_of:feincms_page %}class="mark"{% endif %} href="{{ p.get_absolute_url }}">{{ p.title }}</a>
        {% endfor %}
    </div>

    <div id="main">
        <h2>Main content</h2>
        {% block content %}{% feincms_render_region feincms_page "main" request %}{% endblock %}
    </div>

    <div id="sidebar">
        <h2>Sidebar content</h2>
            {% feincms_nav feincms_page level=2 as sublevel %}
            {% for p in sublevel %}
                {% if forloop.first %}<ul>{% endif %}
                <li><a href="{{ p.get_absolute_url }}">{{ p.title }}</a></li>
                {% if forloop.last %}</ul>{% endif %}
            {% empty %}
                No subpages
            {% endfor %}

            {% block sidebar %}{% feincms_render_region feincms_page "sidebar" request %}{% endblock %}
    </div>

    <span id="something">{% get_fragment request "something" %}</span>
</body>
</html>
