Files
bflows-bandi-fe/src/pages/BandoEdit/components/BandoEditFormActions/index.js
Vitalii Kiiko b08e2d46c0 Make some call fields editable after publishing the call
- call form fields are editable (according to the list of keys);
- some parts of the form are editable;
2024-11-14 14:27:19 +01:00

36 lines
1.3 KiB
JavaScript

import React from 'react';
import { __ } from '@wordpress/i18n';
import { isNil } from 'ramda';
// components
import { Button } from 'primereact/button';
const BandoEditFormActions = ({ id, openPreview, openPreviewEvaluation, submitFn, status }) => {
return (
<div className="appPageSection">
<div className="appPageSection__actions">
<Button
type="button"
onClick={submitFn}
label={status === 'PUBLISH'
? __('Modifica', 'gepafin')
: __('Salva bozza', 'gepafin')} icon="pi pi-save" iconPos="right"/>
<Button
type="button"
disabled={isNil(id)}
outlined
onClick={openPreview}
label={__('Anteprima beneficiario', 'gepafin')} icon="pi pi-eye" iconPos="right"/>
<Button
type="button"
disabled={true}
outlined
onClick={openPreviewEvaluation}
label={__('Anteprima pre-istruttoria', 'gepafin')} icon="pi pi-eye"
iconPos="right"/>
</div>
</div>
)
}
export default BandoEditFormActions;