{% extends "FormGenerator/modal.html.twig" %}

{% block scripts_page %}
{{ parent() }}

<script>
    $("input[name='{{typeaheadInput}}']").typeahead({
	    source: function(query, process) {
	      return $.getJSON('{{typeaheadUrl}}', { name : query}, function(data) {
		      return process(data);
	      });
	    }
    });
</script>
{% endblock %}
{% extends "FormGenerator/modal.html.twig" %}

{% block scripts_page %}
{{ parent() }}

<script>
    $("input[name='{{typeaheadInput}}']").typeahead({
	    source: function(query, process) {
	      return $.getJSON('{{typeaheadUrl}}', { input : query}, function(data) {
		      return process(data);
	      });
	    }
    });
</script>
{% endblock %}
Change typeahead query for generic form
Change typeahead query for generic form
