This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Leaf tags
Casper Rasmussen edited this page Mar 26, 2017
·
3 revisions
#form:open(ROUTE, METHOD, hasFiles) (ex: #form:open("/admin/backend_users/update", "POST", false))
#form:close()
#form:textgroup(NAME, VALUE, FIELDSET, ATTR1, ATTR2 etc) (ex: #form:textgroup("name", backendUser.name, fieldset, "readonly"))
#form:textareagroup(NAME, VALUE, FIELDSET, ATTR1, ATTR2 etc) (ex: #form:textgroup("name", backendUser.name, fieldset, "readonly"))
#form:numbergroup(NAME, VALUE, FIELDSET, ATTR1, ATTR2 etc) (ex: #form:numbergroup("age", backendUser.age, fieldset, "readonly"))
#form:checkboxgroup(NAME, VALUE, FIELDSET, ATTR1, ATTR2 etc) (ex: #form:checkboxgroup("send_mail", "true", fieldset)
#form:emailgroup(NAME, VALUE, FIELDSET, ATTR1, ATTR2 etc) (ex: #form:emailgroup("email", backendUser.email, fieldset))
#form:passwordgroup(NAME, VALUE, FIELDSET, ATTR1, ATTR2 etc) (ex: #form:passwordgroup("passwordRepeat", nil, fieldset))
#form:selectgroup(NAME, OPTIONS, FIELDSET, VALUE) (ex: #form:selectgroup("role", roles, fieldset, defaultRole))
- OPTIONS should be [String : String]
#allow(REQUEST, ROLE) (ex: #allow(request, "super-admin") {//Html here}