Context ? help popovers, lifecycle checklist, and recommended-next-step cards on login, dashboard, phase detail/new, and extensions. Pure guidance helpers + CSS; deploy image 0.1.4.
59 lines
2 KiB
HTML
59 lines
2 KiB
HTML
{% extends "base.html" %}
|
|
{% from "macros.html" import help_bubble, render_next_steps %}
|
|
{% block title %}Dashboard — Target Revenue Control Plane{% endblock %}
|
|
{% block content %}
|
|
<wn-page-header>
|
|
<span slot="title">
|
|
Phases for {{ session_licensor_id }}
|
|
{{ help_bubble(
|
|
"A Phase is one monetization undertaking: an Initial Target, Milestone Release, "
|
|
"Future License, and degeneration policy. Ledger activity (Development Credit and "
|
|
"Remission Credit) always belongs to a Phase."
|
|
) }}
|
|
</span>
|
|
</wn-page-header>
|
|
|
|
{{ render_next_steps(next_steps, title='Recommended next step') }}
|
|
|
|
{% if session_rights in ("operator", "admin") %}
|
|
<p>
|
|
<a href="{{ root_path }}/phases/new">+ Register a new Phase</a>
|
|
{{ help_bubble(
|
|
"Operators declare Phases. Registration is append-only: the Manifest cannot be "
|
|
"edited in place after publish. Choose Initial Target carefully."
|
|
) }}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if pending_proposals and pending_proposals > 0 and session_rights in ("operator", "admin") %}
|
|
<p>
|
|
<a href="{{ root_path }}/proposals"><strong>{{ pending_proposals }}</strong> proposal(s) awaiting review</a>
|
|
{{ help_bubble("Contributors submit Development Credit; Operators approve or reject.") }}
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% if phases %}
|
|
<table class="wn-plain">
|
|
<thead>
|
|
<tr>
|
|
<th>Phase {{ help_bubble("Globally unique id, usually trsl:phase:…") }}</th>
|
|
<th>Milestone Release</th>
|
|
<th>Initial Target {{ help_bubble("Immutable commercial ceiling for this Phase. Outstanding Target starts here.") }}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for phase in phases %}
|
|
<tr>
|
|
<td>{{ phase.phase.id }}</td>
|
|
<td>{{ phase.phase.milestone_release.name }}</td>
|
|
<td>{{ phase.phase.initial_target.amount }} {{ phase.phase.initial_target.currency }}</td>
|
|
<td><a href="{{ root_path }}/phases/{{ phase.phase.id }}">Open →</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<wn-empty-state>No Phases registered yet for this tenant.</wn-empty-state>
|
|
{% endif %}
|
|
{% endblock %}
|