1
0
mirror of https://github.com/tabler/tabler.git synced 2026-07-29 14:34:37 +04:00

form controls fixes

This commit is contained in:
codecalm
2019-09-23 21:18:10 +02:00
parent 546d54249f
commit 0253c3ec4e
9 changed files with 60 additions and 60 deletions
+4 -4
View File
@@ -56,7 +56,7 @@ title: Form Elements
{% example %}
<div class="mb-2">
<label class="form-label">Country</label>
<select class="form-control custom-select">
<select class="form-select">
<option value="">Germany</option>
<option value="">USA</option>
<option value="">Poland</option>
@@ -334,7 +334,7 @@ title: Form Elements
<label class="form-label">Date of birth</label>
<div class="row row-xs">
<div class="col-5">
<select name="user[month]" class="form-control custom-select">
<select name="user[month]" class="form-select">
<option value="">Month</option>
<option value="1">January</option>
<option value="2">February</option>
@@ -351,14 +351,14 @@ title: Form Elements
</select>
</div>
<div class="col-3">
<select name="user[day]" class="form-control custom-select">
<select name="user[day]" class="form-select">
<option value="">Day</option>
{% for i in (1..31) %}
<option value="{{ i }}"{% if i == 20 %} selected{% endif %}>{{ i }}</option>{% endfor %}
</select>
</div>
<div class="col-4">
<select name="user[year]" class="form-control custom-select">
<select name="user[year]" class="form-select">
<option value="">Year</option>
{% for i in (1897..2014) reversed %}
<option value="{{ i }}"{% if i == 1989 %} selected{% endif %}>{{ i }}</option>{% endfor %}