Difference between revisions of "Template:SearchEvents"

From Culture.si
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%">
</td>
+
</div>
</tr>
+
<div class="filter-country">
<tr>
+
<label>Country</label>
<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>
 
<tr>
 
<th></th>
 
<td>
 
 
<input type="submit" name="search-events" value="Search events" style="width:100%">
 
<input type="submit" name="search-events" value="Search events" style="width:100%">
</td>
+
</div>
</tr>
 
</table>
 
 
</form>
 
</form>
 
}}
 
}}

Revision as of 01:47, 18 February 2021