Ajout impression logo avec option de configuration
This commit is contained in:
parent
f93bb57906
commit
3d5af4ebb0
|
@ -23,6 +23,7 @@ $form->runIf('save', function () use ($plugin) {
|
||||||
$plugin->setConfigProperty('objet_1', trim(f('objet_1')));
|
$plugin->setConfigProperty('objet_1', trim(f('objet_1')));
|
||||||
$plugin->setConfigProperty('objet_2', trim(f('objet_2')));;
|
$plugin->setConfigProperty('objet_2', trim(f('objet_2')));;
|
||||||
|
|
||||||
|
$plugin->setConfigProperty('logo', (bool)f('logo'));
|
||||||
$plugin->setConfigProperty('footer', f('footer'));
|
$plugin->setConfigProperty('footer', f('footer'));
|
||||||
|
|
||||||
$plugin->setConfigProperty('validate_cp', (bool)f('validate_cp'));
|
$plugin->setConfigProperty('validate_cp', (bool)f('validate_cp'));
|
||||||
|
|
|
@ -93,6 +93,10 @@ if ($f->type_facture != CERFA)
|
||||||
$adresse = "";
|
$adresse = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$logo='';
|
||||||
|
if ($plugin->getConfig('logo')) {
|
||||||
|
$logo = '<img id="logo" src="' . $config->fileURL('logo') . '" />';
|
||||||
|
}
|
||||||
$asso =
|
$asso =
|
||||||
// 'Émis par :<br><br>'.
|
// 'Émis par :<br><br>'.
|
||||||
'<b>'.$config->get('org_name')."</b><br>".
|
'<b>'.$config->get('org_name')."</b><br>".
|
||||||
|
@ -267,6 +271,13 @@ EOF;
|
||||||
width: 40%;
|
width: 40%;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
.adressage td#logo {
|
||||||
|
width: 20%;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
.adressage img#logo {
|
||||||
|
height : 3cm;
|
||||||
|
}
|
||||||
|
|
||||||
.contenuTexte {
|
.contenuTexte {
|
||||||
padding: 0 6mm;
|
padding: 0 6mm;
|
||||||
|
@ -318,6 +329,7 @@ EOF;
|
||||||
|
|
||||||
<table class="adressage">
|
<table class="adressage">
|
||||||
<tr>
|
<tr>
|
||||||
|
<td id="logo">$logo</td>
|
||||||
<td>$asso</td>
|
<td>$asso</td>
|
||||||
<td>$receveur</td>
|
<td>$receveur</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -47,11 +47,12 @@
|
||||||
</dl>
|
</dl>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>input type="checkbox" name
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Factures</legend>
|
<legend>Factures</legend>
|
||||||
<dl>
|
<dl>
|
||||||
|
{input type="checkbox" name="logo" value="1" source=$conf label="Imprimer le logo de l'association"}
|
||||||
{input type="textarea" class="full-width" rows="10" name="footer" source=$conf label="Pied de document — informations légales" required=true}
|
{input type="textarea" class="full-width" rows="10" name="footer" source=$conf label="Pied de document — informations légales" required=true}
|
||||||
</dl>
|
</dl>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
Loading…
Reference in New Issue