{% extends "base.html" %}
{% block content %}
<div class="container mt-4">
    <h2>Edit Company</h2>
    
    <div class="card">
        <div class="card-body">
            <form method="POST" action="{{ url_for('auth.edit_company', company_id=company.id) }}">
                <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
                <div class="mb-3">
                    <label for="name" class="form-label">Company Name</label>
                    <input type="text" class="form-control" id="name" name="name" value="{{ company.name }}" required>
                </div>
                <div class="mb-3">
                    <label for="description" class="form-label">Description</label>
                    <textarea class="form-control" id="description" name="description" rows="3">{{ company.description }}</textarea>
                </div>
                <div class="mb-3">
                    <a href="{{ url_for('auth.manage_companies') }}" class="btn btn-secondary me-2">Cancel</a>
                    <button type="submit" class="btn btn-primary">Update Company</button>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}