Skip to content

Instantly share code, notes, and snippets.

@cwage
Created October 1, 2010 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwage/606894 to your computer and use it in GitHub Desktop.
Save cwage/606894 to your computer and use it in GitHub Desktop.
generator:
class: sfDoctrineGenerator
param:
model_class: Organization
theme: textbook
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: organization
with_doctrine_route: true
actions_base_class: sfActions
config:
actions:
new:
credentials: admin
create:
credentials: admin
save:
credentials: admin
save_and_add:
credentials: admin
delete:
credentials: admin
edit:
credentials: admin
fields:
schools_count: { label: Schools }
purchases_count: { label: Purchases }
gross: { label: Commission, credentials: [[admin, commission]] }
list:
display:
- name
- schools_count
- purchases_count
- sales
- gross
- payout
- _view
actions:
_new:
credentials: admin
export: ~
object_actions:
_delete:
credentials: admin
_edit:
credentials: admin
batch_actions:
_delete:
credentials: admin
filter:
display:
- sales_rep_id
form: ~
edit: ~
new: ~
export:
display:
- name
- schools_count
- purchases_count
- sales
- gross
- payout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment