[-] FO : #PSTEST-92 : added display of size fields in attachments.tpl

This commit is contained in:
lLefevre
2011-12-21 13:57:08 +00:00
parent 7aef71fd4d
commit 630639baf2
3 changed files with 6 additions and 2 deletions
@@ -49,6 +49,7 @@
</div>
{/foreach}
<sup>&nbsp;*</sup>
<p class="preference_description">{l s='Maximum 32 characters.'}</p>
</div>
<div class="clear">&nbsp;</div>
<label>{l s='Description:'} </label>
@@ -63,7 +64,7 @@
<label>{l s='File'}</label>
<div class="margin-form">
<p><input type="file" name="attachment_file" /></p>
<p class="preference_description">{l s='Upload file from your computer'}</p>
<p class="preference_description">{l s='Upload file from your computer'} ({$PS_ATTACHMENT_MAXIMUM_SIZE} {l s='Mo maximum'})</p>
</div>
<div class="clear">&nbsp;</div>
<div class="margin-form">
@@ -3043,7 +3043,8 @@ class AdminProductsControllerCore extends AdminController
'attach2' => Attachment::getAttachments($this->context->language->id, $obj->id, false),
'default_form_language' => $default_language,
'attachment_name' => $attachment_name,
'attachment_description' => $attachment_description
'attachment_description' => $attachment_description,
'PS_ATTACHMENT_MAXIMUM_SIZE' => Configuration::get('PS_ATTACHMENT_MAXIMUM_SIZE')
));
}
else
+2
View File
@@ -3420,9 +3420,11 @@ $_LANGADM['AdminProducts4cf86e65aa090f9e3acbfaba9f6af9a4'] = 'Vous êtes sur le
$_LANGADM['AdminProducts686e697538050e4664636337cc3b834f'] = 'Créer';
$_LANGADM['AdminProductse9cb217697088a98b1937d111d936281'] = 'Document joint';
$_LANGADM['AdminProducts6492d670e42151cc37574d99f4071f85'] = 'Nom du fichier';
$_LANGADM['AdminProducts4faaa9989034c771a314b2f2c0c9ede6'] = 'Maximum 32 caractères.';
$_LANGADM['AdminProductsd0042a700e9bdf79689d63ee6846dc0e'] = 'Description :';
$_LANGADM['AdminProducts0b27918290ff5323bea1e3b78a9cf04e'] = 'Fichier';
$_LANGADM['AdminProductsab335fe79ef8a5e26c0dbc23332a7148'] = 'Chargez un fichier depuis votre poste de travail';
$_LANGADM['AdminProductse3ff314e531b5c6bd338f04126b6f471'] = 'mégaoctets maximum';
$_LANGADM['AdminProducts92b69747c04b60634ec738b2e0d01abc'] = 'Ajouter un nouveau document joint';
$_LANGADM['AdminProducts19f823c6453c2b1ffd09cb715214813d'] = 'Champs requis';
$_LANGADM['AdminProducts9d38722749ec2101e437414ac2a743f9'] = 'Documents joints pour ce produit';