Fix: only filters were used to build the sandbox form

This commit is contained in:
kphoen 2012-07-02 21:52:03 +01:00
parent b74273b72d
commit c8792f8b53

View File

@ -102,6 +102,15 @@
<form method="{{ data.method|upper }}" action="{{ data.uri }}"> <form method="{{ data.method|upper }}" action="{{ data.uri }}">
<fieldset class="parameters"> <fieldset class="parameters">
<legend>Parameters</legend> <legend>Parameters</legend>
{% if data.parameters is defined %}
{% for name, infos in data.parameters %}
<p class="tuple">
<input type="text" class="key" value="{{ name }}" placeholder="Key" />
<span>=</span>
<input type="text" class="value" placeholder="{% if infos.dataType %}[{{ infos.dataType }}] {% endif %}{% if infos.description %}{{ infos.description }}{% else %}Value{% endif %}" /> <span class="remove">-</span>
</p>
{% endfor %}
{% endif %}
{% if data.filters is defined %} {% if data.filters is defined %}
{% for name, infos in data.filters %} {% for name, infos in data.filters %}
<p class="tuple"> <p class="tuple">