From cd4e68e94c214e63ec03ce8ab201ed337885f285 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 3 Jun 2012 20:09:00 +0200 Subject: [PATCH] Link office to ads. New CSS style. --- .../office/templates/_formCustomOfficeAds.php | 22 +++++++++++++--------- lib/form/doctrine/OfficeAdsForm.class.php | 1 + web/css/inadminpanel/style.css | 20 ++++++++++++++++++++ 3 files changed, 34 insertions(+), 9 deletions(-) diff --git a/apps/companyfront/modules/office/templates/_formCustomOfficeAds.php b/apps/companyfront/modules/office/templates/_formCustomOfficeAds.php index 5b4d515..d21b54d 100644 --- a/apps/companyfront/modules/office/templates/_formCustomOfficeAds.php +++ b/apps/companyfront/modules/office/templates/_formCustomOfficeAds.php @@ -7,17 +7,21 @@ - - - - -
- renderHiddenFields(false) ?> -   - /> -
+ renderHiddenFields(false) ?> + + + + + + + +
+ + + +
diff --git a/lib/form/doctrine/OfficeAdsForm.class.php b/lib/form/doctrine/OfficeAdsForm.class.php index 251a551..94dce7c 100644 --- a/lib/form/doctrine/OfficeAdsForm.class.php +++ b/lib/form/doctrine/OfficeAdsForm.class.php @@ -35,6 +35,7 @@ class OfficeAdsForm extends BaseOfficeAdsForm $this->validatorSchema['ad_id'] = new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('Ad'), 'multiple' => true, 'query' => $query)); + $this->widgetSchema->setLabel('ad_id', false); $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('office_ads_form'); } diff --git a/web/css/inadminpanel/style.css b/web/css/inadminpanel/style.css index ba02799..d9cc90e 100644 --- a/web/css/inadminpanel/style.css +++ b/web/css/inadminpanel/style.css @@ -552,3 +552,23 @@ border: 1px solid #95E0EF; background-color:#f3fcfe; border-left-width:2px; } +.double_list_select-selected{ +width:200px; +height:200px; +float:left; +border: 1px solid #95E0EF; +background-color:#f3fcfe; +border-left-width:2px; +} +.double_list_select{ +width:200px; +height:200px; +float:left; +border: 1px solid #95E0EF; +background-color:#f3fcfe; +border-left-width:2px; +} +.double_list_label{ +color:#666666; +padding:2px 5px 2px 5px; +} -- 2.1.4