Update templates and configuration

- Fix item edit template with proper form structure
- Update items template with correct Bootstrap classes
- Fix Apache configuration for proper routing
- Update main index.php for correct redirects
- Improves UI consistency and navigation flow
This commit is contained in:
Edwin
2025-11-12 16:30:00 +00:00
parent 4161c9739f
commit 62459f336c
4 changed files with 43 additions and 18 deletions

View File

@@ -40,9 +40,13 @@
{% if item.image %}
<img src="{{ item.image }}" alt="Image" style="max-width: 100px; max-height: 100px;">
{% endif %}
{% if item.location %}
<p><strong>{{ trans('Location') }}:</strong> {{ item.location }}</p>
{% endif %}
{% if item.location %}
<p><strong>{{ trans('Location') }}:</strong> {{ item.location }}</p>
{% endif %}
<p><small class="text-muted">
<strong>{{ trans('Created') }}:</strong> {{ item.created_at|date('d-m-Y H:i') }}<br>
<strong>{{ trans('Updated') }}:</strong> {{ item.updated_at|date('d-m-Y H:i') }}
</small></p>
</div>
<div>
<button class="btn btn-sm btn-warning me-2 edit-btn" data-id="{{ item.id }}">{{ trans('Edit') }}</button>

View File

@@ -27,6 +27,16 @@
<label for="edit_location" class="form-label">Location</label>
<input type="text" class="form-control" id="edit_location" value="{{ item.location }}">
</div>
<div class="mb-3">
<label class="form-label">Created</label>
<input type="text" class="form-control" value="{{ item.created_at|date('d-m-Y H:i') }}" readonly>
</div>
<div class="mb-3">
<label class="form-label">Last Updated</label>
<input type="text" class="form-control" value="{{ item.updated_at|date('d-m-Y H:i') }}" readonly>
</div>
</div>
<div class="col-md-6">