1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/frontend/templates/admin/invoices/accountingExportModal.html

102 lines
5.2 KiB
HTML
Raw Normal View History

<div class="modal-header">
<h3 class="text-center red" translate>{{ 'app.admin.invoices.export_accounting_data' }}</h3>
</div>
<div class="modal-body">
2019-07-31 11:10:10 +02:00
<form role="form" name="exportForm">
<div class="row">
<div class="form-group col-md-6">
<label for="start_date" translate>{{ 'app.admin.invoices.export_form_date' }}</label>
2019-07-31 11:10:10 +02:00
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input type="text"
class="form-control"
name="start_date"
id="start_date"
ng-model="exportTarget.startDate"
uib-datepicker-popup="{{datePicker.format}}"
datepicker-options="datePicker.options"
is-open="datePicker.opened.start"
2019-07-31 12:00:52 +02:00
min-date="firstInvoice"
2019-07-31 11:10:10 +02:00
placeholder="{{datePicker.format}}"
ng-click="toggleDatePicker($event, 'start')"
required/>
</div>
</div>
<div class="form-group col-md-6">
<label for="end_date" translate>{{ 'app.admin.invoices.export_to_date' }}</label>
2019-07-31 11:10:10 +02:00
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
<input type="text"
class="form-control"
name="end_date"
id="end_date"
ng-model="exportTarget.endDate"
uib-datepicker-popup="{{datePicker.format}}"
datepicker-options="datePicker.options"
is-open="datePicker.opened.end"
2019-07-31 12:00:52 +02:00
min-date="exportTarget.startDate || firstInvoice"
2019-07-31 11:10:10 +02:00
placeholder="{{datePicker.format}}"
ng-click="toggleDatePicker($event, 'end')"
required/>
</div>
</div>
</div>
<div class="row">
2021-12-29 17:00:49 +01:00
<h4 class="control-label m-l" translate>{{ 'app.admin.invoices.export_what' }}</h4>
2019-07-31 11:10:10 +02:00
<div class="form-group m-l-lg">
2021-12-29 17:00:49 +01:00
<label for="vat" class="block">
<input type="radio" name="vat" id="vat" ng-model="exportTarget.software" ng-value="'vat'" ng-click="fillSettings('vat')" required/>
{{ 'app.admin.invoices.export_VAT' | translate }}
</label>
<label for="acd" class="block">
<input type="radio" name="acd" id="acd" ng-model="exportTarget.software" ng-value="'acd'" ng-click="fillSettings('acd')" required/>
2021-12-29 17:00:49 +01:00
{{ 'app.admin.invoices.export_to_ACD' | translate }}
2019-07-31 11:10:10 +02:00
</label>
</div>
</div>
<div class="row" ng-show="exportTarget.settings">
<div class="col-md-4 font-bold" translate>{{ 'app.admin.invoices.format' }}</div>
2019-07-31 11:10:10 +02:00
<div class="col-md-8">{{ exportTarget.settings.format }}</div>
<div class="col-md-4 font-bold" translate>{{ 'app.admin.invoices.encoding' }}</div>
2019-07-31 11:10:10 +02:00
<div class="col-md-8">{{ exportTarget.settings.encoding }}</div>
<div class="col-md-4 font-bold" translate>{{ 'app.admin.invoices.separator' }}</div>
2019-07-31 11:10:10 +02:00
<div class="col-md-8">{{ exportTarget.settings.separator }}</div>
<div class="col-md-4 font-bold" translate>{{ 'app.admin.invoices.dateFormat' }}</div>
2019-07-31 11:10:10 +02:00
<div class="col-md-8">
<a href="https://apidock.com/ruby/DateTime/strftime" class="help-cursor" target="_blank">{{ exportTarget.settings.dateFormat }}</a>
</div>
<div class="col-md-4 font-bold" translate>{{ 'app.admin.invoices.labelMaxLength' }}</div>
<div class="col-md-8">{{ exportTarget.settings.labelMaxLength }}</div>
<div class="col-md-4 font-bold" translate>{{ 'app.admin.invoices.decimalSeparator' }}</div>
<div class="col-md-8">{{ exportTarget.settings.decimalSeparator }}</div>
<div class="col-md-4 font-bold" translate>{{ 'app.admin.invoices.exportInvoicesAtZero' }}</div>
2020-02-18 15:49:08 +01:00
<div class="col-md-8" translate>{{ exportTarget.settings.exportInvoicesAtZero ? 'app.shared.buttons.yes' : 'app.shared.buttons.no' }}</div>
<div class="col-md-4 font-bold" translate>{{ 'app.admin.invoices.columns' }}</div>
2019-07-31 11:10:10 +02:00
<table class="col-md-12 export-table-template">
<thead>
<tr>
<td ng-repeat="column in exportTarget.settings.columns" translate>{{ 'app.admin.invoices.exportColumns.' + column }}</td>
2019-07-31 11:10:10 +02:00
</tr>
</thead>
<tbody>
<tr>
<td ng-repeat="column in exportTarget.settings.columns"></td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
<div class="modal-footer">
<form role="form" ng-submit="ok()" name="exportFormParams" method="post" action="{{ actionUrl }}" class="inline">
<input name="authenticity_token" type="hidden" ng-value="csrfToken"/>
<input name="_method" type="hidden" ng-value="method"/>
<input name="extension" type="hidden" ng-value="query.extension"/>
<input name="type" type="hidden" ng-value="exportTarget.software"/>
<input name="key" type="hidden" ng-value="query.key"/>
<input name="query" type="hidden" ng-value="query.query"/>
<input type="submit" class="btn btn-warning" value="{{ 'app.shared.buttons.confirm' | translate }}" formtarget="export-frame"/>
</form>
<button class="btn btn-default" ng-click="cancel()" translate>{{ 'app.shared.buttons.cancel' }}</button>
</div>