<div class="container-fluid">
    <h2>{{ if .IsEdit }}Ürün Etiketi Düzenle{{ else }}Yeni Ürün Etiketi{{ end }}</h2>
    <div class="card border-0 shadow-sm">
        <div class="card-body">
            {{ if .IsEdit }}
            <form action="/admin/product-tags/{{ .Tag.ID }}/update" method="POST">
                {{ else }}
                <form action="/admin/product-tags/create" method="POST">
                    {{ end }}
                    <div class="mb-3">
                        <label class="form-label">İsim</label>
                        <input type="text" name="name" class="form-control"
                            value="{{ if .IsEdit }}{{ .Tag.Name }}{{ end }}" required>
                    </div>
                    <div class="d-flex gap-2">
                        <a href="/admin/content/product-tags" class="btn btn-secondary">Geri</a>
                        <button class="btn btn-primary" type="submit">Kaydet</button>
                    </div>
                </form>
        </div>
    </div>
</div>