Difference between revisions of "Template:SearchEvents"

From Culture.si
 
(5 intermediate revisions by 2 users not shown)
Line 19: Line 19:
 
{{#eval:html|
 
{{#eval:html|
 
<form action="/en/Search_Events" method="get">
 
<form action="/en/Search_Events" method="get">
<table style="width:100%">
+
<div class="subnav filter-form">
<tr>
+
<div class="filter-search">
<th>Search</th>
+
<label>Search</label>
<td>
+
<input type="text" name="query" placeholder="Search events..." value="{{{query}}}" style="width:100%">
<input type="text" name="query" placeholder="Search events" value="{{{query}}}" style="width:100%">
+
</div>
</td>
+
<div class="filter-country">
</tr>
+
<label>Country</label>
<tr>
 
<th>Country</th>
 
<td>
 
 
{{DataDropDown
 
{{DataDropDown
 
|name=country
 
|name=country
Line 43: Line 40:
 
});
 
});
 
}}
 
}}
</td>
+
</div>
</tr>
+
<div class="filter-city">
<tr>
+
<label>City</label>
<th>City</th>
 
<td>
 
 
{{CityDropDown|city={{{city|}}}|country={{{country|}}}}}
 
{{CityDropDown|city={{{city|}}}|country={{{country|}}}}}
</td>
+
</div>
</tr>
+
<div class="filter-year">
<tr>
+
<label>Year</label>
<th>Year</th>
 
<td>
 
 
{{DataDropDown
 
{{DataDropDown
 
|name=year
 
|name=year
Line 60: Line 53:
 
|options={{#data:selectcolumn|Item=Event.Years.Year|#limit=300|#orderby=Event.Years.Year}}
 
|options={{#data:selectcolumn|Item=Event.Years.Year|#limit=300|#orderby=Event.Years.Year}}
 
}}
 
}}
</td>
+
</div>
</tr>
+
<div class="filter-category">
<tr>
+
<label>Category</label>
<th>Category</th>
 
<td>
 
 
{{DataDropDown
 
{{DataDropDown
 
|name=category
 
|name=category
Line 81: Line 72:
 
});
 
});
 
}}
 
}}
</td>
+
</div>
</tr>
+
<div class="filter-festival">
<tr>
+
<label>Festival</label>
<th>Festival</th>
 
<td>
 
 
{{FestivalDropDown|category={{{category|}}}}}
 
{{FestivalDropDown|category={{{category|}}}}}
</td>
+
</div>
</tr>
+
<input id="submit" type="submit" name="search-events" value="Search events" style="width:100%">
<tr>
+
</div>
<th></th>
 
<td>
 
<input type="submit" name="search-events" value="Search events" style="width:100%">
 
</td>
 
</tr>
 
</table>
 
 
</form>
 
</form>
 
}}
 
}}
 +
{{:SimpleEventsMap}}
 
{{#if:{{{where}}}|
 
{{#if:{{{where}}}|
<ul class="events">
+
<ul class="events" id="events">
 
{{Worldwide
 
{{Worldwide
 
|where = TRUE {{{where}}}
 
|where = TRUE {{{where}}}

Latest revision as of 04:50, 20 February 2021