Merge pull request #362 from betagouv/bug-passer-commune
Bug "passer" pour la question de la communepull/364/head
commit
a0831d4317
|
@ -62,32 +62,40 @@ export var FormDecorator = formType => RenderField =>
|
|||
|
||||
return (
|
||||
<div className={classNames('step', formType)}>
|
||||
<div className="unfoldedHeader">
|
||||
<div className="step-question">
|
||||
<h1> {this.props.question} {!inversion && <Explicable dottedName={fieldName}/>}</h1>
|
||||
<div
|
||||
className="step-subquestion"
|
||||
dangerouslySetInnerHTML={{ __html: subquestion }}
|
||||
/>
|
||||
</div>
|
||||
<div className="unfoldedHeader">
|
||||
<div className="step-question">
|
||||
<h1>
|
||||
{' '}
|
||||
{this.props.question}{' '}
|
||||
{!inversion && <Explicable dottedName={fieldName} />}
|
||||
</h1>
|
||||
<div
|
||||
className="step-subquestion"
|
||||
dangerouslySetInnerHTML={{ __html: subquestion }}
|
||||
/>
|
||||
</div>
|
||||
{defaultValue != null && (
|
||||
<IgnoreStepButton
|
||||
action={() => {
|
||||
setFormValue(fieldName, '' + defaultValue)
|
||||
submit('ignore')
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<fieldset>
|
||||
|
||||
<Field
|
||||
component={RenderField}
|
||||
name={fieldName}
|
||||
{...stepProps}
|
||||
themeColours={themeColours}
|
||||
/>
|
||||
</fieldset>
|
||||
</div>
|
||||
{defaultValue != null && (
|
||||
<IgnoreStepButton
|
||||
action={() => {
|
||||
setFormValue(
|
||||
fieldName,
|
||||
typeof defaultValue == 'object'
|
||||
? JSON.stringify(defaultValue)
|
||||
: '' + defaultValue
|
||||
)
|
||||
submit('ignore')
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<fieldset>
|
||||
<Field
|
||||
component={RenderField}
|
||||
name={fieldName}
|
||||
{...stepProps}
|
||||
themeColours={themeColours}
|
||||
/>
|
||||
</fieldset>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -855,9 +855,7 @@ entreprise . association non lucrative:
|
|||
calculées à l'échelle de l'établissement et sont fonction de règlementations
|
||||
locales.
|
||||
suggestions.fr: utilisation d'une API
|
||||
établissement . commune:
|
||||
titre.en: City of the establishment
|
||||
titre.fr: Commune de l'établissement
|
||||
établissement . localisation:
|
||||
question.en: In which city is the establishment located?
|
||||
question.fr: Dans quelle commune l'établissement est-il implanté ?
|
||||
description.en: |-
|
||||
|
|
Loading…
Reference in New Issue