Link office to ads. New CSS style.
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 3 Jun 2012 18:09:00 +0000 (20:09 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 3 Jun 2012 18:09:00 +0000 (20:09 +0200)
apps/companyfront/modules/office/templates/_formCustomOfficeAds.php
lib/form/doctrine/OfficeAdsForm.class.php
web/css/inadminpanel/style.css

index 5b4d515..d21b54d 100644 (file)
@@ -7,17 +7,21 @@
 <input type="hidden" name="sf_method" value="put" />
 <?php endif; ?>
   <table>
-    <tfoot>
-      <tr>
-        <td colspan="2">
-          <?php echo $form->renderHiddenFields(false) ?>
-          &nbsp;<a href="<?php echo url_for('office/index?page='.$page.'&sort='.$sort) ?>"><?php echo __('Back to list') ?></a>
-          <input type="submit" value=<?php echo __('Save') ?> />
-        </td>
-      </tr>
-    </tfoot>
     <tbody>
         <?php echo $form ?>
     </tbody>
   </table>
+  <?php echo $form->renderHiddenFields(false) ?>
+  <table align="right">
+        <tbody>
+            <tr>
+            <td>
+                <a href="<?php echo url_for('office/index?page='.$page.'&sort='.$sort) ?>" class="bt_red"><strong><?php echo __('Back to list') ?></strong></a>
+            </td>
+            <td>
+                <input type="submit" value="<?php echo __('Save') ?>" class="NFButton">
+            </td>
+            </tr>
+        </tbody>
+   </table>
 </form>
index 251a551..94dce7c 100644 (file)
@@ -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');
   }
index ba02799..d9cc90e 100644 (file)
@@ -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;
+}