Goal-Calibration/views/templates/home.php
Yisroel Baum 6d11f7e887
add user texts and text detail pages
new /texts page lets a user manage their own texts (list +
create form linking to /texts/{id}); /texts/{id} reuses
text.js for the node tree, with a back link to /texts. home
gains a 'My texts' link in the header. the admin texts page
now sources its cross-user list from /api/texts/all.
2026-05-02 21:46:41 +03:00

48 lines
1.6 KiB
PHP

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Daily Goals - Home</title>
<link rel="stylesheet" href="/css/app.css">
</head>
<body>
<header class="site-header">
<div class="site-header-inner">
<h1>Home</h1>
<div class="cluster">
<a class="btn btn-secondary" href="/texts" id="manage-texts">
My texts
</a>
<a class="btn btn-secondary" href="/today">
Today's schedule
</a>
<button id="logout" class="btn btn-danger">Logout</button>
</div>
</div>
</header>
<main class="container stack-lg">
<ul id="texts-list" class="list-cards"></ul>
</main>
<div id="create-plan-modal" class="modal" hidden>
<div class="modal-content stack">
<h2>Create plan</h2>
<label>Name
<input class="plan-name" type="text" />
</label>
<label>Start date
<input class="plan-date-start" type="date" />
</label>
<label>End date
<input class="plan-date-end" type="date" />
</label>
<div class="cluster cluster-end">
<button class="cancel-plan btn btn-secondary">Cancel</button>
<button class="save-plan btn btn-primary">Save</button>
</div>
</div>
</div>
<script src="/js/auth.js"></script>
<script src="/js/home.js"></script>
</body>
</html>