@@ -1,6 +1,11 @@
|
||||
import { Head, Link, router } from '@inertiajs/react';
|
||||
import { useState } from 'react';
|
||||
import { PageTitle, Panel, controlClass } from '@/components/procurement';
|
||||
import {
|
||||
TableViewport,
|
||||
PageTitle,
|
||||
Panel,
|
||||
controlClass,
|
||||
} from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Input } from '@/components/ui/input';
|
||||
|
||||
@@ -126,7 +131,7 @@ export default function GeographyReview({
|
||||
{total.toLocaleString('pt-PT')} resultados · Página{' '}
|
||||
{filters.page} de {Math.max(1, Math.ceil(total / 50))}
|
||||
</p>
|
||||
<div className="overflow-x-auto">
|
||||
<TableViewport>
|
||||
<table className="w-full text-left text-sm">
|
||||
<thead className="border-b">
|
||||
<tr>
|
||||
@@ -169,7 +174,7 @@ export default function GeographyReview({
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</TableViewport>
|
||||
{records.length === 0 && (
|
||||
<p className="py-5 text-sm">
|
||||
Não existem pendências para estes filtros.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Head, useForm } from '@inertiajs/react';
|
||||
import {
|
||||
TableViewport,
|
||||
FormErrors,
|
||||
PageTitle,
|
||||
Panel,
|
||||
@@ -177,7 +178,7 @@ export default function CompanyPage({
|
||||
title="Equipa"
|
||||
description="O perfil define as operações disponíveis. Um administrador não substitui os aprovadores."
|
||||
>
|
||||
<div className="overflow-x-auto">
|
||||
<TableViewport>
|
||||
<table className="w-full text-left text-sm">
|
||||
<thead className="border-b text-muted-foreground">
|
||||
<tr>
|
||||
@@ -211,7 +212,7 @@ export default function CompanyPage({
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</TableViewport>
|
||||
<form
|
||||
className="mt-6 space-y-4 border-t pt-5"
|
||||
autoComplete="off"
|
||||
|
||||
@@ -12,6 +12,7 @@ import type { IntelligencePolicy } from '@/components/intelligence-settings';
|
||||
import { comparisonCriteria } from '@/components/comparison-policy-summary';
|
||||
import type { ComparisonPolicy } from '@/components/comparison-policy-summary';
|
||||
import {
|
||||
ActionBar,
|
||||
PageTitle,
|
||||
Panel,
|
||||
FormErrors,
|
||||
@@ -173,6 +174,7 @@ function Assignment({
|
||||
export default function Parameters({
|
||||
approvalLevels,
|
||||
approvalLevelsReady = false,
|
||||
expiryReady = false,
|
||||
requisitionCategoryOptions = {},
|
||||
companyDetails,
|
||||
companyDetailsReady,
|
||||
@@ -202,6 +204,7 @@ export default function Parameters({
|
||||
}: {
|
||||
approvalLevels?: RequisitionApprovalPlan | null;
|
||||
approvalLevelsReady?: boolean;
|
||||
expiryReady?: boolean;
|
||||
requisitionCategoryOptions?: Record<string, string>;
|
||||
companyDetails: CompanyDetails | null;
|
||||
companyDetailsReady: boolean;
|
||||
@@ -308,6 +311,15 @@ export default function Parameters({
|
||||
{notice}
|
||||
</p>
|
||||
)}
|
||||
{expiryReady && (
|
||||
<Link
|
||||
className="block underline"
|
||||
href="/administracao/prazos-aprovacao"
|
||||
>
|
||||
Configurar prazos, escalamento e expiração das
|
||||
aprovações
|
||||
</Link>
|
||||
)}
|
||||
{activationPreview && (
|
||||
<OrganizationActivationPreview
|
||||
preview={activationPreview}
|
||||
@@ -908,7 +920,7 @@ export default function Parameters({
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
<div className="flex gap-3">
|
||||
<ActionBar>
|
||||
<Button disabled={profile.processing}>
|
||||
{profile.data.id
|
||||
? 'Actualizar perfil'
|
||||
@@ -929,7 +941,7 @@ export default function Parameters({
|
||||
>
|
||||
Novo perfil
|
||||
</Button>
|
||||
</div>
|
||||
</ActionBar>
|
||||
</form>
|
||||
</Panel>
|
||||
<Panel title="Utilizadores e atribuições">
|
||||
|
||||
Reference in New Issue
Block a user