builder.go 493 B

123456789101112131415161718
  1. package builder
  2. import (
  3. "golang-fave/engine/assets"
  4. )
  5. func CheckBox(value int) string {
  6. if value == 0 {
  7. return `<span class="svg-red">` + assets.SysSvgIconError + `</span>`
  8. } else if value == 1 {
  9. return `<span class="svg-green">` + assets.SysSvgIconChecked + `</span>`
  10. } else if value == 2 {
  11. return `<span class="svg-yellow">` + assets.SysSvgIconRestore + `</span>`
  12. } else if value == 3 {
  13. return `<span class="svg-yellow">` + assets.SysSvgIconEmail + `</span>`
  14. }
  15. return ""
  16. }