add color input

This commit is contained in:
long2ice
2021-05-06 22:56:57 +08:00
parent 251f33afee
commit fe301a84a6
2 changed files with 61 additions and 16 deletions

View File

@@ -0,0 +1,10 @@
<div class="form-group mb-3">
<label class="form-label">{{ label }}</label>
<input {% if not null %}required{% endif %} type="color" class="form-control form-control-color" name="{{ name }}"
placeholder="{{ placeholder }}" {% if disabled %}disabled{% endif %} value="{{ value }}">
{% if help_text %}
<small class="form-hint">
{{ help_text }}
</small>
{% endif %}
</div>