feat(examples): add saas settings page fallback
Make the SaaS tutorial's settings route render a distinct full-page fallback while the enhanced handler still swaps the generated page panel and pushes history. This proves page-swap shape without relying only on the enhanced interaction path. req: examples/001 req: page_swap/002
This commit is contained in:
@@ -11,23 +11,28 @@
|
||||
</nav>
|
||||
|
||||
<section class="panel" data-hemx-slot="page_panel">
|
||||
<form class="project-form" data-hemx-handle="create_project" data-hemx-form="new_project" data-hemx-disable-while-pending>
|
||||
<input type="hidden" name="csrf" +value="self.csrf">
|
||||
<label>Project name
|
||||
<input name="name" required="required" maxlength="64" value="Launch checklist">
|
||||
</label>
|
||||
<button type="submit">Create project</button>
|
||||
<p class="field-error" data-hemx-error-for="name"></p>
|
||||
</form>
|
||||
<div h-if="self.show_projects">
|
||||
<form class="project-form" data-hemx-handle="create_project" data-hemx-form="new_project" data-hemx-disable-while-pending>
|
||||
<input type="hidden" name="csrf" +value="self.csrf">
|
||||
<label>Project name
|
||||
<input name="name" required="required" maxlength="64" value="Launch checklist">
|
||||
</label>
|
||||
<button type="submit">Create project</button>
|
||||
<p class="field-error" data-hemx-error-for="name"></p>
|
||||
</form>
|
||||
|
||||
<p class="flash" data-hemx-slot="flash">{+ self.flash +}</p>
|
||||
<p class="summary" data-hemx-slot="summary">{+ self.summary +}</p>
|
||||
<p class="flash" data-hemx-slot="flash">{+ self.flash +}</p>
|
||||
<p class="summary" data-hemx-slot="summary">{+ self.summary +}</p>
|
||||
|
||||
<ul class="project-list" data-hemx-slot="project_row">
|
||||
<template h-for="row in &self.rows" h-key="row.id">
|
||||
{+ row +}
|
||||
</template>
|
||||
</ul>
|
||||
<ul class="project-list" data-hemx-slot="project_row">
|
||||
<template h-for="row in &self.rows" h-key="row.id">
|
||||
{+ row +}
|
||||
</template>
|
||||
</ul>
|
||||
</div>
|
||||
<div h-if="!self.show_projects">
|
||||
{+ self.settings +}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="status-row">
|
||||
|
||||
Reference in New Issue
Block a user