[symfony-users] Admin generator, embedded form and global errors
Hi, I'm using an embedded form in an admin generator module (doctrine). When the embedded form is validated, all error messages are shown twice: in the top of the embedded view and near the fields. How can I avoid this behaviour? I would show the error messages only next the field, without global messages. I tried the throw_global_error option of some validators with no lucky. Thank you in advance --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
R: [symfony-users] Re: Doctrine Admin Generator: javascript message localization
I had to call some custom procedures to have a workaround for this problem... I assumed I could add my custom localized messages in the app folder apps/myapp/i18n/. Now I can fix this. Thank you for your support. -Messaggio originale- Da: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Per conto di Syndicut Inviato: giovedì 27 agosto 2009 13.43 A: symfony users Oggetto: [symfony-users] Re: Doctrine Admin Generator: javascript message localization I managed to translate this string by adding translation to file (relative to project root): lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/i18n/ sf_admin.YOUR_LOCALE.xml It should be sfPropelPlugin if you use Propel. On 10 ???, 19:20, televas silvio.cim...@televas.it wrote: Hi, I'm using the i18n support in some modules based on the doctrine admin generator. I'm configuring some messages, but I can't find how to have localized javascript messages. When I click on the delete link in the list, a message box ask me for confirmation. But I need to translate the message Are you sure? with the i18n support in the current user language. How can I do this? Besides, are available some complete catalogs with standard symfony messages already translated? For example a messages.xml file already configured for some languages? Has the Symfony community a common repository with resources like this? Thank you in advance. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
R: [SPAM] [symfony-users] Decimal character
I'm newbie. Did you tried to set in the settings.yml default_culture, charset and i18n values? Something like (from my project): all: .settings: [...] default_culture: it_IT charset: utf-8 i18n: on [...] -Messaggio originale- Da: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Per conto di HAUSa Inviato: giovedì 20 agosto 2009 12.00 A: symfony users Oggetto: [SPAM] [symfony-users] Decimal character When I use sfValidatorNumber, it is possible to use decimals. Numbers like 8.5 But, in Holland we use a , instead of a . to indicate decimals. How can I make this clear for this validator? Because when I use 8,5 it says invalid. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] R: style sheet issue
maybe, the css file is not available from the web. You could try to open with your browser the address to the css file and verify if it is loaded. -Messaggio originale- i have file main.css and i have included in view.yml. but the page doesnot display the main.css file. help needed --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] doctrine admin generator: custom label and icon in object_actions
Good suggestion! The linkToObjectactionname solution is also useful to customize the javascript message (Are you sure?) with i18n support (I sent another post with this request). Even though I hoped to find a generic solution useful for all modules, instead of a per-module implementation. In any case I learned something very useful, thank you very much! -Messaggio originale- in such a case I would simply add a class to my custom object action and set a javascript to clean up the text afterward. myaction: { label: myinvisiblelabel, params: class=nolabel ...} in js: $('.nolabel').text(''); another way would be to use in sf1.2+ the generator helper in lib/, I believe you can add a method: pubic function linkToObjectactionname($object, $params) { return 'what ever you want to return instead of the default'; } On Aug 10, 5:02 pm, silvio.cim...@televas.it wrote: I also tried the i18n support, but no success. Besides, when I set a string with only one blank space (“ “) no icons are shown. It seems that there's no solution to this behaviour… blank labels not expected. _ No success with this values: label: “” label: false label: NULL The aforementioned values show the URL. _ Yes I also notice that. Nut it seems to be the normal behaviour of link_to() ; if no text is precised, it shows the URL as text... perhaps try label: false as in sfForm... Le 10/08/09 10:09, silvio.cim...@televas.it a écrit : I need to have no label in some case and I tried to set something like: actions: _new: { label: } But when I set an empty value, the list shows the address link (mysite/mymodule/new) nearby the icon. So I tried to set: actions: _new: { label: nbsp; } But this inserts an ugly blank space nearby the icon. _ You can choose the label in the list/edit section: generator: class: ... param: config: actions: your_custom_action: ... [...] list: object_actions: your_custom_action: label: Label for your custom action in list view [...] edit: actions: your_custom_action: label: Label for your custom action in editing view For the icon, I use CSS (if you look, actions from Sf like delete, new, ... don't use img but ul li css style): #sf_admin_container ul li.sf_admin_action_YOURACTION a { background:transparent url(../images/your_image.png) no-repeat scroll 0 0; } Le 10/08/09 09:35, silvio.cim...@televas.it a écrit : I hoped to set all my preferences into the generator.yml. Maybe I could enable the i18n support and customize the messages (but no the icons). I can’t explain why the admin generator doesn’t include this simple configuration in the yaml: I think this is a common requirement. Thank you, I'll try the i18n and your suggestion too. _ On the admin generator you can use a partial but i don't no if what's you wan't but i think is usefull or use the formatter or overlord _form_field.php and modify this template in the admin generator http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12http://www.symfon y-project.org/jobeet/1_2/Doctrine/en/12 _form_field.php Displays a singe form field 2009/8/8 televas silvio.cim...@televas.it Hi, how can I customize label and icon in the object_actions of the doctrine admin generator? I would show an empty label with a custom icon, but I can't find the correct method to set the generator.yml. I tried label: or label: or icon: /mydir/myicon.png but no one with success. Can you help me? Thank you in advance -- Tugdual SAUNIER Controllato da AVG -www.avg.com Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio: 08/09/09 18:10:00 -- Tugdual SAUNIER --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] R: Doctrine Admin Generator: javascript message localization
any suggestion? -Messaggio originale- Hi, I'm using the i18n support in some modules based on the doctrine admin generator. I'm configuring some messages, but I can't find how to have localized javascript messages. When I click on the delete link in the list, a message box ask me for confirmation. But I need to translate the message Are you sure? with the i18n support in the current user language. How can I do this? Besides, are available some complete catalogs with standard symfony messages already translated? For example a messages.xml file already configured for some languages? Has the Symfony community a common repository with resources like this? Thank you in advance. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] doctrine admin generator: custom label and icon in object_actions
I hoped to set all my preferences into the generator.yml. Maybe I could enable the i18n support and customize the messages (but no the icons). I can't explain why the admin generator doesn't include this simple configuration in the yaml: I think this is a common requirement. Thank you, I'll try the i18n and your suggestion too. _ On the admin generator you can use a partial but i don't no if what's you wan't but i think is usefull or use the formatter or overlord _form_field.php and modify this template in the admin generator http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 _form_field.php Displays a singe form field 2009/8/8 televas silvio.cim...@televas.it Hi, how can I customize label and icon in the object_actions of the doctrine admin generator? I would show an empty label with a custom icon, but I can't find the correct method to set the generator.yml. I tried label: or label: or icon: /mydir/myicon.png but no one with success. Can you help me? Thank you in advance --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
R: [symfony-users] Re: doctrine admin generator: custom label and icon in object_actions
I need to have no label in some case and I tried to set something like: actions: _new:{ label: } But when I set an empty value, the list shows the address link (mysite/mymodule/new) nearby the icon. So I tried to set: actions: _new:{ label: nbsp; } But this inserts an ugly blank space nearby the icon. _ You can choose the label in the list/edit section: generator: class: ... param: config: actions: your_custom_action: ... [...] list: object_actions: your_custom_action: label: Label for your custom action in list view [...] edit: actions: your_custom_action: label: Label for your custom action in editing view For the icon, I use CSS (if you look, actions from Sf like delete, new, ... don't use img but ul li css style): #sf_admin_container ul li.sf_admin_action_YOURACTION a { background:transparent url(../images/your_image.png) no-repeat scroll 0 0; } Le 10/08/09 09:35, silvio.cim...@televas.it a écrit : I hoped to set all my preferences into the generator.yml. Maybe I could enable the i18n support and customize the messages (but no the icons). I can’t explain why the admin generator doesn’t include this simple configuration in the yaml: I think this is a common requirement. Thank you, I'll try the i18n and your suggestion too. _ On the admin generator you can use a partial but i don't no if what's you wan't but i think is usefull or use the formatter or overlord _form_field.php and modify this template in the admin generator http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 _form_field.php Displays a singe form field 2009/8/8 televas silvio.cim...@televas.it Hi, how can I customize label and icon in the object_actions of the doctrine admin generator? I would show an empty label with a custom icon, but I can't find the correct method to set the generator.yml. I tried label: or label: or icon: /mydir/myicon.png but no one with success. Can you help me? Thank you in advance -- Tugdual SAUNIER Controllato da AVG - www.avg.com Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio: 08/09/09 18:10:00 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
R: R: [symfony-users] Re: doctrine admin generator: custom label and icon in object_actions
No success with this values: label: “” label: false label: NULL The aforementioned values show the URL. _ Yes I also notice that. Nut it seems to be the normal behaviour of link_to() ; if no text is precised, it shows the URL as text... perhaps try label: false as in sfForm... Le 10/08/09 10:09, silvio.cim...@televas.it a écrit : I need to have no label in some case and I tried to set something like: actions: _new:{ label: } But when I set an empty value, the list shows the address link (mysite/mymodule/new) nearby the icon. So I tried to set: actions: _new:{ label: nbsp; } But this inserts an ugly blank space nearby the icon. _ You can choose the label in the list/edit section: generator: class: ... param: config: actions: your_custom_action: ... [...] list: object_actions: your_custom_action: label: Label for your custom action in list view [...] edit: actions: your_custom_action: label: Label for your custom action in editing view For the icon, I use CSS (if you look, actions from Sf like delete, new, ... don't use img but ul li css style): #sf_admin_container ul li.sf_admin_action_YOURACTION a { background:transparent url(../images/your_image.png) no-repeat scroll 0 0; } Le 10/08/09 09:35, silvio.cim...@televas.it a écrit : I hoped to set all my preferences into the generator.yml. Maybe I could enable the i18n support and customize the messages (but no the icons). I can’t explain why the admin generator doesn’t include this simple configuration in the yaml: I think this is a common requirement. Thank you, I'll try the i18n and your suggestion too. _ On the admin generator you can use a partial but i don't no if what's you wan't but i think is usefull or use the formatter or overlord _form_field.php and modify this template in the admin generator http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 _form_field.php Displays a singe form field 2009/8/8 televas silvio.cim...@televas.it Hi, how can I customize label and icon in the object_actions of the doctrine admin generator? I would show an empty label with a custom icon, but I can't find the correct method to set the generator.yml. I tried label: or label: or icon: /mydir/myicon.png but no one with success. Can you help me? Thank you in advance -- Tugdual SAUNIER Controllato da AVG - www.avg.com Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio: 08/09/09 18:10:00 -- Tugdual SAUNIER Controllato da AVG - www.avg.com Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio: 08/09/09 18:10:00 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[symfony-users] doctrine admin generator: custom label and icon in object_actions
I also tried the i18n support, but no success. Besides, when I set a string with only one blank space (“ “) no icons are shown. It seems that there's no solution to this behaviour… blank labels not expected. _ No success with this values: label: “” label: false label: NULL The aforementioned values show the URL. _ Yes I also notice that. Nut it seems to be the normal behaviour of link_to() ; if no text is precised, it shows the URL as text... perhaps try label: false as in sfForm... Le 10/08/09 10:09, silvio.cim...@televas.it a écrit : I need to have no label in some case and I tried to set something like: actions: _new:{ label: } But when I set an empty value, the list shows the address link (mysite/mymodule/new) nearby the icon. So I tried to set: actions: _new:{ label: nbsp; } But this inserts an ugly blank space nearby the icon. _ You can choose the label in the list/edit section: generator: class: ... param: config: actions: your_custom_action: ... [...] list: object_actions: your_custom_action: label: Label for your custom action in list view [...] edit: actions: your_custom_action: label: Label for your custom action in editing view For the icon, I use CSS (if you look, actions from Sf like delete, new, ... don't use img but ul li css style): #sf_admin_container ul li.sf_admin_action_YOURACTION a { background:transparent url(../images/your_image.png) no-repeat scroll 0 0; } Le 10/08/09 09:35, silvio.cim...@televas.it a écrit : I hoped to set all my preferences into the generator.yml. Maybe I could enable the i18n support and customize the messages (but no the icons). I can’t explain why the admin generator doesn’t include this simple configuration in the yaml: I think this is a common requirement. Thank you, I'll try the i18n and your suggestion too. _ On the admin generator you can use a partial but i don't no if what's you wan't but i think is usefull or use the formatter or overlord _form_field.php and modify this template in the admin generator http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 http://www.symfony-project.org/jobeet/1_2/Doctrine/en/12 _form_field.php Displays a singe form field 2009/8/8 televas silvio.cim...@televas.it Hi, how can I customize label and icon in the object_actions of the doctrine admin generator? I would show an empty label with a custom icon, but I can't find the correct method to set the generator.yml. I tried label: or label: or icon: /mydir/myicon.png but no one with success. Can you help me? Thank you in advance -- Tugdual SAUNIER Controllato da AVG - www.avg.com Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio: 08/09/09 18:10:00 -- Tugdual SAUNIER Controllato da AVG - www.avg.com Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio: 08/09/09 18:10:00 Controllato da AVG - www.avg.com Versione: 8.5.387 / Database dei virus: 270.13.49/2293 - Data di rilascio: 08/09/09 18:10:00 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
R: [symfony-users] problem with foreign key field
I'm a beginner, but I think that maybe you could solve like following: - idgroup in team table = id - idgroup in useraccount = group_id I hope this is helpful. Sorry for my bad english. Silvio -Messaggio originale- Da: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Per conto di leader Inviato: martedì 21 luglio 2009 15.36 A: symfony users Cc: med@gmail.com Oggetto: [symfony-users] problem with foreign key field Hi, I'm a newhire in symfony, I created an admin module for my Team Model (team : group) and I created an admin module for Useraccount model. when I clic on new in Useraccount admin module I have e form to enter information, but for TeamID : i have a TextBox field... so i have to enter manually the id ... normally it should print a comboBox field to choose the TEam id ... in the scheama I have This : . . . team: _attributes: { phpName: Team } IDGROUP: { type: DECIMAL, size: '8', scale: '0', primaryKey: true, required: true } DESCRIPTION: { type: VARCHAR, size: '1024', required: false } useraccount: _attributes: { phpName: Useraccount } IDUSER: { type: DECIMAL, size: '8', scale: '0', primaryKey: true, required: true } IDGROUP: { type: DECIMAL, size: '8', scale: '0', required: true } NAME: { type: VARCHAR, size: '1024', required: false } LASTNAME: { type: VARCHAR, size: '1024', required: false } EMAIL: { type: VARCHAR, size: '1024', required: false } PASSWORD: { type: VARCHAR, size: '1024', required: false } LEVEL: { type: DECIMAL, size: '8', scale: '0', required: false } _indexes: { FK_BELONGUG: [IDGROUP] } .. Controllato da AVG - www.avg.com Versione: 8.5.387 / Database dei virus: 270.13.20/2251 - Data di rilascio: 07/20/09 18:29:00 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---