You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.6 KiB
53 lines
1.6 KiB
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Praktikumsuhr</title>
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- Flatpickr Theme -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/themes/material_blue.css">
|
|
|
|
<!-- Custom Styles (optional) -->
|
|
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
|
|
|
<!-- JS: Bootstrap Bundle (inkl. Popper) -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" defer></script>
|
|
|
|
|
|
<!-- Flatpickr JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
|
|
|
|
<!-- JS: Flatpickr Init -->
|
|
<script defer>
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
flatpickr(".flatpickr", {
|
|
|
|
dateFormat: "d.m.Y",
|
|
allowInput: true
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<!-- JavaScript from Rails -->
|
|
<%= javascript_include_tag "application", "data-turbo-track": "reload", defer: true %>
|
|
</head>
|
|
|
|
|
|
|
|
<body class="container mt-4">
|
|
<% if notice %><div class="alert alert-success"><%= notice %></div><% end %>
|
|
<% if alert %><div class="alert alert-danger"><%= alert %></div><% end %>
|
|
|
|
<% if user_signed_in? %>
|
|
<p class="text-end">
|
|
Eingeloggt als <%= current_user.email %> |
|
|
<%= link_to "Profil", edit_user_registration_path %> |
|
|
<%= link_to "Admin", admin_root_path %> |
|
|
<%= link_to "Logout", destroy_user_session_path, method: :delete, data: { turbo: false } %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= yield %>
|
|
</body>
|