[symfony-users] Re: Admin generator. Two modules from same schema or a module with two views ?

2010-03-19 Thread Race
Thank you.
I use symfony 1.2 and it generate again same module.
I try with symfony 1.4 and , yes , it-s working.
I have to upgrade to 1.4.
Have a nice day.
Horatiu

On Mar 19, 1:32 am, Richtermeister  wrote:
> Hey There,
>
> yes, both solutions work: either create 2 distinct admin modules by
> specifying the "module" parameter during creation,
> or have one "smart" module that display info/forms differently. In the
> latter case you'll probably have to custom code more and rely less on
> the yml configuration.
>
> Daniel
>
> On Mar 18, 4:27 am, Race  wrote:
>
> > # config/schema.yml
> > propel:
>
> > jobeet_job:
> > id: ~
> > category_id: { type: integer, foreignTable: jobeet_category,
> > foreignReference: id, required: true }
> > type: { type: varchar(255) }
> > company: { type: varchar(255), required: true }
> > logo: { type: varchar(255) }
> > url: { type: varchar(255) }
> > position: { type: varchar(255), required: true }
> > location: { type: varchar(255), required: true }
> > description: { type: longvarchar, required: true }
> > how_to_apply: { type: longvarchar, required: true }
> > token: { type: varchar(255), required: true, index: unique }
> > is_public: { type: boolean, required: true, default: 1 }
> > is_activated: { type: boolean, required: true, default: 0 }
> > email: { type: varchar(255), required: true }
> > expires_at: { type: timestamp, required: true }
> > created_at: ~
> > updated_at: ~
>
> > Can i generate two modules where module "job" and "detailed_job" is
> > configured different from his own generator.yml file ?
> > Example:
> > symfony propel:generate-admin backend JobeetJob --module=job
>
> > symfony propel:generate-admin backend JobeetJob --module=detailed_job
>
> > Finally: I need a module with two faces. One view is Simple and one is
> > Detailed.
>
> > Thank you !

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: Admin generator. Two modules from same schema or a module with two views ?

2010-03-18 Thread Richtermeister
Hey There,

yes, both solutions work: either create 2 distinct admin modules by
specifying the "module" parameter during creation,
or have one "smart" module that display info/forms differently. In the
latter case you'll probably have to custom code more and rely less on
the yml configuration.

Daniel



On Mar 18, 4:27 am, Race  wrote:
> # config/schema.yml
> propel:
>
> jobeet_job:
> id: ~
> category_id: { type: integer, foreignTable: jobeet_category,
> foreignReference: id, required: true }
> type: { type: varchar(255) }
> company: { type: varchar(255), required: true }
> logo: { type: varchar(255) }
> url: { type: varchar(255) }
> position: { type: varchar(255), required: true }
> location: { type: varchar(255), required: true }
> description: { type: longvarchar, required: true }
> how_to_apply: { type: longvarchar, required: true }
> token: { type: varchar(255), required: true, index: unique }
> is_public: { type: boolean, required: true, default: 1 }
> is_activated: { type: boolean, required: true, default: 0 }
> email: { type: varchar(255), required: true }
> expires_at: { type: timestamp, required: true }
> created_at: ~
> updated_at: ~
>
> Can i generate two modules where module "job" and "detailed_job" is
> configured different from his own generator.yml file ?
> Example:
> symfony propel:generate-admin backend JobeetJob --module=job
>
> symfony propel:generate-admin backend JobeetJob --module=detailed_job
>
> Finally: I need a module with two faces. One view is Simple and one is
> Detailed.
>
> Thank you !

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.