holiday-api/templates/dialogs/edit-country.gohtml

18 lines
903 B
Plaintext
Raw Permalink Normal View History

2023-08-05 19:34:09 +00:00
<dialog class="card" id="update-card">
2024-01-01 11:29:59 +00:00
<h3 class="card-title">Ažuriraj državu</h3>
2023-08-05 19:34:09 +00:00
<form method="post" action="/admin/countries">
<input type="hidden" name="id" value="{{.Country.Id}}">
2024-01-01 11:29:59 +00:00
<section class="form-field">
<label for="name">Iso ime:</label>
2023-08-05 19:34:09 +00:00
<input required minlength="2" maxlength="2" id="iso_name" value="{{.Country.IsoName}}" name="iso_name" type="text">
</section>
2024-01-01 11:29:59 +00:00
<section class="form-field">
<label for="name">Ime:</label>
2023-08-05 19:34:09 +00:00
<input required minlength="1" maxlength="45" id="name" value="{{.Country.Name}}" name="name" type="text">
</section>
<section class="actions">
2024-01-01 11:29:59 +00:00
<button class="primary" type="submit">Ažuriraj</button>
<button class="secondary" type="button" onclick="closeDialog('#update-card')">Odustani</button>
2023-08-05 19:34:09 +00:00
</section>
</form>
</dialog>