35 lines
1.6 KiB
Plaintext
35 lines
1.6 KiB
Plaintext
<dialog class="card" id="create-card">
|
|
<h3 class="card-title">Dodaj praznik</h3>
|
|
<form method="post" action="/admin/holidays">
|
|
<section class="form-field">
|
|
<label for="country">Država:</label>
|
|
<select id="country" required name="country">
|
|
{{range $entry := .Countries}}
|
|
<option value="{{$entry.IsoName}}">{{$entry.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
</section>
|
|
<section class="form-field">
|
|
<label for="name">Ime:</label>
|
|
<input required id="name" name="name" type="text">
|
|
</section>
|
|
<section class="form-field">
|
|
<label for="description">Opis:</label>
|
|
<textarea id="description" name="description"></textarea>
|
|
</section>
|
|
<section class="form-field">
|
|
<label for="date">Datum:</label>
|
|
<input required id="date" name="date" type="date">
|
|
</section>
|
|
<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>
|
|
<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">
|
|
<button class="primary" type="submit">Dodaj</button>
|
|
<button class="secondary" type="button" onclick="closeDialog('#create-card')">Odustani</button>
|
|
</section>
|
|
</form>
|
|
</dialog> |