| 1 |
<div class="checklist" id="onboarding-checklist"> |
| 2 |
<div class="checklist-header"> |
| 3 |
<h3 class="checklist-title">Get Started ({{ checklist.completed }}/{{ checklist.total }})</h3> |
| 4 |
<button class="btn-secondary small" |
| 5 |
hx-post="/dashboard/onboarding/dismiss" |
| 6 |
hx-target="#onboarding-area" |
| 7 |
hx-swap="innerHTML" |
| 8 |
hx-on::after-request="if(event.detail.successful) showToast('Checklist hidden. You can restore it from the dashboard.', 'info')" |
| 9 |
class="btn-tiny">Hide for now</button> |
| 10 |
</div> |
| 11 |
<div class="progress-bar-container progress-bar-container--slim mb-4"> |
| 12 |
<div class="progress-bar progress-bar--highlight" style="width: {{ checklist.completed * 100 / checklist.total }}%;"></div> |
| 13 |
</div> |
| 14 |
{% for step in checklist.steps %} |
| 15 |
<div class="checklist-row"> |
| 16 |
{% if step.done %} |
| 17 |
<span class="checklist-mark checklist-mark--done" aria-label="Done"></span> |
| 18 |
<span class="checklist-label checklist-label--done">{{ step.label }}</span> |
| 19 |
{% else %} |
| 20 |
<span class="checklist-mark" aria-label="Not done"></span> |
| 21 |
<span class="checklist-label">{{ step.label }}</span> |
| 22 |
<button class="btn btn-small btn-tiny" onclick="document.getElementById('{{ step.link_tab }}').click()">{{ step.link_label }}</button> |
| 23 |
{% endif %} |
| 24 |
</div> |
| 25 |
{% endfor %} |
| 26 |
</div> |
| 27 |
|