Changes between Version 50 and Version 51 of S3/S3REST/s3_rest_controller


Ignore:
Timestamp:
11/08/10 19:09:46 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3REST/s3_rest_controller

    v50 v51  
    8989By default, list views will contain a hidden create-form and an "Add Record"-button to activate the create-form.
    9090
    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 
     91When you set {{{s3xrc.model.configure(table, listadd=False)}}}, the "Add Record"-button will link to a separate create-view instead.
     92
     93If 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
     95To generally hide the "Add Record"-button (e.g. table can only contain one single record), use:
     96
     97{{{
     98s3_rest_controller(prefix, resourcename, add_btn=None)
     99}}}
    96100=== Redirection ===
    97101