<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* platform/ags/createLineItem.html.twig */
class __TwigTemplate_b8d9ffa09c24d3a91323476fbf67bb2b93bd3bff4d66636f5557ea0921fcafe3 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'nav_title' => [$this, 'block_nav_title'],
            'body' => [$this, 'block_body'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "base.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "platform/ags/createLineItem.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "platform/ags/createLineItem.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 3
    public function block_nav_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "nav_title"));

        echo "<i class=\"fas fa-graduation-cap\"></i>&nbsp;&nbsp;<span class=\"text-danger\">Platform</span> - AGS line item creation";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 5
    public function block_body($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        // line 6
        echo "<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-graduation-cap\"></i>&nbsp;Create line item
    </div>
    <div class=\"card-body\">
        ";
        // line 11
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 11, $this->source); })()), 'form_start');
        echo "
        ";
        // line 12
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 12, $this->source); })()), 'errors');
        echo "
        <div class=\"form-row\">
            <div class=\"col-md-4\">
                ";
        // line 15
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 15, $this->source); })()), "line_item_id", [], "any", false, false, false, 15), 'row');
        echo "
            </div>
            <div class=\"col-md-4\">
                ";
        // line 18
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 18, $this->source); })()), "line_item_context_id", [], "any", false, false, false, 18), 'row');
        echo "
            </div>
            <div class=\"col-md-4\">
                ";
        // line 21
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 21, $this->source); })()), "line_item_label", [], "any", false, false, false, 21), 'row');
        echo "
            </div>
        </div>
        <div class=\"form-row\">
            <div class=\"col-md-4\">
                ";
        // line 26
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 26, $this->source); })()), "line_item_score_maximum", [], "any", false, false, false, 26), 'row');
        echo "
            </div>
            <div class=\"col-md-4\">
                ";
        // line 29
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 29, $this->source); })()), "line_item_resource_id", [], "any", false, false, false, 29), 'row');
        echo "
            </div>
            <div class=\"col-md-4\">
                ";
        // line 32
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 32, $this->source); })()), "line_item_resource_link_id", [], "any", false, false, false, 32), 'row');
        echo "
            </div>
        </div>
        <div class=\"form-row\">
            <div class=\"col-md-4\">
                ";
        // line 37
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 37, $this->source); })()), "line_item_tag", [], "any", false, false, false, 37), 'row');
        echo "
            </div>
            <div class=\"col-md-4\">
                <div class=\"form-group\">
                    ";
        // line 41
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 41, $this->source); })()), "line_item_start_date", [], "any", false, false, false, 41), 'label');
        echo "
                    <div class=\"input-group\" id=\"lineItemStartDateTimeDatetimepicker\" data-target-input=\"nearest\">
                        <div class=\"input-group-prepend\">
                            <a class=\"btn btn-secondary text-white\" data-target=\"#lineItemStartDateTimeDatetimepicker\" data-toggle=\"datetimepicker\">
                                <i class=\"fas fa-calendar-day\" aria-hidden=\"true\"></i>
                            </a>
                        </div>
                        ";
        // line 48
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 48, $this->source); })()), "line_item_start_date", [], "any", false, false, false, 48), 'widget');
        echo "
                    </div>
                    ";
        // line 50
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 50, $this->source); })()), "line_item_start_date", [], "any", false, false, false, 50), 'help');
        echo "
                    ";
        // line 51
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 51, $this->source); })()), "line_item_start_date", [], "any", false, false, false, 51), 'errors');
        echo "
                </div>
            </div>
            <div class=\"col-md-4\">
                <div class=\"form-group\">
                    ";
        // line 56
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 56, $this->source); })()), "line_item_end_date", [], "any", false, false, false, 56), 'label');
        echo "
                    <div class=\"input-group\" id=\"lineItemEndDateTimeDatetimepicker\" data-target-input=\"nearest\">
                        <div class=\"input-group-prepend\">
                            <a class=\"btn btn-secondary text-white\" data-target=\"#lineItemEndDateTimeDatetimepicker\" data-toggle=\"datetimepicker\">
                                <i class=\"fas fa-calendar-day\" aria-hidden=\"true\"></i>
                            </a>
                        </div>
                        ";
        // line 63
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 63, $this->source); })()), "line_item_end_date", [], "any", false, false, false, 63), 'widget');
        echo "
                    </div>
                    ";
        // line 65
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 65, $this->source); })()), "line_item_end_date", [], "any", false, false, false, 65), 'help');
        echo "
                    ";
        // line 66
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 66, $this->source); })()), "line_item_end_date", [], "any", false, false, false, 66), 'errors');
        echo "
                </div>
            </div>
        </div>
        <div class=\"form-row\">
            <div class=\"col-md-12\">
                <div class=\"form-group\">
                    ";
        // line 73
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 73, $this->source); })()), "line_item_additional_properties", [], "any", false, false, false, 73), 'label');
        echo "<br/>
                    <div class=\"input-group\">
                        <div class=\"input-group-prepend\" role=\"group\" aria-label=\"Format additional properties\">
                            <div class=\"btn-group-vertical\" role=\"group\">
                                <button id=\"additionalPropertiesFormat\" type=\"button\" class=\"btn btn-secondary btn-block\" title=\"Format additional properties (JSON)\">
                                    <i class=\"fas fa-align-left\"></i>
                                </button>
                            </div>
                        </div>
                        ";
        // line 82
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 82, $this->source); })()), "line_item_additional_properties", [], "any", false, false, false, 82), 'widget');
        echo "
                    </div>
                    <div id=\"additionalPropertiesError\" class=\"invalid-feedback\">
                        Invalid additional properties, please provide a valid JSON representation
                    </div>
                    ";
        // line 87
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 87, $this->source); })()), "line_item_additional_properties", [], "any", false, false, false, 87), 'help');
        echo "
                    ";
        // line 88
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 88, $this->source); })()), "line_item_additional_properties", [], "any", false, false, false, 88), 'errors');
        echo "
                </div>
            </div>
        </div>
    </div>
    <div class=\"card-footer\">
        <div class=\"btn-group float-right\" role=\"group\" aria-label=\"Basic example\">
            ";
        // line 95
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 95, $this->source); })()), "submit", [], "any", false, false, false, 95), 'widget');
        echo "
            <a href=\"";
        // line 96
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform_ags_list_line_items");
        echo "\" class=\"btn btn-secondary\"><i class=\"fas fa-undo-alt\"></i>&nbsp;Cancel</a>
        </div>
    </div>
    ";
        // line 99
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 99, $this->source); })()), 'form_end');
        echo "
