feat: auto-suggest KS-2/KS-3 document numbers
This commit is contained in:
@@ -21,29 +21,29 @@
|
||||
<div class="col-md-3">
|
||||
<label for="number" class="form-label">Номер КС-3</label>
|
||||
<input type="text" class="form-control" id="number" name="number" required
|
||||
value="{{ document.number if document else '' }}">
|
||||
value="{{ form_values.get('number', document.number if document else suggested_number) }}">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="document_date" class="form-label">Дата</label>
|
||||
<input type="date" class="form-control" id="document_date" name="document_date" required
|
||||
value="{{ document.date.isoformat() if document else '' }}">
|
||||
value="{{ form_values.get('document_date', document.date.isoformat() if document else '') }}">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="reporting_period_from" class="form-label">Период с</label>
|
||||
<input type="date" class="form-control" id="reporting_period_from" name="reporting_period_from" required
|
||||
value="{{ document.reporting_period_from.isoformat() if document and document.reporting_period_from else '' }}">
|
||||
value="{{ form_values.get('reporting_period_from', document.reporting_period_from.isoformat() if document and document.reporting_period_from else '') }}">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label for="reporting_period_to" class="form-label">Период по</label>
|
||||
<input type="date" class="form-control" id="reporting_period_to" name="reporting_period_to" required
|
||||
value="{{ document.reporting_period_to.isoformat() if document and document.reporting_period_to else '' }}">
|
||||
value="{{ form_values.get('reporting_period_to', document.reporting_period_to.isoformat() if document and document.reporting_period_to else '') }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-12">
|
||||
<label for="comment" class="form-label">Комментарий</label>
|
||||
<input type="text" class="form-control" id="comment" name="comment"
|
||||
value="{{ document.comment if document and document.comment else '' }}">
|
||||
value="{{ form_values.get('comment', document.comment if document and document.comment else '') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user