|
|
|
|
@@ -232,7 +232,7 @@ const paginationPages = getPaginationPages(page, totalPages);
|
|
|
|
|
type="text"
|
|
|
|
|
name="search"
|
|
|
|
|
placeholder="Search descriptions..."
|
|
|
|
|
class="input input-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors"
|
|
|
|
|
class="input input-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors w-full"
|
|
|
|
|
value={searchTerm}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
@@ -241,7 +241,7 @@ const paginationPages = getPaginationPages(page, totalPages);
|
|
|
|
|
<label class="label">
|
|
|
|
|
<span class="label-text font-medium">Client</span>
|
|
|
|
|
</label>
|
|
|
|
|
<select name="client" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors" onchange="this.form.submit()">
|
|
|
|
|
<select name="client" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors w-full" onchange="this.form.submit()">
|
|
|
|
|
<option value="">All Clients</option>
|
|
|
|
|
{allClients.map(client => (
|
|
|
|
|
<option value={client.id} selected={filterClient === client.id}>
|
|
|
|
|
@@ -255,7 +255,7 @@ const paginationPages = getPaginationPages(page, totalPages);
|
|
|
|
|
<label class="label">
|
|
|
|
|
<span class="label-text font-medium">Category</span>
|
|
|
|
|
</label>
|
|
|
|
|
<select name="category" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors" onchange="this.form.submit()">
|
|
|
|
|
<select name="category" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors w-full" onchange="this.form.submit()">
|
|
|
|
|
<option value="">All Categories</option>
|
|
|
|
|
{allCategories.map(category => (
|
|
|
|
|
<option value={category.id} selected={filterCategory === category.id}>
|
|
|
|
|
@@ -269,7 +269,7 @@ const paginationPages = getPaginationPages(page, totalPages);
|
|
|
|
|
<label class="label">
|
|
|
|
|
<span class="label-text font-medium">Status</span>
|
|
|
|
|
</label>
|
|
|
|
|
<select name="status" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors" onchange="this.form.submit()">
|
|
|
|
|
<select name="status" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors w-full" onchange="this.form.submit()">
|
|
|
|
|
<option value="" selected={filterStatus === ''}>All Entries</option>
|
|
|
|
|
<option value="completed" selected={filterStatus === 'completed'}>Completed</option>
|
|
|
|
|
<option value="running" selected={filterStatus === 'running'}>Running</option>
|
|
|
|
|
@@ -280,7 +280,7 @@ const paginationPages = getPaginationPages(page, totalPages);
|
|
|
|
|
<label class="label">
|
|
|
|
|
<span class="label-text font-medium">Entry Type</span>
|
|
|
|
|
</label>
|
|
|
|
|
<select name="type" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors" onchange="this.form.submit()">
|
|
|
|
|
<select name="type" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors w-full" onchange="this.form.submit()">
|
|
|
|
|
<option value="" selected={filterType === ''}>All Types</option>
|
|
|
|
|
<option value="timed" selected={filterType === 'timed'}>Timed</option>
|
|
|
|
|
<option value="manual" selected={filterType === 'manual'}>Manual</option>
|
|
|
|
|
@@ -291,7 +291,7 @@ const paginationPages = getPaginationPages(page, totalPages);
|
|
|
|
|
<label class="label">
|
|
|
|
|
<span class="label-text font-medium">Sort By</span>
|
|
|
|
|
</label>
|
|
|
|
|
<select name="sort" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors" onchange="this.form.submit()">
|
|
|
|
|
<select name="sort" class="select select-bordered bg-base-300/50 hover:bg-base-300 focus:bg-base-300 border-base-300/50 focus:border-primary transition-colors w-full" onchange="this.form.submit()">
|
|
|
|
|
<option value="start-desc" selected={sortBy === 'start-desc'}>Newest First</option>
|
|
|
|
|
<option value="start-asc" selected={sortBy === 'start-asc'}>Oldest First</option>
|
|
|
|
|
<option value="duration-desc" selected={sortBy === 'duration-desc'}>Longest Duration</option>
|
|
|
|
|
|