feat:E-Sign 필드 에디터에 폰트 크기 속성 추가
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -383,6 +383,7 @@ public function configureFields(Request $request, int $id): JsonResponse
|
||||
'fields.*.height' => 'required|numeric',
|
||||
'fields.*.field_type' => 'required|in:signature,stamp,text,date,checkbox',
|
||||
'fields.*.field_label' => 'nullable|string|max:100',
|
||||
'fields.*.font_size' => 'nullable|integer|min:6|max:72',
|
||||
'fields.*.is_required' => 'nullable|boolean',
|
||||
]);
|
||||
|
||||
@@ -404,6 +405,7 @@ public function configureFields(Request $request, int $id): JsonResponse
|
||||
'height' => $field['height'],
|
||||
'field_type' => $field['field_type'],
|
||||
'field_label' => $field['field_label'] ?? null,
|
||||
'font_size' => $field['font_size'] ?? null,
|
||||
'is_required' => $field['is_required'] ?? true,
|
||||
'sort_order' => $i,
|
||||
]);
|
||||
@@ -621,6 +623,7 @@ public function storeTemplate(Request $request): JsonResponse
|
||||
'items.*.height' => 'required|numeric',
|
||||
'items.*.field_type' => 'required|in:signature,stamp,text,date,checkbox',
|
||||
'items.*.field_label' => 'nullable|string|max:100',
|
||||
'items.*.font_size' => 'nullable|integer|min:6|max:72',
|
||||
'items.*.is_required' => 'nullable|boolean',
|
||||
]);
|
||||
|
||||
@@ -680,6 +683,7 @@ public function storeTemplate(Request $request): JsonResponse
|
||||
'height' => $item['height'],
|
||||
'field_type' => $item['field_type'],
|
||||
'field_label' => $item['field_label'] ?? null,
|
||||
'font_size' => $item['font_size'] ?? null,
|
||||
'is_required' => $item['is_required'] ?? true,
|
||||
'sort_order' => $i,
|
||||
]);
|
||||
@@ -833,6 +837,7 @@ public function updateTemplateItems(Request $request, int $templateId): JsonResp
|
||||
'items.*.height' => 'required|numeric',
|
||||
'items.*.field_type' => 'required|in:signature,stamp,text,date,checkbox',
|
||||
'items.*.field_label' => 'nullable|string|max:100',
|
||||
'items.*.font_size' => 'nullable|integer|min:6|max:72',
|
||||
'items.*.is_required' => 'nullable|boolean',
|
||||
]);
|
||||
|
||||
@@ -857,6 +862,7 @@ public function updateTemplateItems(Request $request, int $templateId): JsonResp
|
||||
'height' => round($itemData['height'], 2),
|
||||
'field_type' => $itemData['field_type'],
|
||||
'field_label' => $itemData['field_label'] ?? '',
|
||||
'font_size' => $itemData['font_size'] ?? null,
|
||||
'is_required' => $itemData['is_required'] ?? true,
|
||||
'sort_order' => $i,
|
||||
]);
|
||||
@@ -922,6 +928,7 @@ public function duplicateTemplate(int $id): JsonResponse
|
||||
'height' => $item->height,
|
||||
'field_type' => $item->field_type,
|
||||
'field_label' => $item->field_label,
|
||||
'font_size' => $item->font_size,
|
||||
'is_required' => $item->is_required,
|
||||
'sort_order' => $item->sort_order,
|
||||
]);
|
||||
@@ -1001,6 +1008,7 @@ public function applyTemplate(Request $request, int $id): JsonResponse
|
||||
'height' => $item->height,
|
||||
'field_type' => $item->field_type,
|
||||
'field_label' => $item->field_label,
|
||||
'font_size' => $item->font_size,
|
||||
'is_required' => $item->is_required,
|
||||
'sort_order' => $item->sort_order,
|
||||
]);
|
||||
@@ -1065,6 +1073,7 @@ public function copyFieldsFromContract(Request $request, int $id, int $sourceId)
|
||||
'height' => $field->height,
|
||||
'field_type' => $field->field_type,
|
||||
'field_label' => $field->field_label,
|
||||
'font_size' => $field->font_size,
|
||||
'is_required' => $field->is_required,
|
||||
'sort_order' => $field->sort_order,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user