Front mobile

This commit is contained in:
Alexandre Simonet 2016-02-24 15:33:47 +01:00
parent 72d8ef61b1
commit 715132c7e6
4 changed files with 107 additions and 35 deletions

View File

@ -4,8 +4,10 @@ if (!defined('_PS_VERSION_'))
class Contactform extends Module {
const TYPE_PRESS = 1;
const TYPE_PROVIDER = 2;
const TYPE_PRESS = 1;
const TYPE_PROVIDER = 2;
private $assets_module_dir;
public function __construct() {
$this->name = 'Contactform';
@ -19,7 +21,7 @@ class Contactform extends Module {
$this->displayName = $this->l('Contact form for press and providers');
$this->description = $this->l('Integrate contact form.');
$this->_errors = array();
$this->assets_module_dir = dirname(__FILE__);
}
public function installDB() {

View File

@ -1,11 +1,11 @@
<h1>{l s='Formulaire de contact presse' mod='contactform'}</h1>
<h1 class="module-contactform-h1">{l s='Formulaire de contact presse' mod='contactform'}</h1>
<ul class="idTabs">
<ul class="idTabs module-contactform-idTabs">
<li><a href="/modules/contactform/provider.php" >{l s='Fournisseur' mod='invite'}</a></li>
<li><a href="/modules/contactform/press.php" class="selected">{l s='Presse' mod='invite'}</a></li>
</ul>
<div class="sheets" style="padding: 20px 20px;">
<div class="sheets module-contactform-sheets clear" style="padding: 20px 20px;">
<div id="idTab1">
{if $_POST}
@ -21,61 +21,61 @@
<form action="/modules/contactform/press.php" method="post">
<div>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="compagny">{l s='Entreprise' mod='contactform'}*</label>
<input type="text" name="compagny" id="compagny">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="function">{l s='Fonction' mod='contactform'}*</label>
<input type="text" name="function" id="function">
</p>
</div>
<div>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="lastname">{l s='Nom' mod='contactform'}*</label>
<input type="text" name="lastname" id="lastname">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="firstname">{l s='Prénom' mod='contactform'}*</label>
<input type="text" name="firstname" id="firstname">
</p>
</div>
<div>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="email1">{l s='Email' mod='contactform'}*</label>
<input type="text" name="email1" id="email1">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="email2">{l s='Email secondaire' mod='contactform'}</label>
<input type="text" name="email2" id="email2">
</p>
</div>
<div>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="phone1">{l s='Téléphone' mod='contactform'}*</label>
<input type="text" name="phone1" id="phone1">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="phone2">{l s='Téléphone secondaire' mod='contactform'}</label>
<input type="text" name="phone2" id="phone2">
</p>
</div>
<p class="text">
<p class="text module-contactform-input-group">
<label for="content">{l s='Message' mod='contactform'}*</label>
<textarea name="content" id="content" cols="65" rows="10"></textarea>
</p>
<input type="hidden" name="type" value="{Contactform::TYPE_PRESS}">
<button type="submit" id="SubmitLogin">{l s='Envoyer' mod='contactform'}</button>
<button type="submit" id="SubmitLogin" class="module-contactform-button">{l s='Envoyer' mod='contactform'}</button>
</form>
</div>

View File

@ -1,10 +1,10 @@
<h1>{l s='Formulaire de contact fournisseur' mod='contactform'}</h1>
<h1 class="module-contactform-h1">{l s='Formulaire de contact fournisseur' mod='contactform'}</h1>
<ul class="idTabs">
<ul class="idTabs module-contactform-idTabs">
<li><a href="/modules/contactform/provider.php" class="selected">{l s='Fournisseur' mod='invite'}</a></li>
<li><a href="/modules/contactform/press.php" >{l s='Presse' mod='invite'}</a></li>
</ul>
<div class="sheets" style="padding: 20px 20px;">
<div class="sheets module-contactform-sheets clear" style="padding: 20px 20px;" class="module-contactform-sheets">
<div id="idTab1">
{if $_POST}
@ -20,71 +20,71 @@
<form action="/modules/contactform/provider.php" method="post">
<div>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="brand">{l s='Marque' mod='contactform'}*</label>
<input type="text" name="brand" id="brand">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="compagny">{l s='Entreprise' mod='contactform'}*</label>
<input type="text" name="compagny" id="compagny">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="function">{l s='Fonction' mod='contactform'}*</label>
<input type="text" name="function" id="function">
</p>
</div>
<div>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="lastname">{l s='Nom' mod='contactform'}*</label>
<input type="text" name="lastname" id="lastname">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="firstname">{l s='Prénom' mod='contactform'}*</label>
<input type="text" name="firstname" id="firstname">
</p>
</div>
<div>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="email1">{l s='Email' mod='contactform'}*</label>
<input type="text" name="email1" id="email1">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="email2">{l s='Email secondaire' mod='contactform'}</label>
<input type="text" name="email2" id="email2">
</p>
</div>
<div>
<p class="text" style="display: inline-block">
<label for="phone2">{l s='Téléphone secondaire' mod='contactform'}</label>
<input type="text" name="phone2" id="phone2">
</p>
<p class="text" style="display: inline-block">
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="phone1">{l s='Téléphone' mod='contactform'}*</label>
<input type="text" name="phone1" id="phone1">
</p>
<p class="text module-contactform-input-group" style="display: inline-block">
<label for="phone2">{l s='Téléphone secondaire' mod='contactform'}</label>
<input type="text" name="phone2" id="phone2">
</p>
</div>
<p class="text">
<p class="text module-contactform-input-group">
<label for="purpose">{l s='Proposition' mod='contactform'}*</label>
<input type="text" name="purpose" id="purpose">
</p>
<p class="text">
<p class="text module-contactform-input-group">
<label for="content">{l s='Message' mod='contactform'}*</label>
<textarea name="content" id="content" cols="65" rows="10"></textarea>
</p>
<input type="hidden" name="type" value="{Contactform::TYPE_PROVIDER}">
<button type="submit" id="SubmitLogin">{l s='Envoyer' mod='contactform'}</button>
<button type="submit" id="SubmitLogin" class="btn_box login_box module-contactform-button">{l s='Envoyer' mod='contactform'}</button>
</form>
</div>
</div>

View File

@ -4316,4 +4316,74 @@ body#index .jqibuttons span.gradient{
}
.fancybox-ie #fancybox-bg-nw {
filter: progid:dximagetransform.microsoft.alphaimageloader(src="../../../js/jquery/fancybox/fancy_shadow_nw.png", sizingMethod="scale");
}
.module-contactform-h1 {
color: #1e1633;
font-size: 26px;
text-align: center;
font-weight: normal;
padding: 20px 0;
}
.module-contactform-sheets {
background: #ffffff;
}
.module-contactform-idTabs {
margin: 0;
padding: 0;
font-size: 12px;
line-height: 1.5em;
}
.module-contactform-idTabs li {
float: left;
list-style: none;
}
.module-contactform-idTabs li a {
color: #1e1633;
display: block;
text-decoration: none;
background: #ebe8e9;
padding: 10px 20px;
}
.module-contactform-idTabs li a.selected {
display: block;
text-decoration: none;
padding: 10px 20px;
background: #ffffff;
}
.module-contactform-input-group {
margin: 12px 0;
}
.module-contactform-input-group input, .module-contactform-input-group textarea {
margin-top: 3px;
}
.module-contactform-input-group textarea {
height: 100px;
}
.module-contactform-button {
text-align: center;
text-transform: none;
color: #ffffff;
border: none;
padding: 8px 20px;
text-decoration: none;
font-weight: normal;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
font-family: georgia, times new roman, serif;
font-style: italic;
font-size: 13px;
background: #504d8b;
}