Skip to content

Instantly share code, notes, and snippets.

@cwage
Created October 1, 2010 21:33
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/606891 to your computer and use it in GitHub Desktop.
Save cwage/606891 to your computer and use it in GitHub Desktop.
generator:
class: sfDoctrineGenerator
param:
model_class: sfGuardUser
theme: admin
non_verbose_templates: true
with_show: false
singular: ~
plural: ~
route_prefix: sf_guard_user
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
index:
credentials: admin
fields:
is_active: { credentials: [[admin]], label: Hi there }
username: { credentials: [[admin]], label: Hi there }
list:
display: [=username]
filter: ~
form:
class: sfGuardUserAdminForm
display:
"NONE": [username, first_name, last_name, email_address, password, password_again, Profile]
"Permissions and groups": [is_active, is_super_admin, groups_list, permissions_list]
edit: ~
new: ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment