@model Rs_system.Models.TipoColaboracion
@{
    ViewData["Title"] = "Editar Tipo de Colaboración";
}

<div class="d-flex justify-content-between align-items-center mb-4">
    <div>
        <h4 class="mb-1">Editar Tipo de Colaboración</h4>
        <p class="text-muted mb-0">Modificar tipo de colaboración existente</p>
    </div>
    <a asp-action="Index" class="btn btn-outline-secondary">
        <i class="bi bi-arrow-left me-1"></i> Volver
    </a>
</div>

<div class="card-custom">
    <form asp-action="Edit" method="post">
        <input type="hidden" asp-for="Id" />
        <input type="hidden" asp-for="CreadoEn" />
        
        <div asp-validation-summary="ModelOnly" class="alert alert-danger"></div>
        
        <div class="mb-3">
            <label asp-for="Nombre" class="form-label"></label>
            <input asp-for="Nombre" class="form-control" required />
            <span asp-validation-for="Nombre" class="text-danger"></span>
        </div>

        <div class="mb-3">
            <label asp-for="Descripcion" class="form-label"></label>
            <textarea asp-for="Descripcion" class="form-control" rows="2"></textarea>
            <span asp-validation-for="Descripcion" class="text-danger"></span>
        </div>

        <div class="row mb-3">
            <div class="col-md-6">
                <label asp-for="MontoSugerido" class="form-label"></label>
                <div class="input-group">
                    <span class="input-group-text">$</span>
                    <input asp-for="MontoSugerido" type="number" step="0.01" class="form-control" required />
                </div>
                <span asp-validation-for="MontoSugerido" class="text-danger"></span>
            </div>
            <div class="col-md-6">
                <label asp-for="Orden" class="form-label"></label>
                <input asp-for="Orden" type="number" class="form-control" required />
                <span asp-validation-for="Orden" class="text-danger"></span>
            </div>
        </div>

        <div class="mb-3">
            <div class="form-check">
                <input asp-for="Activo" class="form-check-input" type="checkbox" />
                <label asp-for="Activo" class="form-check-label"></label>
            </div>
        </div>

        <div class="d-flex justify-content-end gap-2">
            <a asp-action="Index" class="btn btn-secondary">Cancelar</a>
            <button type="submit" class="btn btn-primary-custom">
                <i class="bi bi-save me-1"></i> Actualizar
            </button>
        </div>
    </form>
</div>
