Add staff visibility workstation enrollment registration vault and category task views
This commit is contained in:
@@ -22,9 +22,12 @@
|
||||
<option value="linked" {% if link_status == 'linked' %}selected{% endif %}>Linked to login user</option>
|
||||
<option value="unlinked" {% if link_status == 'unlinked' %}selected{% endif %}>Not linked to login user</option>
|
||||
</select>
|
||||
<label class="inline-flex items-center gap-2 rounded-xl border border-slate-300 px-3 py-2 text-sm text-slate-700">
|
||||
<input type="checkbox" name="include_inactive" value="1" {% if include_inactive %}checked{% endif %}> Include inactive
|
||||
</label>
|
||||
<select name="status" class="rounded-xl border border-slate-300 px-3 py-2 text-sm text-slate-700">
|
||||
<option value="all" {% if selected_status == 'all' %}selected{% endif %}>All staff statuses</option>
|
||||
<option value="active" {% if selected_status == 'active' %}selected{% endif %}>Active</option>
|
||||
<option value="inactive" {% if selected_status == 'inactive' %}selected{% endif %}>Inactive</option>
|
||||
<option value="relieved" {% if selected_status == 'relieved' %}selected{% endif %}>Relieved</option>
|
||||
</select>
|
||||
<button class="rounded-xl border border-slate-300 px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-50">Filter</button>
|
||||
</div>
|
||||
</form>
|
||||
@@ -41,7 +44,7 @@
|
||||
<div class="rounded-2xl border border-amber-200 bg-amber-50 p-4 text-sm text-amber-900">
|
||||
<div class="font-semibold">{{ link_summary.unlinked }} employee(s) are not linked to login users.</div>
|
||||
<p class="mt-1">Employee self-service pages such as My Workspace, attendance, leave, documents and payslips work fully only after the employee master is linked to an IAM user.</p>
|
||||
<a href="/employees?link_status=unlinked{% if include_inactive %}&include_inactive=1{% endif %}" class="mt-2 inline-flex rounded-lg border border-amber-300 px-3 py-1.5 text-xs font-semibold text-amber-900 hover:bg-amber-100">Show unlinked employees</a>
|
||||
<a href="/employees?link_status=unlinked&status={{ selected_status or 'all' }}" class="mt-2 inline-flex rounded-lg border border-amber-300 px-3 py-1.5 text-xs font-semibold text-amber-900 hover:bg-amber-100">Show unlinked employees</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -114,9 +114,12 @@
|
||||
<div class="divide-y divide-slate-100">
|
||||
{% for category in board.categories %}
|
||||
{% if board.use_task_categories %}
|
||||
<div class="bg-slate-50 px-5 py-2 text-xs font-semibold uppercase tracking-wide text-slate-500">
|
||||
{{ category.name }} · {{ category.completed }}/{{ category.total }}
|
||||
</div>
|
||||
<details class="group" {% if loop.first %}open{% endif %}>
|
||||
<summary class="flex cursor-pointer list-none items-center justify-between gap-3 bg-slate-50 px-5 py-3 text-sm font-semibold text-slate-700 hover:bg-slate-100">
|
||||
<span class="flex items-center gap-2"><span class="text-slate-400 transition-transform group-open:rotate-90">▶</span>{{ category.name }}</span>
|
||||
<span class="rounded-full bg-white px-2.5 py-1 text-xs font-semibold text-slate-600">{{ category.completed }}/{{ category.total }} completed</span>
|
||||
</summary>
|
||||
<div class="divide-y divide-slate-100">
|
||||
{% endif %}
|
||||
|
||||
{% for task in category.tasks %}
|
||||
@@ -365,6 +368,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% if board.use_task_categories %}</div></details>{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user