Bigtop
view release on metacpan or search on metacpan
lib/Bigtop/Backend/Control/Gantry.pm view on Meta::CPAN
set as the handler for that location must have a method called
do_strange_add.
=item html_template
The name of the Template Toolkit file to use as the view for this page.
By default this is results.tt for main_listing methods and main.tt for
base_link methods.
=item row_options
These yield href links at the end of each row in the output table.
Typical example:
row_options Edit, Delete;
These work just like header_options with one exception. The url has
the id of the row appended at the end.
If you say
row_options Edit => `$url`;
You must make sure that the url is exactly correct (including appending
'/$id' to it). Supplied values will be taken literally.
=item title
The browser window title for this page.
=back
=item AutoCRUD_form
Generates a method, usually called _form, which Gantry::Plugins::AutoCRUD
calls from its do_add and do_edit methods.
You may include the following keys in the method block:
=over 4
=item all_fields_but
A comma separated list of fields that should not appear on the form.
Typical example:
all_fields_but id;
=item extra_args
See above. Note that for the extra_args to be available, they must
be passed from the AutoCRUD calling method.
=item extra_keys
List key/value pairs you want to appear in the hash returned by the method.
Example:
extra_keys
legend => `$self->path_info =~ /edit/i ? 'Edit' : 'Add'`,
javascript => `$self->calendar_month_js( 'customer' )`;
The javascript entry is exactly correct for a form named customer
using Gantry::Plugins::Calendar.
Note that whatever you put inside the backquotes appears EXACTLY as is
in the generated output. Nothing will be done to it, not even quote
escaping.
=item fields
A comma separated list of the fields to include on the form. The
names must match fields of table you are controlling.
Example:
fields first_name, last_name, street, city, state, zip;
Note that all_fields_but is usually easier, but directly using fields
allows you to change the order in which the entry widgets appear.
=item form_name
The name of the html form. This is important if you are using javascript
which needs to refer to the form (for example if you are using
Gantry::Plugins::Calendar).
=back
=item CRUD_form
Takes the same keywords as AutoCRUD_form but makes a form method suitable
for use with Gantry::Plugins::CRUD. Note that due to the callback scheme
used in that module, the name you give the generated method is entirely up
to you. Note that the method is generated in the stub and therefore must
be included during initial building to avoid gymnastics (like renaming the
stub, genning, renaming the regened stub, moving the form method from that
file back into the real stub...).
=back
=head1 METHODS
To keep podcoverage tests happy.
=over 4
=item backend_block_keywords
Tells tentmaker that I understand these config section backend block keywords:
no_gen
dbix
full_use
template
=item what_do_you_make
Tells tentmaker what this module makes. Summary: Gantry controller modules.
=item gen_Control
( run in 1.882 second using v1.01-cache-2.11-cpan-39bf76dae61 )