v4/utils/template_fns.go
2025-04-05 23:38:02 -07:00

15 lines
292 B
Go

package utils
import (
"fmt"
"git.sapphic.engineer/roleypoly/v4/types"
)
func RoleInputID(c *types.Category, r *types.Role) string {
return fmt.Sprintf("category-%s_role-%s", c.ID, r.ID)
}
func RoleInputName(c *types.Category) string {
return fmt.Sprintf("category_group_%s", c.ID)
}