Maintain the order of the input alternatives

This commit is contained in:
Eelco Dolstra 2013-10-03 20:03:57 +02:00
parent 550bf210fe
commit ee5b655535
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@
[% INCLUDE renderSelection curValue=input.type param="$baseName-type" options=inputTypes %] [% INCLUDE renderSelection curValue=input.type param="$baseName-type" options=inputTypes %]
</td> </td>
<td class="inputalts" id="[% baseName %]"> <td class="inputalts" id="[% baseName %]">
[% FOREACH alt IN input.jobsetinputalts %] [% FOREACH alt IN input.search_related('jobsetinputalts', {}, { order_by => 'altnr' }) %]
<span class="inputalt"> <span class="inputalt">
[% INCLUDE renderJobsetInputAlt alt=alt name="$baseName-values" %] [% INCLUDE renderJobsetInputAlt alt=alt name="$baseName-values" %]
</span> </span>

View file

@ -12,7 +12,7 @@
[% INCLUDE renderSelection curValue=input.type param="$baseName-type" options=inputTypes %] [% INCLUDE renderSelection curValue=input.type param="$baseName-type" options=inputTypes %]
</td> </td>
<td class="inputalts" id="[% baseName %]"> <td class="inputalts" id="[% baseName %]">
[% FOREACH alt IN input.jobsetinputalts %] [% FOREACH alt IN input.search_related('jobsetinputalts', {}, { order_by => 'altnr' }) %]
<tt class="inputalt"> <tt class="inputalt">
[% IF input.type == "string" %] [% IF input.type == "string" %]
"[% HTML.escape(alt.value) %]" "[% HTML.escape(alt.value) %]"