91 | | If the user is not permitted to add records, or when you set {{{s3xrc.model.configure(table, listadd=False)}}}, the "Add Record"-button will link to a separate create-view instead. |
92 | | |
93 | | If the resource is set to {{{insertable=False}}}, no "Add Record"-button will be available. |
94 | | |
95 | | |
| 91 | When you set {{{s3xrc.model.configure(table, listadd=False)}}}, the "Add Record"-button will link to a separate create-view instead. |
| 92 | |
| 93 | If the resource is set to {{{insertable=False}}} or the user is not permitted to create records in this table, no "Add Record"-button will be available. |
| 94 | |
| 95 | To generally hide the "Add Record"-button (e.g. table can only contain one single record), use: |
| 96 | |
| 97 | {{{ |
| 98 | s3_rest_controller(prefix, resourcename, add_btn=None) |
| 99 | }}} |