permission("npa") && ! $_SESSION["utente"]->readOnly) : ?> printAlertModalButton() ?> cardCanDoRequest($canDoRequestResponseError); if(!$canDoRequest && !$_SESSION["utente"]->isSupportoOrRoot()) { $infoScheda = new stdClass(); if(!empty($npa->scheda["info"])) { $infoScheda = unserialize($npa->scheda["info"]); } $infoScheda->lastCantDoRequest = $canDoRequestResponseError; $npa->updateScheda(["info" => serialize($infoScheda)]); } if(!$canDoRequest) { $alertManager->addDangerAlert($canDoRequestResponseError["msg"]); } ?> getErrorsDictionary(); if($npa->scheda["stato"] < 40) { if ($npa->check["espd"]["required"] ?? false) { if(!$npa->check["espd"]["ready"] ?? false) { $alertManager->addDangerAlert(__("Attenzione, per procedere è necessario configurare il documento XML di richiesta DGUE")); $canDoRequest = false; } } if ($npa->check["eform"]["required"] ?? false ) { if(!$npa->check["eform"]["ready"] ?? false) { $alertManager->addDangerAlert(__("Attenzione, per procedere è necessario configurare il documento XML per la pubblicazione GUUE")); $canDoRequest = false; } } if(!$npa->checkSoglia()) { $alertManager->addDangerAlert(__("Attenzione, questa scheda è utilizzabile solo per gare sottosoglia, mentre la gara è ora soprasoglia.")); $canDoRequest = false; $lock = true; } } ?> isSupportoOrRoot()): ?> isCardDeletable($elimina_text, $deletableServerSide); $pendingCancellazione = ($npa->scheda["pending_cancellazione"] ?? "N") == "S"; if($deletable && !$deletableServerSide && !$pendingCancellazione): ?> isCardRectifiable()): ?> canSyncScheda()): ?> isCardModifiable()): ?> check["eform"]["required"]): ?> addWarningAlert(__("Modifica non disponibile. Attendere la fine della pubblicazione e procedere con rettifica.")); ?> isSupportoOrRoot()): ?> fascicolo["data"]) && ($npa->scheda["stato"] <= 100 || ($deletable && $deletableServerSide))) { if(! $_SESSION["utente"]->isSupporto()) { if(!$canDoRequest) { // Se l'utente non è autenticato con spid if(($canDoRequestResponseError["code"] ?? "")== "AUTH") { SpidSA::printSmallLoginButton(); } else { ?> scheda["codice"])) : ?> scheda["codice_rettifica"])): ?> checkIfCardNeedsXMLDocument() && ($npa->scheda["stato"] == 10 || ($npa->scheda["stato"] > 10 && $npa->scheda["stato"] <= 40 && $npa->scheda["errore"] == "SI"))) : ?> href="javascript:void(0)" onclick="rectifyCard('scheda['codice'] ?>', 'scheda['id_scheda'] ?>')"> scheda["stato"] == 90 && $npa->scheda["errore"] == "NO") : ?> scheda["codice_modifica"])): ?> checkIfCardNeedsXMLDocument() && ($npa->scheda["stato"] == 10 || ($npa->scheda["stato"] > 10 && $npa->scheda["stato"] <= 40 && $npa->scheda["errore"] == "SI"))) : ?> href="javascript:void(0)" onclick="modifyCard('scheda['codice'] ?>', 'scheda['id_scheda'] ?>')"> scheda["stato"] == 90 && $npa->scheda["errore"] == "NO") : ?> checkIfCardNeedsXMLDocument() && ($npa->scheda["stato"] == 10 || ($npa->scheda["stato"] > 10 && $npa->scheda["stato"] <= 40 && $npa->scheda["errore"] == "SI"))) : ?> href="javascript:void(0)" onclick="dispatchCard('scheda['codice'] ?>', 'scheda['id_scheda'] ?>')"> canBeConfirmed($confirmRecovery)): ?> scheda["stato"] == 20 ? __("Conferma Scheda") : __("Ottieni esito conferma")) ?> canBePublished()) : ?> scheda["stato"] == NuovaPiattaformaAppalti::TRASMITTED_STATO ? __("Pubblica Scheda") : __("Ottieni esito pubblicazione") ?> scheda["stato"] == 100 ) && $npa->scheda["errore"] == "NO" && DEVELOP_ENV) : ?> DBG: Forza refresh stato pubblicazione
isSupporto()) : ?>