form-elements-2.html 2.9 KB
Newer Older
C
chomik 已提交
1 2


3 4 5
<div class="mb-3">
   <label class="form-label">Username</label>
   {% include ui/input-group.html prepend="@" placeholder="username" %}
C
chomik 已提交
6 7
</div>

C
codecalm 已提交
8
<div class="mb-3">
9 10
   <label class="form-label">Subdomain</label>
   {% include ui/input-group.html append=".tabler.io" placeholder="subdomain" %}
C
chomik 已提交
11 12
</div>

C
codecalm 已提交
13
<div class="mb-3">
14 15
   <label class="form-label">Your vanity URL</label>
   {% include ui/input-group.html prepend="https://example.com/users/" %}
C
chomik 已提交
16
</div>
17

C
codecalm 已提交
18
<div class="mb-3">
19 20
   <label class="form-label">Price</label>
   {% include ui/input-group.html prepend="$" append=".00" %}
C
chomik 已提交
21
</div>
22

C
codecalm 已提交
23
<div class="mb-3">
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
   <label class="form-label">Button input</label>
   <div class="input-group">
      <div class="input-group-prepend">
         <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown"
                 aria-haspopup="true" aria-expanded="false">
            Action
         </button>
         <div class="dropdown-menu">
            <a class="dropdown-item" href="javascript:void(0)">Action</a>
            <a class="dropdown-item" href="javascript:void(0)">Another action</a>
            <a class="dropdown-item" href="javascript:void(0)">Something else here</a>
            <div role="separator" class="dropdown-divider"></div>
            <a class="dropdown-item" href="javascript:void(0)">Separated link</a>
         </div>
      </div>
      <input type="text" class="form-control" aria-label="Text input with dropdown button">
   </div>
C
chomik 已提交
41
</div>
42

C
codecalm 已提交
43
<div class="mb-3">
44 45
   <label class="form-label">Tags</label>
   <input type="text" class="form-control" id="input-tags" value="aa,bb,cc,dd">
C
chomik 已提交
46
</div>
47

C
codecalm 已提交
48
<div class="mb-3">
49 50 51 52 53 54
   <label class="form-label">Beast</label>
   <select name="beast" id="select-beast" class="form-select">
      <option value="1">Chuck Testa</option>
      <option value="4">Sage Cattabriga-Alosa</option>
      <option value="3">Nikola Tesla</option>
   </select>
C
chomik 已提交
55 56
</div>

C
codecalm 已提交
57
<div class="mb-3">
58 59 60 61 62 63 64 65
   <label class="form-label">Users list</label>
   <select name="user" id="select-users" class="form-select">
      {% for user in site.data.people limit: 10 %}
      <option value="{{ forloop.index }}" data-data='{"image": "{{ user.photo }}"}'>
         {{ user.first_name }} {{ user.last_name }}
      </option>
      {% endfor %}
   </select>
C
chomik 已提交
66 67
</div>

C
codecalm 已提交
68
<div class="mb-3">
69 70 71 72 73 74 75 76 77 78
   <label class="form-label">Countries</label>
   <select name="country" id="select-countries" class="form-select">
      <option value="br" data-data='{"image": "{{ site.base }}/assets/images/flags/br.svg"}'>Brazil</option>
      <option value="cz" data-data='{"image": "{{ site.base }}/assets/images/flags/cz.svg"}'>Czech Republic
      </option>
      <option value="de" data-data='{"image": "{{ site.base }}/assets/images/flags/de.svg"}'>Germany
      </option>
      <option value="pl" data-data='{"image": "{{ site.base }}/assets/images/flags/pl.svg"}' selected>Poland
      </option>
   </select>
C
chomik 已提交
79
</div>