Better displaying of suggestions
This commit is contained in:
parent
f7fff97e26
commit
47754d1e74
|
@ -34,13 +34,11 @@
|
||||||
<br />
|
<br />
|
||||||
{{ form.fuzzy }}<label for="id_fuzzy">{% trans "Fuzzy" %}</label>
|
{{ form.fuzzy }}<label for="id_fuzzy">{% trans "Fuzzy" %}</label>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><th>{% trans "Location" %}</th>
|
|
||||||
<th>{% trans "Suggestions" %}</th>
|
|
||||||
</tr>
|
|
||||||
<tr><td>{{ unit.get_location_links }}</td>
|
|
||||||
<td colspan="3">
|
|
||||||
{% with unit.suggestions as suggestions %}
|
{% with unit.suggestions as suggestions %}
|
||||||
{% if suggestions %}
|
{% if suggestions %}
|
||||||
|
<tr>
|
||||||
|
<th>{% trans "Suggestions" %}</th>
|
||||||
|
<td class="suggestions">
|
||||||
<table>
|
<table>
|
||||||
{% for suggestion in suggestions %}
|
{% for suggestion in suggestions %}
|
||||||
<tr><td class="translatetext">{{ suggestion.target|fmttranslation }}</td></tr>
|
<tr><td class="translatetext">{{ suggestion.target|fmttranslation }}</td></tr>
|
||||||
|
@ -53,10 +51,13 @@
|
||||||
</td>
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
{% else %}
|
</td>
|
||||||
{% trans "There are no suggestions for this string." %}
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
<tr>
|
||||||
|
<th>{% trans "Used in" %}</th>
|
||||||
|
<td>{{ unit.get_location_links }}</td>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><th>{% trans "Flags" %}</th></tr>
|
<tr><th>{% trans "Flags" %}</th></tr>
|
||||||
|
|
|
@ -68,4 +68,6 @@ td.translator {
|
||||||
td.translator textarea {
|
td.translator textarea {
|
||||||
width: 100%
|
width: 100%
|
||||||
}
|
}
|
||||||
|
td.suggestions table {
|
||||||
|
width: 100%
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user