diff --git a/src/template/editing-form-template.js b/src/template/editing-form-template.js index 576bb96..9762045 100644 --- a/src/template/editing-form-template.js +++ b/src/template/editing-form-template.js @@ -45,12 +45,19 @@ function createResetButtonTemplate({ type, isDisabled, isDeleting }) { ${isDisabled ? 'disabled' : ''}>${label}`; } +function createRollupButton(isDisabled) { + return ` + `; +} + function createControlsButtonsTemplate({ type, isSaving, isDeleting, isDisabled }) { return `${createResetButtonTemplate(type)} - ${type === EditingType.UPDATE ? createRollupBtn() : ''} + ${type === EditingType.UPDATE ? createRollupButton() : ''} ${createSaveButtonTemplate({ isSaving, isDisabled })} ${createResetButtonTemplate({ type, isDeleting, isDisabled })} - ${type === EditingType.UPDATE ? createRollupBtn(isDisabled) : ''}`; + ${type === EditingType.UPDATE ? createRollupButton(isDisabled) : ''}`; } function createEditPointTemplate({state, pointDestinations, /* pointOffers */}) {