This commit is contained in:
merelendor 2023-11-13 22:52:34 +03:00
commit f1a71fcd5d
2 changed files with 13 additions and 10 deletions

View File

@ -332,7 +332,7 @@ class Form_1_Main extends QuestionnaireForm
name="licenses"
placeholder="Укажите, если деятельность подлежит лицензированию"
onChange={ (event) => { this._removeError("licenses"); this._handle_onTextFieldChange(event.target.name, event.target.value); } }
required={ true }
required={ false }
disabled={ checking }
defaultValue={ this._checkStrValue(licenses) }
/>

View File

@ -169,15 +169,18 @@ export default async function handler(req, res)
color: rgb(0.87, 0.87, 0.87),
});
page.drawText(questionnaire[group], {
x: 152,
y: questionnaire[group].length > 500 ? 195 : (questionnaire[group].length > 400) ? 195 : 193,
size: questionnaire[group].length > 500 ? 4 : (questionnaire[group].length > 400) ? 5 : 6,
font: formFont,
color: rgb(0, 0, 0),
maxWidth: 412,
lineHeight: questionnaire[group].length > 500 ? 4 : (questionnaire[group].length > 400) ? 5 : 6,
});
if(questionnaire[group] !== null)
{
page.drawText(questionnaire[group], {
x: 152,
y: questionnaire[group].length > 500 ? 195 : (questionnaire[group].length > 400) ? 195 : 193,
size: questionnaire[group].length > 500 ? 4 : (questionnaire[group].length > 400) ? 5 : 6,
font: formFont,
color: rgb(0, 0, 0),
maxWidth: 412,
lineHeight: questionnaire[group].length > 500 ? 4 : (questionnaire[group].length > 400) ? 5 : 6,
});
}
}
else if(group === "founder_persons")
{