diff --git a/app/Cells/SearchCell.php b/app/Cells/SearchCell.php
new file mode 100644
index 0000000..1591190
--- /dev/null
+++ b/app/Cells/SearchCell.php
@@ -0,0 +1,31 @@
+ "고객명 선택"];
+ foreach ($this->getService()->getEntities() as $entity) {
+ $options[$entity->getPK()] = $entity->getTitle();
+ }
+ $template = array_key_exists('template', $params) ? $params['template'] : __FUNCTION__;
+ return view('cells/search/' . $template, [
+ 'searchCellDatas' => [
+ 'service' => $this->getService(),
+ 'options' => $options,
+ 'selected' => null,
+ ]
+ ]);
+ }
+}
diff --git a/app/Views/admin/client/detail.php b/app/Views/admin/client/detail.php
index e56b9ad..d3d28e0 100644
--- a/app/Views/admin/client/detail.php
+++ b/app/Views/admin/client/detail.php
@@ -33,6 +33,20 @@
+
+ =
+ form_label(
+ '서비스추가',
+ 'create_service',
+ [
+ "data-src" => '/admin/customer/service/create?clientinfo_uid=' . $viewDatas['entity']->getPK(),
+ "data-bs-toggle" => "modal",
+ "data-bs-target" => "#modal_action_form",
+ "class" => "btn btn-sm btn-primary form-label-sm",
+ ]
+ );
+ ?>
+
|
도코 |
치바 |
diff --git a/app/Views/cells/search/client.php b/app/Views/cells/search/client.php
new file mode 100644
index 0000000..04d8a8c
--- /dev/null
+++ b/app/Views/cells/search/client.php
@@ -0,0 +1,4 @@
+= form_dropdown('client', $searchCellDatas['options'], $searchCellDatas['selected'], [
+ 'class' => 'form-select w-auto d-inline-block select-field',
+ 'onchange' => "if(this.value) window.location.href='/admin/customer/client/detail/' + this.value;"
+]) ?>
\ No newline at end of file
diff --git a/app/Views/layouts/admin/top.php b/app/Views/layouts/admin/top.php
index 54e0a8f..d8e08c9 100644
--- a/app/Views/layouts/admin/top.php
+++ b/app/Views/layouts/admin/top.php
@@ -2,13 +2,13 @@