feat: 인쇄 A4 맞춤 + 재고현황 실사버튼 제거
- 회원관리·승인대기 표를 인쇄 시 A4 너비에 맞게(줄바꿈·관리 열 제외) - 재고현황의 '실사 선별 조회' 버튼 제거(소메뉴로 이동 가능) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -5,8 +5,26 @@
|
||||
<button onclick="window.print()" class="no-print border border-btn-print-border text-gray-600 px-3 py-1 rounded-sm text-sm hover:bg-gray-50 transition">인쇄</button>
|
||||
</div>
|
||||
</section>
|
||||
<div class="border border-gray-300 rounded-lg p-4 mt-2">
|
||||
<form method="get" action="<?= base_url('admin/access/approvals') ?>" class="mb-4 flex flex-wrap items-center gap-2 text-sm">
|
||||
<style>
|
||||
/* 인쇄 시 승인 대기 표를 A4 너비에 맞춤(잘림 방지) */
|
||||
@media print {
|
||||
@page { size: A4 portrait; margin: 10mm; }
|
||||
.approval-print-wrap { border: 0 !important; padding: 0 !important; overflow: visible !important; }
|
||||
.approval-print-wrap table.data-table { width: 100% !important; table-layout: fixed; font-size: 9px; }
|
||||
.approval-print-wrap .data-table th,
|
||||
.approval-print-wrap .data-table td {
|
||||
white-space: normal !important; /* nowrap 해제 → 줄바꿈 허용 */
|
||||
word-break: break-word;
|
||||
overflow-wrap: anywhere;
|
||||
padding: 2px 3px !important;
|
||||
vertical-align: top;
|
||||
}
|
||||
/* '관리'(승인/반려 버튼) 열은 인쇄에 불필요 → 제외해 가로 폭 확보 */
|
||||
.approval-print-wrap .col-actions { display: none !important; }
|
||||
}
|
||||
</style>
|
||||
<div class="approval-print-wrap border border-gray-300 rounded-lg p-4 mt-2">
|
||||
<form method="get" action="<?= base_url('admin/access/approvals') ?>" class="no-print mb-4 flex flex-wrap items-center gap-2 text-sm">
|
||||
<label for="status" class="font-bold text-gray-700 shrink-0">상태</label>
|
||||
<select id="status" name="status" class="border border-gray-300 rounded px-3 py-1.5 text-sm min-w-[12rem] w-48 max-w-full">
|
||||
<option value="pending" <?= ($status ?? 'pending') === 'pending' ? 'selected' : '' ?>>승인 대기</option>
|
||||
@@ -25,7 +43,7 @@
|
||||
<th class="text-center">요청 역할</th>
|
||||
<th class="text-center">상태</th>
|
||||
<th class="text-center">처리일</th>
|
||||
<th class="text-center">관리</th>
|
||||
<th class="text-center col-actions">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -45,7 +63,7 @@
|
||||
<?php if (($row->mar_status ?? '') === 'rejected'): ?>반려<?php endif; ?>
|
||||
</td>
|
||||
<td class="text-center"><?= esc($row->mar_processed_at ?? '-') ?></td>
|
||||
<td class="text-center">
|
||||
<td class="text-center col-actions">
|
||||
<?php if (($row->mar_status ?? '') === 'pending'): ?>
|
||||
<div class="flex items-center justify-center gap-1">
|
||||
<form action="<?= base_url('admin/access/approve/' . $row->mar_idx) ?>" method="post" class="inline">
|
||||
|
||||
Reference in New Issue
Block a user