Added max file size for uploads.

This commit is contained in:
James Cole
2015-07-19 14:30:20 +02:00
parent fc886f6bc1
commit 4dbc135dce
6 changed files with 64 additions and 35 deletions

View File

@@ -26,6 +26,7 @@ return [
'update_attachment' => 'Update attachment',
'delete_attachment' => 'Delete attachment ":name"',
'attachment_deleted' => 'Deleted attachment ":name"',
'upload_max_file_size' => 'Maximum file size: :size',
// tour:
'prev' => 'Prev',

View File

@@ -19,8 +19,7 @@
</ul>
{% endif %}
{% if Session.get('info') is iterable and Session.get('info')|length == 1 %}
<strong>Message:</strong>
{{ Session.get('info')[0]|raw }}
<strong>Message:</strong> {{ Session.get('info')[0]|raw }}
{% endif %}
{% if Session.get('info') is not iterable %}

View File

@@ -75,7 +75,7 @@
{{ ExpandedForm.select('piggy_bank_id',piggies) }}
<!-- ATTACHMENTS -->
{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple'}) }}
{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>

View File

@@ -76,7 +76,7 @@
{% endif %}
<!-- ATTACHMENTS -->
{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple'}) }}
{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>