Files
orderPRO/resources/views/users/index.php
Jacek Pyziak c489891d15 Add Orders and Order Status repositories with pagination and management features
- Implemented OrdersRepository for handling order data with pagination, filtering, and sorting capabilities.
- Added methods for retrieving order status options, quick stats, and detailed order information.
- Created OrderStatusRepository for managing order status groups and statuses, including CRUD operations and sorting.
- Introduced a bootstrap file for test environment setup and autoloading.
2026-03-03 01:32:28 +01:00

44 lines
1.5 KiB
PHP

<section class="card">
<h2 class="section-title"><?= $e($t('users.title')) ?></h2>
<p class="muted mt-12"><?= $e($t('users.description')) ?></p>
</section>
<section class="card mt-16">
<h2 class="section-title"><?= $e($t('users.create_title')) ?></h2>
<?php if (!empty($errorMessage)): ?>
<div class="alert alert--danger mt-12" role="alert">
<?= $e($errorMessage) ?>
</div>
<?php endif; ?>
<?php if (!empty($successMessage)): ?>
<div class="alert alert--success mt-12" role="status">
<?= $e($successMessage) ?>
</div>
<?php endif; ?>
<form class="users-form mt-16" action="/settings/users" method="post" novalidate>
<input type="hidden" name="_token" value="<?= $e($csrfToken ?? '') ?>">
<label class="form-field">
<span class="field-label"><?= $e($t('users.fields.name')) ?></span>
<input class="form-control" type="text" name="name" required value="<?= $e($oldName ?? '') ?>">
</label>
<label class="form-field">
<span class="field-label"><?= $e($t('users.fields.email')) ?></span>
<input class="form-control" type="email" name="email" required value="<?= $e($oldEmail ?? '') ?>">
</label>
<label class="form-field">
<span class="field-label"><?= $e($t('users.fields.password')) ?></span>
<input class="form-control" type="password" name="password" required>
</label>
<button type="submit" class="btn btn--primary"><?= $e($t('users.actions.add_user')) ?></button>
</form>
</section>
<?php require __DIR__ . '/../components/table-list.php'; ?>