Compare commits

..

2 Commits

3 changed files with 19 additions and 5 deletions

View File

@ -23,6 +23,7 @@ $form->runIf('save', function () use ($plugin) {
$plugin->setConfigProperty('objet_1', trim(f('objet_1')));
$plugin->setConfigProperty('objet_2', trim(f('objet_2')));;
$plugin->setConfigProperty('logo', (bool)f('logo'));
$plugin->setConfigProperty('footer', f('footer'));
$plugin->setConfigProperty('validate_cp', (bool)f('validate_cp'));

View File

@ -93,6 +93,10 @@ if ($f->type_facture != CERFA)
$adresse = "";
}
$logo='';
if ($plugin->getConfig('logo')) {
$logo = '<img id="logo" src="' . $config->fileURL('logo') . '" />';
}
$asso =
// 'Émis par :<br><br>'.
'<b>'.$config->get('org_name')."</b><br>".
@ -267,6 +271,13 @@ EOF;
width: 40%;
vertical-align: top;
}
.adressage td#logo {
width: 20%;
vertical-align: top;
}
.adressage img#logo {
height : 3cm;
}
.contenuTexte {
padding: 0 6mm;
@ -318,6 +329,7 @@ EOF;
<table class="adressage">
<tr>
<td id="logo">$logo</td>
<td>$asso</td>
<td>$receveur</td>
</tr>

View File

@ -52,6 +52,7 @@
<fieldset>
<legend>Factures</legend>
<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}
</dl>
</fieldset>