Add Allegro import functionality and enhance product history management

This commit is contained in:
2025-01-01 23:34:52 +01:00
parent 33442a110a
commit f32f40bc50
7 changed files with 257 additions and 6 deletions

View File

@@ -0,0 +1,35 @@
<form action="/allegro/import_data/" method="post" enctype="multipart/form-data">
<div class="admin-form theme-primary">
<div class="panel heading-border panel-primary">
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<? if ( $this -> offers_added ): ?>
<div class="alert alert-success" role="alert">
Dodano <?= $this -> offers_added; ?> ofert.
</div>
<? endif; ?>
<? if ( $this -> history_added ): ?>
<div class="alert alert-success" role="alert">
Dodano <?= $this -> history_added; ?> rekordów do historii.
</div>
<? endif; ?>
<? if ( $this -> history_updated ): ?>
<div class="alert alert-success" role="alert">
Zaktualizowano <?= $this -> history_updated; ?> rekordów w historii.
</div>
<? endif; ?>
</div>
</div>
<div class="row">
<div class="col-md-5">
<input type="file" id="file" name="file">
</div>
<div class="col-md-2">
<button type="submit" class="btn btn-primary">Importuj</button>
</div>
</div>
</div>
</div>
</div>
</form>