]> git.agnieray.net Git - galette.git/commit
Add file-type support for dynamic fields; fixes #727
authorGuillaume Rousse <guillomovitch@gmail.com>
Sat, 27 Jul 2013 17:02:50 +0000 (19:02 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Sun, 19 Jan 2014 08:18:07 +0000 (09:18 +0100)
commit97a3da50dac9a9d56369b910da75df59bf7f7197
treedef51672b12a132f7c9d9d1efc9df0e383629faa
parent637cb3e19effae5f7389b3c3df6db354eac8dad5
Add file-type support for dynamic fields; fixes #727

Three form elements are actually used, for more control:
- a standard file upload element
- a read-only text field displays current field value
- a checkbox allows to delete current value

Additional checking of  error occuring while proceeding dynamic fields
allow to provide feedback when a file is too large, for instance.
12 files changed:
galette/ajouter_adherent.php
galette/ajouter_contribution.php
galette/ajouter_transaction.php
galette/config/paths.inc.php
galette/get_file.php [new file with mode: 0644]
galette/install/steps/check.php
galette/lib/Galette/DynamicFieldsTypes/File.php [new file with mode: 0644]
galette/lib/Galette/Entity/DynamicFields.php
galette/self_adherent.php
galette/templates/default/display_dynamic_fields.tpl
galette/templates/default/edit_dynamic_fields.tpl
galette/templates/default/editer_champ.tpl