Changes between Version 58 and Version 59 of S3/S3REST/s3_rest_controller
- Timestamp:
- 03/20/11 15:12:18 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3REST/s3_rest_controller
v58 v59 87 87 === List-add === 88 88 89 By default, list views will contain a hidden create-form and an "Add Record"-button to activate the create-form. 90 91 When you set {{{s3xrc.model.configure(table, listadd=False)}}}, the "Add Record"-button will link to a separate create-view instead. 89 By default, list views will contain a hidden create-form and an "Add Record"-button to activate the create-form (provided that the user is authorized to add records to this resource). 92 90 93 91 If the resource is set to {{{insertable=False}}} or if the user is not permitted to create records in this table, no "Add Record"-button will be available. 94 92 95 Alternatively, you can hide the "Add Record"-button with: 96 97 {{{ 98 s3_rest_controller(prefix, resourcename, add_btn=None) 99 }}} 93 NOTE: ''If for some reason the default embedded create-form is not desired, you can set {{{s3xrc.model.configure(table, listadd=False, add_btn=True)}}}, which will render the "Add Record"-button as link to the create method instead.'' 100 94 === Redirection === 101 95