holiday-api/templates/dialogs/add-holiday.gohtml

35 lines
1.6 KiB
Plaintext
Raw Normal View History

<dialog class="card" id="create-card">
2024-01-01 11:29:59 +00:00
<h3 class="card-title">Dodaj praznik</h3>
<form method="post" action="/admin/holidays">
2024-01-01 11:29:59 +00:00
<section class="form-field">
<label for="country">Država:</label>
<select id="country" required name="country">
2023-08-05 19:34:09 +00:00
{{range $entry := .Countries}}
<option value="{{$entry.IsoName}}">{{$entry.Name}}</option>
{{end}}
</select>
</section>
2024-01-01 11:29:59 +00:00
<section class="form-field">
<label for="name">Ime:</label>
<input required id="name" name="name" type="text">
</section>
2024-01-01 11:29:59 +00:00
<section class="form-field">
<label for="description">Opis:</label>
<textarea id="description" name="description"></textarea>
</section>
2024-01-01 11:29:59 +00:00
<section class="form-field">
<label for="date">Datum:</label>
<input required id="date" name="date" type="date">
</section>
2024-01-01 11:29:59 +00:00
<section class="form-field">
<label class="checkbox"><span>Državni praznik</span><input id="state_holiday" value="true" name="state_holiday" type="checkbox"></label>
</section>
2024-01-01 11:29:59 +00:00
<section class="form-field">
<label class="checkbox"><span>Religiozni praznik</span><input id="religious_holiday" value="true" name="religious_holiday" type="checkbox"></label>
</section>
<section class="actions">
2024-01-01 11:29:59 +00:00
<button class="primary" type="submit">Dodaj</button>
<button class="secondary" type="button" onclick="closeDialog('#create-card')">Odustani</button>
</section>
</form>
</dialog>