diff options
Diffstat (limited to 'themes/LoveIt/layouts/partials/function/checkbox.html')
-rw-r--r-- | themes/LoveIt/layouts/partials/function/checkbox.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/LoveIt/layouts/partials/function/checkbox.html b/themes/LoveIt/layouts/partials/function/checkbox.html new file mode 100644 index 0000000..2283592 --- /dev/null +++ b/themes/LoveIt/layouts/partials/function/checkbox.html @@ -0,0 +1,9 @@ +{{- /* Checkbox unchecked */ -}} +{{- $old := `<input disabled="" type="checkbox">` -}} +{{- $new := `<i class="far fa-square fa-fw"></i>` -}} +{{- $content := replace . $old $new -}} + +{{- /* Checkbox checked */ -}} +{{- $old = `<input checked="" disabled="" type="checkbox">` -}} +{{- $new = `<i class="far fa-check-square fa-fw"></i>` -}} +{{- return replace $content $old $new -}} |