@model UpdateReferenceDto
@{
    ViewData["Title"] = "UpdateReference";
    Layout = "~/Views/AdminLayout/Index.cshtml";
}

<div class="content">
    <div class="container-fluid">
        <h4 class="page-title">Ana Sayfa Referanslarımız İşlemleri</h4>
        <div class="row">
            <div class="col-md-12">
                <form method="post" enctype="multipart/form-data">
                    <div class="card">
                        <div class="card-header">
                            <div class="card-title">Referans Güncelleme</div>
                        </div>
                        <input type="hidden" asp-for="ReferenceID" />
                        <div class="card-body">
                            <div class="form-group row">
                                <label for="ImageFile" class="col-md-2 col-form-label">Logo</label>
                                <div class="col-md-10">
                                    <input type="file" class="form-control" name="ImageFile" id="ImageFile">
                                    @if (!string.IsNullOrEmpty(Model.LogoUrl))
                                    {
                                        <img src="@Model.LogoUrl" alt="Logo" class="img-fluid mt-2" style="width: 100px; height: 100px;">
                                    }
                                </div>
                            </div>
                            <div class="form-group row">
                                <label for="WebUrl" class="col-md-2 col-form-label">Web Adresi</label>
                                <div class="col-md-10">
                                    <input type="text" class="form-control" asp-for="WebUrl" id="WebUrl">
                                    <span asp-validation-for="WebUrl" class="text-danger"></span>
                                </div>
                            </div>
                        </div>
                        <div class="card-action">
                            <button class="btn btn-success">Kaydet</button>
                            <a href="/Reference/Index/" class="btn btn-warning ml-2">Listeye Dön</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>



