mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 11:42:25 +00:00
some experimentation with frontend
This commit is contained in:
12
crates/frontend/templates/components/calendar_list.html
Normal file
12
crates/frontend/templates/components/calendar_list.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<h2>Welcome {{ owner }}!</h2>
|
||||
<ul>
|
||||
{% for calendar in calendars %}
|
||||
<li>
|
||||
{% if let Some(name) = calendar.displayname %}
|
||||
{{ name }}
|
||||
{% else %}
|
||||
{{ calendar.id }}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
7
crates/frontend/templates/components/login.html
Normal file
7
crates/frontend/templates/components/login.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<form action="login" method="post">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" placeholder="username">
|
||||
<label for="password">Password</label>
|
||||
<input type="password" name="password" placeholder="password">
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
15
crates/frontend/templates/layouts/default.html
Normal file
15
crates/frontend/templates/layouts/default.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>RustiCal</title>
|
||||
<link href="css/style.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ body|safe }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user