names.go 846 B

1234567891011121314151617181920212223242526272829303132333435
  1. package views
  2. import "fmt"
  3. func mainPortalName(field string) string {
  4. return fmt.Sprintf("%s_portal", field)
  5. }
  6. func deleteConfirmPortalName(field string) string {
  7. return fmt.Sprintf("%s_deleteConfirm_portal", field)
  8. }
  9. func mediaBoxThumbnailsPortalName(field string) string {
  10. return fmt.Sprintf("%s_portal_thumbnails", field)
  11. }
  12. func cropperPortalName(field string) string {
  13. return fmt.Sprintf("%s_cropper_portal", field)
  14. }
  15. func dialogContentPortalName(field string) string {
  16. return fmt.Sprintf("%s_dialog_content", field)
  17. }
  18. func searchKeywordName(field string) string {
  19. return fmt.Sprintf("%s_file_chooser_search_keyword", field)
  20. }
  21. func currentPageName(field string) string {
  22. return fmt.Sprintf("%s_file_chooser_current_page", field)
  23. }
  24. func fileCroppingVarName(id uint) string {
  25. return fmt.Sprintf("fileChooser%d_cropping", id)
  26. }