poprawki w synchronizacji produktow

This commit is contained in:
Mateusz Gruszczyński
2025-07-07 16:29:06 +02:00
parent cd2ad6df0b
commit a4ad7ba58c
4 changed files with 83 additions and 11 deletions

View File

@@ -41,7 +41,7 @@
✅ Istnieje (ID: {{ suggestion.id }})
<a href="/admin/delete_suggestion/{{ suggestion.id }}" class="btn btn-sm btn-outline-danger ms-1">🗑️ Usuń</a>
{% else %}
<a href="/admin/sync_suggestion/{{ item.name }}" class="btn btn-sm btn-outline-primary">🔄 Synchronizuj</a>
<button class="btn btn-sm btn-outline-primary sync-btn" data-item-id="{{ item.id }}">🔄 Synchronizuj</button>
{% endif %}
</td>
<td>
@@ -59,4 +59,9 @@
</div>
</div>
{% block scripts %}
<script src="{{ url_for('static_bp.serve_js', filename='sync_products.js') }}"></script>
{% endblock %}
{% endblock %}