\r
public function init() {\r
parent::init();\r
+\r
+ $resellers_title = new Zend_Form_Element_Textarea('resellers_title');\r
+ $resellers_title->setLabel('Titre pour bloc "Revendeurs internationaux"');\r
+ $resellers_title->setAttrib('rows', 3);\r
+ $this->addElement($resellers_title);\r
+\r
+ $resellers = new Fluidbook_Form_CMS_Sub_Resellers_Resellers();\r
+ $resellers->setLegend('Revendeurs');\r
+ $this->addSubForm($resellers, 'resellers');\r
+\r
}\r
\r
}
\ No newline at end of file
--- /dev/null
+<?php
+
+class Fluidbook_Form_CMS_Sub_Resellers_Reseller extends CubeIT_Form_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $company = new Zend_Form_Element_Text('company');
+ $company->setLabel('Nom de la société');
+ $this->addElement($company);
+
+ $country = new CubeIT_Form_Element_Country('country');
+ $country->setLabel('Pays');
+ $this->addElement($country);
+
+ $details = new CubeIT_Form_Element_Markitup('details');
+ $details->setLabel('Details');
+ $this->addElement($details);
+ }
+}
\ No newline at end of file
--- /dev/null
+<?php
+
+class Fluidbook_Form_CMS_Sub_Resellers_Resellers extends CubeIT_Form_Multi_SubForm {
+
+ public function init() {
+ parent::init();
+
+ $reseller = new Fluidbook_Form_CMS_Sub_Resellers_Reseller();
+ $this->setBaseSubForm($reseller);
+ $this->setBaseLegend('Edition du revendeur « $company »');
+ $this->setNewLegend('Nouveau revendeur');
+
+ }
+}
\ No newline at end of file
$res .= $this->quoteForm();\r
\r
// Resellers\r
+$res .= '<div class="resellers content-wrapper grid">';\r
+$res .= '<h1 class="title col-6">'. nl2br($this->resellers_title) .'</h1>';\r
+foreach ($this->resellers as $reseller) {\r
+ $res .= '<div class="reseller col-1">';\r
+ $res .= '<h4>'. $locale->getTranslation($reseller['country'], 'Territory') .'</h4>';\r
+ $res .= $reseller['company'];\r
+ $res .= $this->markupDotclear($reseller['details']);\r
+ $res .= '</div>'; // .reseller\r
+}\r
+$res .= '</div>'; // .resellers\r
\r
echo $res;
\ No newline at end of file
@color-footer-bg-secondary: #161e26;
@color-green: #8aab41;
@color-header-grey: #2a3743;
+@color-light-grey: #f3f3f3;
@color-error: #c91818;
//-- Content and breakpoints
background-color: #fff;\r
}\r
&:nth-of-type(odd) {\r
- background-color: #f3f3f3;\r
+ background-color: @color-light-grey;\r
}\r
\r
button {\r
@import "000-imports";
+.contact {
+ h4 {
+ .font-thinning();
+ color: @color-text;
+ font-family: @montserrat;
+ font-weight: 600;
+ font-size: 15px;
+ text-transform: uppercase;
+ margin-bottom: 10px;
+ }
+}
+
.contact-intro {
background-repeat: no-repeat;
background-position: bottom right;
.divider();
}
- h4 {
- .font-thinning();
- color: @color-text;
- font-family: @montserrat;
- font-weight: 600;
- font-size: 15px;
- text-transform: uppercase;
- margin-bottom: 10px;
- }
-
address {
font-style: normal;
}
}
+}
+
+.resellers {
+ background-color: @color-light-grey;
+ flex-wrap: wrap;
+ margin-bottom: -30px; // Global offset for the bottom margin on .reseller items
+}
+
+.reseller {
+ padding-right: 30px;
+ min-width: 240px;
+ margin-bottom: 30px; // Needed when items wrap
}
\ No newline at end of file
background-position: center right;
background-repeat: no-repeat;
padding-right: 40px;
+ height: 53px;
}
textarea {
.tips {
margin-top: 42px;
padding: 20px 30px;
- background-color: #f3f3f3;
+ background-color: @color-light-grey;
min-height: 170px; // Same as textarea height
position: relative;
position: absolute;
pointer-events: none;
border: 16px solid transparent;
- border-right-color: #f3f3f3;
+ border-right-color: @color-light-grey;
margin-top: -16px;
}