<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
    <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 border-bottom">
        <h3 class="h3">{{ .title }}</h3>
    </div>
    <form method="post">
        <div class="row mb-3 mt-3">
            <label class="col-sm-2 col-form-label col-form-label-sm">{{ trans .lang "admin_tag_title" }}</label>
            <div class="col-sm-10">
                {{ $tagErr := index .errors "Tag" }}
                <input type="text" class="form-control form-control-sm {{ if $tagErr }}is-invalid{{ end }}" name="tag" value="{{ .form.Tag }}">
                {{ if $tagErr }}
                <div class="invalid-feedback">
                    {{ $tagErr }}
                </div>
                {{ end }}
            </div>
        </div>
        <div class="row mb-3 border-bottom pb-3">
            <label class="col-sm-2 col-form-label col-form-label-sm">URL</label>
            <div class="col-sm-10">
                {{ $urlErr := index .errors "URL" }}
                <input type="text" class="form-control form-control-sm {{ if $urlErr }}is-invalid{{ end }}" name="url" value="{{ .form.URL }}">
                {{ if $urlErr }}
                <div class="invalid-feedback">
                    {{ $urlErr }}
                </div>
                {{ end }}
            </div>
        </div>
        <a href="/admin/tag" class="btn btn-sm btn-secondary">{{ trans .lang "admin_back" }}</a>
        <button type="submit" class="btn btn-sm btn-primary">
            {{ trans .lang "admin_save_btn" }}
        </button>
    </form>
</main>