From: Gustavo Martin Morcuende Date: Tue, 15 May 2012 23:31:47 +0000 (+0200) Subject: Ads edition and creation with internationalization X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=cf5a486588444a96e2f7ff63c84528ca35f73f9b;p=mobi%2F.git Ads edition and creation with internationalization Nested forms in order to create or edit ads (relation 1 to N between data base tables) I hate internationalization... --- diff --git a/apps/companyfront/config/app.yml b/apps/companyfront/config/app.yml index 7cad5cf..0e41bc0 100644 --- a/apps/companyfront/config/app.yml +++ b/apps/companyfront/config/app.yml @@ -4,7 +4,7 @@ # default values all: max_offices_on_pager: 3 - max_ads_on_pager: 3 + max_ads_on_pager: 2 sf_guard_plugin: remember_key_expiration_age: 2592000 # 30 days in seconds diff --git a/apps/companyfront/modules/ad/templates/_form.php b/apps/companyfront/modules/ad/templates/_form.php index 055a634..66bba95 100644 --- a/apps/companyfront/modules/ad/templates/_form.php +++ b/apps/companyfront/modules/ad/templates/_form.php @@ -11,50 +11,13 @@ renderHiddenFields(false) ?>  Back to list - getObject()->isNew()): ?> -  getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?> - - + renderGlobalErrors() ?> - - renderLabel() ?> - - renderError() ?> - - - - - renderLabel() ?> - - renderError() ?> - - - - - renderLabel() ?> - - renderError() ?> - - - - - renderLabel() ?> - - renderError() ?> - - - - - renderLabel() ?> - - renderError() ?> - - - + diff --git a/apps/companyfront/modules/ad/templates/_list.php b/apps/companyfront/modules/ad/templates/_list.php index 1ddfa3d..09e66bd 100644 --- a/apps/companyfront/modules/ad/templates/_list.php +++ b/apps/companyfront/modules/ad/templates/_list.php @@ -1,7 +1,7 @@ - + @@ -17,11 +17,11 @@ - + - - + + diff --git a/apps/companyfront/modules/ad/templates/editSuccess.php b/apps/companyfront/modules/ad/templates/editSuccess.php index b6d77be..0cdbaf0 100644 --- a/apps/companyfront/modules/ad/templates/editSuccess.php +++ b/apps/companyfront/modules/ad/templates/editSuccess.php @@ -1,3 +1,4 @@ -

Edit Ad

+

+ $form)) ?> diff --git a/apps/companyfront/modules/ad/templates/indexSuccess.php b/apps/companyfront/modules/ad/templates/indexSuccess.php index 48948e2..5c2dfd1 100644 --- a/apps/companyfront/modules/ad/templates/indexSuccess.php +++ b/apps/companyfront/modules/ad/templates/indexSuccess.php @@ -34,5 +34,5 @@ - + diff --git a/apps/companyfront/modules/ad/templates/newSuccess.php b/apps/companyfront/modules/ad/templates/newSuccess.php index 3d12b7f..2c9e131 100644 --- a/apps/companyfront/modules/ad/templates/newSuccess.php +++ b/apps/companyfront/modules/ad/templates/newSuccess.php @@ -1,3 +1,3 @@ -

New Ad

+

$form)) ?> diff --git a/apps/companyfront/templates/layout.php b/apps/companyfront/templates/layout.php index 9302c0e..19ee11e 100644 --- a/apps/companyfront/templates/layout.php +++ b/apps/companyfront/templates/layout.php @@ -61,7 +61,7 @@
  • Manage Ads @@ -78,13 +78,13 @@
    - Ads + Ads - Offices + Offices
  • getAd()->getAdMobileImageLink() ?><?php echo $ad->getAdName() ?> getAd()->getCompanyCategId() ?> getAdName() ?>', 'ad/delete?id='.$ad->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>', 'ad/delete?id='.$ad->getAd()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>