Changes between Version 58 and Version 59 of S3/S3REST/s3_rest_controller


Ignore:
Timestamp:
03/20/11 15:12:18 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3REST/s3_rest_controller

    v58 v59  
    8787=== List-add ===
    8888
    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.
     89By 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).
    9290
    9391If 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.
    9492
    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.''
    10094=== Redirection ===
    10195