{% extends "style/bootstrap3/two_column.html" %}
{% load hq_shared_tags %}
{% load i18n %}

{% block head %}{{ block.super }}
    {% include 'cloudcare/includes/touchforms-inline.html' %}
    <script>
    $(function () {
        GMAPS_API_KEY = '{{ maps_api_key|safe }}'; // maps api is a global variable depended on by touchforms
        var edit_context = {{ edit_context|JSON }};
        $('#edit-container').inlineTouchform({
            formUrl: edit_context.formUrl,
            submitUrl: edit_context.submitUrl,
            sessionData: edit_context.sessionData,
            onsubmit: function () {
                window.location.href = edit_context.returnUrl;
            },
            onload: function () {
            }
        });
    });
    </script>
{% endblock %}

{% block title %}{% trans 'Edit Submission' %}{% endblock %}
{% block page_breadcrumbs %}{{ block.super }}
    {% include 'reports/form/partials/bootstrap3/form_breadcrumbs.html' %}
{% endblock %}

{% block page_content %}
    <div class="inline-touchforms" data-bind="template: { name: 'form-fullform-ko-template' }" id="edit-container"></div>
    <div id="loading" class="hq-loading" style="display: none;">
        <img width="32" height="32" alt="Loading" src="{% new_static 'formplayer/img/loading_transparent.gif' %}" />
        {% trans "Loading" %}...
    </div>
{% endblock %}

{% extends "style/bootstrap3/two_column.html" %}
{% load hq_shared_tags %}
{% load i18n %}

{% block js-inline %}{{ block.super }}
{% include 'cloudcare/includes/touchforms-inline.html' %}
{% endblock %}

{% block head %}{{ block.super }}
    <script>
    $(function () {
        GMAPS_API_KEY = '{{ maps_api_key|safe }}'; // maps api is a global variable depended on by touchforms
        var edit_context = {{ edit_context|JSON }};
        $('#edit-container').inlineTouchform({
            formUrl: edit_context.formUrl,
            submitUrl: edit_context.submitUrl,
            sessionData: edit_context.sessionData,
            onsubmit: function () {
                window.location.href = edit_context.returnUrl;
            },
            onload: function () {
            }
        });
    });
    </script>
{% endblock %}

{% block title %}{% trans 'Edit Submission' %}{% endblock %}
{% block page_breadcrumbs %}{{ block.super }}
    {% include 'reports/form/partials/bootstrap3/form_breadcrumbs.html' %}
{% endblock %}

{% block page_content %}
    <div class="inline-touchforms" data-bind="template: { name: 'form-fullform-ko-template' }" id="edit-container"></div>
    <div id="loading" class="hq-loading" style="display: none;">
        <img width="32" height="32" alt="Loading" src="{% new_static 'formplayer/img/loading_transparent.gif' %}" />
        {% trans "Loading" %}...
    </div>
{% endblock %}

Fix js import error on edit submission page
Fix js import error on edit submission page
