Overview
Comment: | Pre-select CSV column if label matches as well |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
80fda314c368a3194bb6067836694c3e |
User & Date: | bohwaz on 2023-02-06 22:22:20 |
Other Links: | manifest | tags |
Context
2023-02-07
| ||
01:26 | Implement urlencode modifier in Brindille check-in: b08dd94154 user: bohwaz tags: trunk, stable | |
2023-02-06
| ||
22:22 | Pre-select CSV column if label matches as well check-in: 80fda314c3 user: bohwaz tags: trunk, stable | |
2023-02-04
| ||
00:35 | Humm listGroupedWithFees is actually expecting an int now, that's why it was changed that way, so let's make it clearer, and stick to a boolean for the form check-in: 15f737c984 user: bohwaz tags: trunk, stable | |
Changes
Modified src/templates/common/_csv_match_columns.tpl from [f3ffdaa36b] to [4bffb2b7bc].
︙ | ︙ | |||
19 20 21 22 23 24 25 | <tr> <th>{$csv_field}</th> <td class="help">{icon shape="right"}</td> <td> <select name="translation_table[{$index}]"> <option value="">-- Ne pas importer cette colonne</option> {foreach from=$csv->getColumnsWithDefaults() item="column"} | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <tr> <th>{$csv_field}</th> <td class="help">{icon shape="right"}</td> <td> <select name="translation_table[{$index}]"> <option value="">-- Ne pas importer cette colonne</option> {foreach from=$csv->getColumnsWithDefaults() item="column"} <option value="{$column.key}" {if $csv_field == $column.match || $csv_field == $column.label}selected="selected"{/if}>{$column.label}</option> {/foreach} </select> </td> </tr> {/foreach} </tbody> </table> </dd> </dl> </fieldset> |