1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-02 16:34:38 +04:00

feather icons update, input group with icons

This commit is contained in:
codecalm
2020-01-25 13:42:07 +01:00
parent 696cab9ac4
commit c64cf6984f
19 changed files with 38 additions and 19 deletions
+15 -1
View File
@@ -10,7 +10,7 @@
</span>
</div>
{% endif %}
<input type="text" class="form-control{% if include.input-class %} {{ include.input-class }}{% endif %}" {% if include.placeholder %} placeholder="{{ include.placeholder }}" {% endif %}{% if include.value %} value="{{ include.value }}"{% endif %}>
<input type="{{ include.type | default: 'text' }}" class="form-control{% if include.input-class %} {{ include.input-class }}{% endif %}" {% if include.placeholder %} placeholder="{{ include.placeholder }}" {% endif %}{% if include.value %} value="{{ include.value }}"{% endif %}>
{% if include.append %}
<div class="input-group-append">
<span class="input-group-text">
@@ -29,4 +29,18 @@
</span>
</div>
{% endif %}
{% if include.append-button %}
{% assign buttons = include.append-button | split: ',' %}
<div class="input-group-append">
<span class="input-group-text">
{% for button in buttons %}
{% assign b = button | split: ':' %}
{% assign icon = b[0] %}
{% assign description = b[1] %}
<a href="#" class="link-secondary{% unless forloop.first %} ml-2{% endunless %}" title="{{ description }}" data-toggle="tooltip">{% include ui/icon.html icon=icon %}</a>
{% endfor %}
</span>
</div>
{% endif %}
</div>