Initial commit
This commit is contained in:
9
themes/keepit/layouts/partials/function/checkbox.html
Normal file
9
themes/keepit/layouts/partials/function/checkbox.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{- /* Checkbox unchecked */ -}}
|
||||
{{- $old := `<input disabled="" type="checkbox">` -}}
|
||||
{{- $new := `<i class="far fa-square fa-fw" aria-hidden="true"></i>` -}}
|
||||
{{- $content := replace . $old $new -}}
|
||||
|
||||
{{- /* Checkbox checked */ -}}
|
||||
{{- $old = `<input checked="" disabled="" type="checkbox">` -}}
|
||||
{{- $new = `<i class="far fa-check-square fa-fw" aria-hidden="true"></i>` -}}
|
||||
{{- return replace $content $old $new -}}
|
||||
Reference in New Issue
Block a user