{% extends 'dashboard/layout.html' %} {% load i18n %} {% load staticfiles %} {% block body_class %}stores{% endblock %} {% block extrahead %} {% endblock %} {% block title %} {{ title }} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block dashboard_content %}
{% csrf_token %}

{% trans "Store details" %}

{{ form.non_field_errors }} {% for field in form %} {% include "partials/form_field.html" %} {% if forloop.first %} {# add the address inline form here #} {% with formset=inlines.1 %} {{ formset.management_form }} {% for address_form in formset %} {% for field in address_form %} {% include "partials/form_field.html" %} {% endfor %} {% endfor %} {% endwith %} {% endif %} {% endfor %}

{% trans "Store location" %}

{# use the first formset which is the opening times #} {% with formset=inlines.0 %}

{% trans "Opening hours" %}

{{ formset.management_form }} {% for form in formset %}
{% for field in form %} {% include "partials/field_inline.html" %} {% endfor %}
{% endfor %} {% endwith %}

{% trans "Cancel" %} {% trans "or" %}
{% endblock dashboard_content %} {% block extrascripts %} {{ block.super }} {% endblock %} {% block onbodyload %} stores.dashboard.init(); $('.nav-list a').on('shown', function (e) { google.maps.event.trigger(stores.dashboard.map, 'resize'); }) {% endblock onbodyload %}