feat:성적서 인쇄뷰 + 문서 편집 버그 수정
- 성적서 인쇄뷰(print.blade.php) 추가: 동적 검사 테이블 렌더링
- DocumentController: print() 메서드, create/edit HTMX HX-Redirect 추가
- 기본필드 field_key: Str::slug→bf_{id} (한글 빈문자열 버그 수정)
- show.blade.php: 성적서 버튼 추가
- 양식 편집 UI 개선 + 복제 기능
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -98,6 +98,7 @@ private function prepareTemplateData(DocumentTemplate $template): array
|
||||
'name' => $template->name,
|
||||
'category' => $template->category,
|
||||
'title' => $template->title,
|
||||
'company_name' => $template->company_name,
|
||||
'footer_remark_label' => $template->footer_remark_label,
|
||||
'footer_judgement_label' => $template->footer_judgement_label,
|
||||
'footer_judgement_options' => $template->footer_judgement_options,
|
||||
@@ -110,6 +111,14 @@ private function prepareTemplateData(DocumentTemplate $template): array
|
||||
'role' => $l->role,
|
||||
];
|
||||
})->toArray(),
|
||||
'basic_fields' => $template->basicFields->map(function ($f) {
|
||||
return [
|
||||
'id' => $f->id,
|
||||
'label' => $f->label,
|
||||
'field_type' => $f->field_type,
|
||||
'default_value' => $f->default_value,
|
||||
];
|
||||
})->toArray(),
|
||||
'sections' => $template->sections->map(function ($s) {
|
||||
return [
|
||||
'id' => $s->id,
|
||||
|
||||
Reference in New Issue
Block a user