Skip to content

Commit

Permalink
Preenchimento automático da data [Issue #806]
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPintoSouza committed Nov 26, 2024
1 parent cd5a2f2 commit 69a66d3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,12 @@
<div class="form-group mb-2 col-xs-6">

<div class="data">
<?php
$dataVencimento = new DateTime();
$dataVencimento = $dataVencimento->modify('+7 days')->format('Y-m-d');
?>
<label for="data_vencimento">Data de vencimento (se não for boleto único será a data de vencimento da primeira parcela)</label>
<input type="date" class="form-control" min=<?php echo date('Y-m-d'); ?> id="data_vencimento" name="data_vencimento" placeholder="Data vencimento" required>
<input type="date" class="form-control" min=<?php echo date('Y-m-d'); ?> id="data_vencimento" name="data_vencimento" placeholder="Data vencimento" value="<?=$dataVencimento?>" required>
</div>

</div>
Expand Down

0 comments on commit 69a66d3

Please sign in to comment.