django-vue3-admin-backend/templates/rest_framework/inline/checkbox.html
2025-10-20 21:30:27 +08:00

9 lines
294 B
HTML

<div class="form-group {% if field.errors %}has-error{% endif %}">
<div class="checkbox">
<label>
<input type="checkbox" name="{{ field.name }}" value="true" {% if field.value %}checked{% endif %}>
{% if field.label %}{{ field.label }}{% endif %}
</label>
</div>
</div>