Merge pull request #890 from Invis1ble/fix-889

Fixed placeholder translations #889
This commit is contained in:
William Durand 2016-08-04 11:03:43 +02:00 committed by GitHub
commit e6e424687e

View File

@ -263,7 +263,7 @@
<h4>Parameters</h4> <h4>Parameters</h4>
{% for name, infos in data.parameters %} {% for name, infos in data.parameters %}
{% if not infos.readonly %} {% if not infos.readonly %}
<p class="tuple" data-dataType="{% if infos.dataType %}{{ infos.dataType }}{% endif %}" data-format="{% if infos.format %}{{ infos.format }} {% endif %}" data-description="{% if infos.description %}{{ infos.description }}{% endif %}"> <p class="tuple" data-dataType="{% if infos.dataType %}{{ infos.dataType }}{% endif %}" data-format="{% if infos.format %}{{ infos.format }} {% endif %}" data-description="{% if infos.description %}{{ infos.description|trans }}{% endif %}">
<input type="text" class="key" value="{{ name }}" placeholder="Key" /> <input type="text" class="key" value="{{ name }}" placeholder="Key" />
<span>=</span> <span>=</span>
<select class="tuple_type"> <select class="tuple_type">
@ -273,7 +273,7 @@
<option value="file">File</option> <option value="file">File</option>
<option value="textarea">Textarea</option> <option value="textarea">Textarea</option>
</select> </select>
<input type="text" class="value" placeholder="{% if infos.dataType %}[{{ infos.dataType }}] {% endif %}{% if infos.format %}{{ infos.format }}{% endif %}{% if infos.description %}{{ infos.description }}{% else %}Value{% endif %}" {% if infos.default is defined %} value="{{ infos.default }}" {% endif %}/> <span class="remove">-</span> <input type="text" class="value" placeholder="{% if infos.dataType %}[{{ infos.dataType }}] {% endif %}{% if infos.format %}{{ infos.format }}{% endif %}{% if infos.description %}{{ infos.description|trans }}{% else %}Value{% endif %}" {% if infos.default is defined %} value="{{ infos.default }}" {% endif %}/> <span class="remove">-</span>
</p> </p>
{% endif %} {% endif %}
{% endfor %} {% endfor %}