|
21 | 21 | use Models\Module; |
22 | 22 | use Modules\Contratti\Stato; |
23 | 23 |
|
24 | | -$block_edit = $record['is_completato']; |
| 24 | +$block_edit = $record['is_bloccato']; |
25 | 25 | $data_accettazione = $record['data_accettazione'] ? strtotime((string) $record['data_accettazione']) : ''; |
26 | 26 | $data_conclusione = $record['data_conclusione'] ? strtotime((string) $record['data_conclusione']) : ''; |
27 | 27 |
|
|
215 | 215 | <div class="card card-primary collapsable <?php echo ($record['tipo_anagrafica'] == 'Ente pubblico' || $record['tipo_anagrafica'] == 'Azienda') ? 'show' : 'hide'; ?> <?php echo $collapsed; ?>"> |
216 | 216 | <div class=" card-header"> |
217 | 217 | <h4 class=" card-title"> |
218 | | - |
| 218 | + |
219 | 219 | <?php echo tr('Dati appalto'); ?></h4> |
220 | 220 |
|
221 | 221 | <div class="card-tools pull-right"> |
222 | 222 | <button type="button" class="btn btn-tool" data-card-widget="collapse"> |
223 | 223 | <i class="fa fa-plus"></i> |
224 | 224 | </button> |
225 | 225 | </div> |
226 | | - |
| 226 | + |
227 | 227 | </div> |
228 | 228 | <div class="card-body"> |
229 | 229 | <div class="row"> |
|
245 | 245 | </div> |
246 | 246 | </div> |
247 | 247 | </div> |
248 | | - |
| 248 | + |
249 | 249 |
|
250 | 250 | <!-- COSTI --> |
251 | 251 | <div class="card card-primary"> |
|
393 | 393 | <button title="'.tr('Aggiungi articolo alla vendita').'" class="btn btn-primary tip" type="button" onclick="salvaArticolo()"> |
394 | 394 | <i class="fa fa-plus"></i> '.tr('Aggiungi').' |
395 | 395 | </button> |
396 | | - |
| 396 | +
|
397 | 397 | <a class="btn btn-primary" onclick="gestioneRiga(this)" data-title="'.tr('Aggiungi riga').'"> |
398 | 398 | <i class="fa fa-plus"></i> '.tr('Riga').' |
399 | 399 | </a> |
400 | | - |
| 400 | +
|
401 | 401 | <div class="btn-group tip" data-card-widget="tooltip"> |
402 | 402 | <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
403 | 403 | <i class="fa fa-list"></i> '.tr('Altro').' |
@@ -476,7 +476,7 @@ function caricaRighe(id_riga) { |
476 | 476 |
|
477 | 477 | $(document).ready(function() { |
478 | 478 | caricaRighe(null); |
479 | | - |
| 479 | +
|
480 | 480 | $("#data_accettazione").on("dp.change", function() { |
481 | 481 | if($(this).val()){ |
482 | 482 | $("#data_rifiuto").attr("disabled", true); |
@@ -557,7 +557,7 @@ function caricaRighe(id_riga) { |
557 | 557 | async function salvaArticolo() { |
558 | 558 | // Salvataggio via AJAX |
559 | 559 | await salvaForm("#edit-form"); |
560 | | - |
| 560 | +
|
561 | 561 | $("#link_form").ajaxSubmit({ |
562 | 562 | url: globals.rootdir + "/actions.php", |
563 | 563 | data: { |
|
0 commit comments