[symfony-users] Change multiple checkboxes to multiple integers as percentages

2010-08-25 Thread Mihai Rusoaie
Hello all! I am collecting some demografic data with checkboxes right now: 0-4 years, 5-9 years, 10-14 years, etc. The user checks which age ranges matches the demographic data. Here is the schema: bdn_location: - table with the locations bdn_age: id: ~ age:

Re: [symfony-users] edit id in admin

2010-05-22 Thread Mihai Rusoaie
not count that a number is missing so the next contract will have no. 5. Which has to be changed by our back-office support to 2. There would be another way not to use the id for contract number; but it's easier and more intuitive... Hope I was clear, Mihai Rusoaie +40 72 RUSOAIE www.rusoaie.com

[symfony-users] edit id in admin

2010-05-21 Thread Mihai Rusoaie
Hello! When I insert an new object in the database, I want the id to be assigned automatically (autoincrement). In the edit form, however, I want to be able to change the id. I tried to override the BaseForm class widget and validator with: $this-widgetSchema['id'] = new

[symfony-users] embedded form - save an extra relation

2010-04-08 Thread Mihai Rusoaie
(); } $number = $request-getParameter('num')+1; $key = 'client_contact'.$number; $form-addClientContactForm($key); return $this- renderPartial('addClientContactForm',array('field' = $form['client_contacts'][$key], 'num' = $number)); } Thank you! Mihai Rusoaie +40 72

Re: [symfony-users] access object from validator

2010-04-07 Thread Mihai Rusoaie
!'), 'user_id'); //... Regards, Mihai Rusoaie +40 72 RUSOAIE www.rusoaie.com On Tue, Apr 6, 2010 at 1:11 PM, NOOVEO - Christophe Brun c.b...@nooveo.frwrote: Hi. I'm #far# from mastering Symfony but here are my two cents. I would say that validators are not intented to know anything else than

[symfony-users] access object from validator

2010-04-01 Thread Mihai Rusoaie
Hello, all! Is there any way to access my object (the one before the form post) from a sfValidatorSchema ? When I had my validator inside the Form.class.php file, I could access the object with $this-getObject(), but from the sfValidatorSchema class I cannot access it like this. I need to

[symfony-users] Adding a relationship field in a form

2010-03-23 Thread Mihai Rusoaie
Hello! I have 3 models: client, person and client_person: person: id: ~ name: { type: varchar(100), required: true, index: unique } ... client: id: ~ name: { type: varchar(255) } client_person:

[symfony-users] foreign key relations in admin generator

2010-03-17 Thread Mihai Rusoaie
Hello, all! Can you give me a hint on how can I display a name from a foreign table in the list display view in a generated backend. To be more precise, here is the schema: client: id: ~ name: { type: varchar(255), required: true, index: unique }

[symfony-users] Backend Ajax interface to insert related database entries

2009-09-22 Thread Mihai Rusoaie
profile from the backend company module. Thank you, Mihai Rusoaie +40 72 RUSOAIE mi...@rusoaie.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

[symfony-users] Re: static pages module

2009-09-14 Thread Mihai RUSOAIE
] [--non-verbose-templates] [--with-show] [--singular=...] [--plural=...] [--route-prefix=...] [--with-propel-route] [--env=...] application module model Mihai Rusoaie e-Business Consultant Mobile: +40 72 RUSOAIE Web: http://mihai.rusoaie.com - Original Message - From: Gábor Fási maerl

[symfony-users] sfGuardUser restrict access only to certain modules

2009-09-14 Thread Mihai RUSOAIE
restrict module actions to certain groups of users ? Like the selling team to be able to edit customer's infromation, and production team to be able only to view it? Could someone point me in the documentation where user group access to modules is explained? Thank you! Mihai Rusoaie e-Business

[symfony-users] sfGuard backend/admin module for managing users

2009-09-14 Thread Mihai RUSOAIE
and profile? Before I inserted the additional profile fields, I could subscribe the user to several groups directly from the backend sf_guard_user module. Now I can edit the username, password and all the additional profile data I added, but I cannot edit the group membership. Thank you! Mihai Rusoaie

[symfony-users] static pages module

2009-09-13 Thread Mihai Rusoaie
Hello! I am following the tutorial for creating static pages at http://trac.symfony-project.org/wiki/HowtoServeStaticContent My question is: how can I generate a module without a model (for the static module I don't need a model, do I)? Thank you! Mihai Rusoaie e-Business Consultant Mobile

[symfony-users] generate static pages

2009-09-13 Thread Mihai RUSOAIE
Hello! I am following the tutorial for creating static pages at http://trac.symfony-project.org/wiki/HowtoServeStaticContent My question is: how can I generate a module without a model (for the static module I don't need a model, do I)? Thank you! Mihai Rusoaie e-Business Consultant Mobile

[symfony-users] generated admin module with default template

2009-09-01 Thread Mihai Rusoaie
Hello! How can I generate an admin module, but keep the default template (the one that appears in the modules generated with generate-admin) Thank you! Mihai Rusoaie e-Business Consultant Mobile: +40 72 RUSOAIE Web: http://mihai.rusoaie.com

[symfony-users] date picker

2009-08-28 Thread Mihai RUSOAIE
Hello all! Can I use sfWidgetFormJQueryDate from sfFormExtraPlugin directly in the template? And maybe disable clicking on some of the days? I need a date picker, but restricted on some days. Is that possible with some plugin/widget, or I have to write one myself? Thank you, Mihai Rusoaie e

[symfony-users] multiple select in a single DB field

2009-08-27 Thread Mihai Rusoaie
Hello! Can I store a multiple select in a single database field? I don't need too many fields in the multiple select (about 5). Is there any way to do this using sfWidgetFormChoice and sfValidatorChoice in Symfony 1.2? If yes, what should be the schema field type and what objects to use?