Skip to content

Commit

Permalink
帳票出力のdatepickerの挙動を調整
Browse files Browse the repository at this point in the history
  • Loading branch information
chihiro-adachi authored and okazy committed May 8, 2021
1 parent a40a0b8 commit 476aed4
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/Eccube/Resource/template/admin/Order/order_pdf.twig
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,15 @@ file that was distributed with this source code.

<script type="text/javascript">
$(function() {
if ($('[type="date"]').prop('type') != 'date') {
$('input[id$=_issue_date]').datetimepicker({
locale: '{{ eccube_config.locale }}',
format: 'YYYY-MM-DD',
useCurrent: true,
buttons: {
showToday: true,
showClose: true
}
});
}
$('input[id$=_issue_date]').datetimepicker({
locale: '{{ eccube_config.locale }}',
format: 'YYYY-MM-DD',
useCurrent: true,
buttons: {
showToday: true,
showClose: true
}
});
var close = $('#windowclose');
Expand Down Expand Up @@ -93,7 +91,7 @@ file that was distributed with this source code.
<div class="card-body">
<div class="form-group">
<label>{{ 'admin.order.delivery_note_create_date'|trans }}</label>
{{ form_widget(form.issue_date) }}
{{ form_widget(form.issue_date, { type: 'text' }) }}
{{ form_errors(form.issue_date) }}
</div>

Expand Down

0 comments on commit 476aed4

Please sign in to comment.