sfDoctrineAdminGeneratorWithShowPlugin - 1.0.0

a theme for the admin generator with a show view.

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

Generate a module with propel:generate-admin :

  ./symfony --theme=adminWithShow doctrine:generate-admin 

turn on or off the show view in the generator.yml

    with_show:             true

sample :

generator:
  class: sfDoctrineGenerator
  param:
    model_class:           DemoAuthor
    theme:                 adminWithShow
    non_verbose_templates: true
    with_show:             true
    singular:              ~
    plural:                ~
    route_prefix:          demo_author
    with_doctrine_route:   1

    config:
      actions: ~
      fields:  ~
      list:    ~
      filter:  ~
      form:    ~
      edit:    ~
      new:     ~
      show:    ~

you can customize the display :

      show:
        title:      my show view
        display:    [is_admin ](firstname,)
        fields:
          is_admin: {name: user is admin }

or:

      show 
        title:      my show view
        hide:       [id ]
        fields:
          is_admin: {name: user is admin }

TODO

  • a task for create the module