Add attachment to recurring.

This commit is contained in:
James Cole
2020-06-12 20:56:58 +02:00
parent b1732d0de8
commit 54d5778bf3
9 changed files with 61 additions and 17 deletions

View File

@@ -4,7 +4,7 @@
{% endblock %}
{% block content %}
<form action="{{ route('recurring.store') }}" method="post" id="store" class="form-horizontal">
<form action="{{ route('recurring.store') }}" method="post" id="store" class="form-horizontal" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
{# row with recurrence information #}
<div class="row">
@@ -51,8 +51,8 @@
{# only correct way to do active checkbox #}
{{ ExpandedForm.checkbox('active', 1) }}
{{ ExpandedForm.checkbox('apply_rules',1) }}
{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>

View File

@@ -52,6 +52,7 @@
{# only correct way to do active checkbox #}
{{ ExpandedForm.checkbox('active', 1, preFilled.active) }}
{{ ExpandedForm.checkbox('apply_rules', 1, preFilled.apply_rules) }}
{{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
</div>
</div>
</div>

View File

@@ -56,6 +56,9 @@
</div>
</td>
<td data-value="{{ rt.title }}">
{% if rt.attachments > 0 %}
<i class="fa fa-fw fa-paperclip"></i>
{% endif %}
{% if rt.active == false %}<s>{% endif %}
{{ rt.type|_ }}:
<a href="{{ route('recurring.show',rt.id) }}">{{ rt.title }}</a>