Feature: preview application by ID by admin

- added ApplicationPreview page for admin;
- added a new table to admin dashboard with applications in draft;
This commit is contained in:
Vitalii Kiiko
2024-11-13 13:52:48 +01:00
parent 3f3c663ec3
commit 095ecf03e3
13 changed files with 679 additions and 28 deletions

View File

@@ -35,6 +35,7 @@ import SoccorsoEditPreInstructor from './pages/SoccorsoEditPreInstructor';
import SoccorsoAddPreInstructor from './pages/SoccorsoAddPreInstructor';
import DomandeBeneficiario from './pages/DomandeBeneficiario';
import DomandaBeneficiario from './pages/DomandaBeneficiario';
import BandoApplicationPreview from './pages/BandoApplicationPreview';
const routes = ({ role, chosenCompanyId }) => {
@@ -92,7 +93,7 @@ const routes = ({ role, chosenCompanyId }) => {
{'ROLE_PRE_INSTRUCTOR' === role ? <DomandePreInstructor/> : null}
</DefaultLayout>}/>
<Route path="/domande/:id/" element={<DefaultLayout>
{'ROLE_SUPER_ADMIN' === role ? <PageNotFound/> : null}
{'ROLE_SUPER_ADMIN' === role ? <BandoApplicationPreview/> : null}
{'ROLE_BENEFICIARY' === role ? <DomandaBeneficiario/> : null}
{'ROLE_PRE_INSTRUCTOR' === role ? <DomandaEditPreInstructor/> : null}
</DefaultLayout>}/>