forked from MapComplete/MapComplete
Themes(toilets): add an allowed range to some freeform inputs, allow to specify 'units' in the freeform, add the possibility to convert units
This commit is contained in:
parent
e71a80732e
commit
1e0ac3febf
16 changed files with 270 additions and 103 deletions
|
|
@ -53,6 +53,7 @@
|
|||
type={config.freeform.type}
|
||||
{placeholder}
|
||||
{value}
|
||||
range={config.freeform.range}
|
||||
/>
|
||||
</Inline>
|
||||
{:else if InputHelpers.hideInputField.indexOf(config.freeform.type) < 0}
|
||||
|
|
@ -66,6 +67,7 @@
|
|||
{placeholder}
|
||||
{value}
|
||||
{unvalidatedText}
|
||||
range={config.freeform.range}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
|
|
|
|||
|
|
@ -221,7 +221,8 @@
|
|||
$freeformInput,
|
||||
selectedMapping,
|
||||
checkedMappings,
|
||||
tags.data
|
||||
tags.data,
|
||||
unit
|
||||
)
|
||||
if (featureSwitchIsDebugging?.data) {
|
||||
console.log(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue