{% extends "base.html" %}
{% load static %}

{% block title %}Timekeeping - AI ML Operations{% endblock %}

{% block content %}
<div class="section">
    <div class="container">
        <div style="margin-bottom: 2rem;">
            <a href="{% url 'financial_index' %}" class="btn" style="padding: 0.5rem 1.5rem; font-size: 0.9rem;">Back to
                Dashboard</a>
        </div>

        <h1 class="section-title" style="text-align: left;">Log Time</h1>

        {% if error %}
        <div class="alert alert-danger" style="max-width: 600px; margin-bottom: 1.5rem;">
            {{ error }}
        </div>
        {% endif %}

        <div class="card" style="max-width: 600px;">
            <form method="post" action="{% url 'Timekeeping' %}">
                {% csrf_token %}
                {{ form.as_p }}
                <button type="submit" class="btn" style="margin-top: 1rem;">Log Time</button>
            </form>
        </div>
    </div>
</div>
{% endblock %}