@@ -1,5 +1,7 @@
|
||||
import { Head, Link, useForm } from '@inertiajs/react';
|
||||
import {
|
||||
ActionBar,
|
||||
TableViewport,
|
||||
PageTitle,
|
||||
Panel,
|
||||
FormErrors,
|
||||
@@ -130,7 +132,7 @@ export default function Reports(props: Props) {
|
||||
title="Relatórios"
|
||||
description="Dados reutilizados dos processos que está autorizado a consultar, no contexto seleccionado."
|
||||
/>
|
||||
<div className="people-report-tools flex flex-wrap gap-3">
|
||||
<ActionBar className="people-report-tools">
|
||||
<Link
|
||||
href={`/pessoas/relatorios?${new URLSearchParams({ ...props.filters, view: 'deadlines' }).toString()}`}
|
||||
>
|
||||
@@ -161,7 +163,7 @@ export default function Reports(props: Props) {
|
||||
>
|
||||
Exportar resultados em CSV
|
||||
</a>
|
||||
</div>
|
||||
</ActionBar>
|
||||
<div className="people-report-tools">
|
||||
<Panel
|
||||
title="Filtrar relatório"
|
||||
@@ -292,12 +294,12 @@ export default function Reports(props: Props) {
|
||||
}
|
||||
/>
|
||||
</label>
|
||||
<div className="flex items-end gap-3">
|
||||
<ActionBar>
|
||||
<Button disabled={form.processing}>
|
||||
Aplicar filtros
|
||||
</Button>
|
||||
<Link href="/pessoas/relatorios">Limpar</Link>
|
||||
</div>
|
||||
</ActionBar>
|
||||
<FormErrors errors={form.errors} />
|
||||
</form>
|
||||
</Panel>
|
||||
@@ -341,7 +343,7 @@ export default function Reports(props: Props) {
|
||||
trabalho da equipa; o mesmo processo pode ter várias
|
||||
ocorrências.
|
||||
</p>
|
||||
<div className="overflow-x-auto">
|
||||
<TableViewport>
|
||||
<table className="w-full text-left text-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -388,7 +390,7 @@ export default function Reports(props: Props) {
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</TableViewport>
|
||||
{props.deadlineReport.items.length === 0 && (
|
||||
<p className="mt-3">
|
||||
Sem intervenções ou alertas visíveis neste
|
||||
@@ -592,7 +594,7 @@ export default function Reports(props: Props) {
|
||||
? ` · Pesquisa: ${props.filters.search}`
|
||||
: ''}
|
||||
</p>
|
||||
<div className="overflow-x-auto">
|
||||
<TableViewport>
|
||||
<table className="w-full text-left text-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -641,7 +643,7 @@ export default function Reports(props: Props) {
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</TableViewport>
|
||||
<div className="people-report-tools mt-4 flex gap-4">
|
||||
{props.processes.prev_page_url && (
|
||||
<Link href={props.processes.prev_page_url}>
|
||||
|
||||
Reference in New Issue
Block a user