18 lines
823 B
Plaintext
18 lines
823 B
Plaintext
|
<dialog class="card" id="update-card">
|
||
|
<h3 class="card-title">Edit country</h3>
|
||
|
<form method="post" action="/admin/countries">
|
||
|
<input type="hidden" name="id" value="{{.Country.Id}}">
|
||
|
<section>
|
||
|
<label for="name">Iso name:</label>
|
||
|
<input required minlength="2" maxlength="2" id="iso_name" value="{{.Country.IsoName}}" name="iso_name" type="text">
|
||
|
</section>
|
||
|
<section>
|
||
|
<label for="name">Name:</label>
|
||
|
<input required minlength="1" maxlength="45" id="name" value="{{.Country.Name}}" name="name" type="text">
|
||
|
</section>
|
||
|
<section class="actions">
|
||
|
<button type="submit">Update</button>
|
||
|
<button type="button" onclick="closeDialog('#update-card')">Cancel</button>
|
||
|
</section>
|
||
|
</form>
|
||
|
</dialog>
|