</div>
<script>
    \$(\"#lineItemStartDateTimeDatetimepicker\").datetimepicker({
        format: \"YYYY-MM-DD HH:mm\",
        allowInputToggle: true,
        buttons: {
            showToday: true,
            showClear: true,
            showClose: true
        }
    });
    \$(\"#lineItemEndDateTimeDatetimepicker\").datetimepicker({
        format: \"YYYY-MM-DD HH:mm\",
        allowInputToggle: true,
        buttons: {
            showToday: true,
            showClear: true,
            showClose: true
        }
    });

    function checkAdditionalProperties() {
        try {
            if (\$(\"#line_item_line_item_additional_properties\").val() != '') {
                \$(\"#line_item_line_item_additional_properties\").val(
                    JSON.stringify(JSON.parse(\$(\"#line_item_line_item_additional_properties\").val()), undefined, 4)
                );
                \$(\"#line_item_line_item_additional_properties\").removeClass('is-invalid');
                \$(\"#line_item_line_item_additional_properties\").addClass('is-valid');
            } else {
                \$(\"#line_item_line_item_additional_properties\").removeClass('is-invalid');
                \$(\"#line_item_line_item_additional_properties\").removeClass('is-valid');
            }
            \$('#additionalPropertiesError').hide();
        } catch(e) {
            \$(\"#line_item_line_item_additional_properties\").removeClass('is-valid');
            \$(\"#line_item_line_item_additional_properties\").addClass('is-invalid');
            \$('#additionalPropertiesError').show();
        }
    }

    \$(\"#additionalPropertiesFormat\").click(function(event){
        checkAdditionalProperties();
    });

    \$('form[name=line_item]').submit(function (evt) {
        checkAdditionalProperties();
        try {
            JSON.parse(\$(\"#line_item_line_item_additional_properties\").val() || \"{}\");
            return;
        } catch(e) {
            evt.preventDefault();
        }
    });

    \$( document ).ready(function() {
        checkAdditionalProperties();
    });
</script>
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    public function getTemplateName()
    {
        return "platform/ags/createLineItem.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  237 => 99,  231 => 96,  227 => 95,  217 => 88,  213 => 87,  205 => 82,  193 => 73,  183 => 66,  179 => 65,  174 => 63,  164 => 56,  156 => 51,  152 => 50,  147 => 48,  137 => 41,  130 => 37,  122 => 32,  116 => 29,  110 => 26,  102 => 21,  96 => 18,  90 => 15,  84 => 12,  80 => 11,  73 => 6,  66 => 5,  53 => 3,  36 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'base.html.twig' %}

{% block nav_title %}<i class=\"fas fa-graduation-cap\"></i>&nbsp;&nbsp;<span class=\"text-danger\">Platform</span> - AGS line item creation{% endblock %}

{% block body %}
<div class=\"card bg-light\">
    <div class=\"card-header\">
        <i class=\"fas fa-graduation-cap\"></i>&nbsp;Create line item
    </div>
    <div class=\"card-body\">
        {{ form_start(form) }}
        {{ form_errors(form) }}
        <div class=\"form-row\">
            <div class=\"col-md-4\">
                {{ form_row(form.line_item_id) }}
            </div>
            <div class=\"col-md-4\">
                {{ form_row(form.line_item_context_id) }}
            </div>
            <div class=\"col-md-4\">
                {{ form_row(form.line_item_label) }}
            </div>
        </div>
        <div class=\"form-row\">
            <div class=\"col-md-4\">
                {{ form_row(form.line_item_score_maximum) }}
            </div>
            <div class=\"col-md-4\">
                {{ form_row(form.line_item_resource_id) }}
            </div>
            <div class=\"col-md-4\">
                {{ form_row(form.line_item_resource_link_id) }}
            </div>
        </div>
        <div class=\"form-row\">
            <div class=\"col-md-4\">
                {{ form_row(form.line_item_tag) }}
            </div>
            <div class=\"col-md-4\">
                <div class=\"form-group\">
                    {{ form_label(form.line_item_start_date) }}
                    <div class=\"input-group\" id=\"lineItemStartDateTimeDatetimepicker\" data-target-input=\"nearest\">
                        <div class=\"input-group-prepend\">
                            <a class=\"btn btn-secondary text-white\" data-target=\"#lineItemStartDateTimeDatetimepicker\" data-toggle=\"datetimepicker\">
                                <i class=\"fas fa-calendar-day\" aria-hidden=\"true\"></i>
                            </a>
                        </div>
                        {{ form_widget(form.line_item_start_date) }}
                    </div>
                    {{ form_help(form.line_item_start_date) }}
                    {{ form_errors(form.line_item_start_date) }}
                </div>
            </div>
            <div class=\"col-md-4\">
                <div class=\"form-group\">
                    {{ form_label(form.line_item_end_date) }}
                    <div class=\"input-group\" id=\"lineItemEndDateTimeDatetimepicker\" data-target-input=\"nearest\">
                        <div class=\"input-group-prepend\">
                            <a class=\"btn btn-secondary text-white\" data-target=\"#lineItemEndDateTimeDatetimepicker\" data-toggle=\"datetimepicker\">
                                <i class=\"fas fa-calendar-day\" aria-hidden=\"true\"></i>
                            </a>
                        </div>
                        {{ form_widget(form.line_item_end_date) }}
                    </div>
                    {{ form_help(form.line_item_end_date) }}
                    {{ form_errors(form.line_item_end_date) }}
                </div>
            </div>
        </div>
        <div class=\"form-row\">
            <div class=\"col-md-12\">
                <div class=\"form-group\">
                    {{ form_label(form.line_item_additional_properties) }}<br/>
                    <div class=\"input-group\">
                        <div class=\"input-group-prepend\" role=\"group\" aria-label=\"Format additional properties\">
                            <div class=\"btn-group-vertical\" role=\"group\">
                                <button id=\"additionalPropertiesFormat\" type=\"button\" class=\"btn btn-secondary btn-block\" title=\"Format additional properties (JSON)\">
                                    <i class=\"fas fa-align-left\"></i>
                                </button>
                            </div>
                        </div>
                        {{ form_widget(form.line_item_additional_properties) }}
                    </div>
                    <div id=\"additionalPropertiesError\" class=\"invalid-feedback\">
                        Invalid additional properties, please provide a valid JSON representation
                    </div>
                    {{ form_help(form.line_item_additional_properties) }}
                    {{ form_errors(form.line_item_additional_properties) }}
                </div>
            </div>
        </div>
    </div>
    <div class=\"card-footer\">
        <div class=\"btn-group float-right\" role=\"group\" aria-label=\"Basic example\">
            {{ form_widget(form.submit) }}
            <a href=\"{{ path('platform_ags_list_line_items') }}\" class=\"btn btn-secondary\"><i class=\"fas fa-undo-alt\"></i>&nbsp;Cancel</a>
        </div>
    </div>
    {{ form_end(form) }}
</div>
<script>
    \$(\"#lineItemStartDateTimeDatetimepicker\").datetimepicker({
        format: \"YYYY-MM-DD HH:mm\",
        allowInputToggle: true,
        buttons: {
            showToday: true,
            showClear: true,
            showClose: true
        }
    });
    \$(\"#lineItemEndDateTimeDatetimepicker\").datetimepicker({
        format: \"YYYY-MM-DD HH:mm\",
        allowInputToggle: true,
        buttons: {
            showToday: true,
            showClear: true,
            showClose: true
        }
    });

    function checkAdditionalProperties() {
        try {
            if (\$(\"#line_item_line_item_additional_properties\").val() != '') {
                \$(\"#line_item_line_item_additional_properties\").val(
                    JSON.stringify(JSON.parse(\$(\"#line_item_line_item_additional_properties\").val()), undefined, 4)
                );
                \$(\"#line_item_line_item_additional_properties\").removeClass('is-invalid');
                \$(\"#line_item_line_item_additional_properties\").addClass('is-valid');
            } else {
                \$(\"#line_item_line_item_additional_properties\").removeClass('is-invalid');
                \$(\"#line_item_line_item_additional_properties\").removeClass('is-valid');
            }
            \$('#additionalPropertiesError').hide();
        } catch(e) {
            \$(\"#line_item_line_item_additional_properties\").removeClass('is-valid');
            \$(\"#line_item_line_item_additional_properties\").addClass('is-invalid');
            \$('#additionalPropertiesError').show();
        }
    }

    \$(\"#additionalPropertiesFormat\").click(function(event){
        checkAdditionalProperties();
    });

    \$('form[name=line_item]').submit(function (evt) {
        checkAdditionalProperties();
        try {
            JSON.parse(\$(\"#line_item_line_item_additional_properties\").val() || \"{}\");
            return;
        } catch(e) {
            evt.preventDefault();
        }
    });

    \$( document ).ready(function() {
        checkAdditionalProperties();
    });
</script>
{% endblock body %}
", "platform/ags/createLineItem.html.twig", "C:\\wamp64\\www\\devkit-lti1p3-master-tool\\templates\\platform\\ags\\createLineItem.html.twig");
    }
}
