<h5 class="my-3">{{ page_title }}</h5>
<form hx-post="{{ "admin/settings/tag-mapping/save" | relative_link }}" method="post" class="container"
      hx-target="#tagList" hx-swap="outerHTML show:window:top">
  <input type="hidden" name="{{ csrf.form_field_name }}" value="{{ csrf.request_token }}">
  <input type="hidden" name="id" value="{{ model.id }}">
  <div class="row mb-3">
    <div class="col-6 col-lg-4 offset-lg-2">
      <div class="form-floating">
        <input type="text" name="tag" id="tag" class="form-control" placeholder="Tag" autofocus required
               value="{{ model.tag }}">
        <label for="tag">Tag</label>
      </div>
    </div>
    <div class="col-6 col-lg-4">
      <div class="form-floating">
        <input type="text" name="urlValue" id="urlValue" class="form-control" placeholder="URL Value" required
               value="{{ model.url_value }}">
        <label for="urlValue">URL Value</label>
      </div>
    </div>
  </div>
  <div class="row mb-3">
    <div class="col text-center">
      <button type="submit" class="btn btn-sm btn-primary">Save Changes</button>
      <a href="{{ "admin/settings/tag-mappings/bare" | relative_link }}" class="btn btn-sm btn-secondary ms-3">
        Cancel
      </a>
    </div>
  </div>
</form>
