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

{% block title %}Edit Time Log - AI ML Operations{% endblock %}

{% block content %}
<div class="section">
    <div class="container">
        <h1 class="section-title" style="text-align: left;">Edit Time Log</h1>

        <div class="card" style="max-width: 600px;">
            <form method="POST">
                {% csrf_token %}
                {{ form.as_p }}
                <div style="margin-top: 1.5rem; display: flex; gap: 1rem; align-items: center;">
                    <button type="submit" class="btn">Update Record</button>
                    <a href="{% url 'time_logs' %}" class="btn"
                        style="background: var(--surface-color); color: var(--text-color); border: 1px solid rgba(255,255,255,0.1);">Cancel</a>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}