From cb88715ed49198b8e5085344e813eff2361f6975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Wed, 9 Oct 2024 16:59:52 +0900 Subject: [PATCH] cfmgrv4 init...2 --- app/Views/admin/login.php | 28 +++++++++++++++++++ app/Views/front/create.php | 35 ++++++++++++++++++++++++ app/Views/front/index.php | 56 ++++++++++++++++++++++++++++++++++++++ app/Views/front/login.php | 40 +++++++++++++++------------ app/Views/front/modify.php | 34 +++++++++++++++++++++++ app/Views/front/view.php | 27 ++++++++++++++++++ public/css/front/login.css | 13 ++++----- 7 files changed, 209 insertions(+), 24 deletions(-) create mode 100644 app/Views/admin/login.php create mode 100644 app/Views/front/create.php create mode 100644 app/Views/front/index.php create mode 100644 app/Views/front/modify.php create mode 100644 app/Views/front/view.php diff --git a/app/Views/admin/login.php b/app/Views/admin/login.php new file mode 100644 index 0000000..7ee44d9 --- /dev/null +++ b/app/Views/admin/login.php @@ -0,0 +1,28 @@ +extend(LAYOUTS[$viewDatas['layout']]['path']) ?> +section('content') ?> +
+
+
+ + +
+
+
+endSection() ?> \ No newline at end of file diff --git a/app/Views/front/create.php b/app/Views/front/create.php new file mode 100644 index 0000000..9ae9eff --- /dev/null +++ b/app/Views/front/create.php @@ -0,0 +1,35 @@ +extend(LAYOUTS[$viewDatas['layout']]['path']) ?> +section('content') ?> +
+ + +
+ + + + + + + + + + + + +
getFieldLabel($field, $viewDatas) ?> + "form-control"]; + if (strpos($viewDatas['field_rules'][$field], 'required') !== false) { + $extras = ["required" => "", ...$extras]; + } + ?> + getFieldForm($field, old($field), $viewDatas, $extras) ?> +
+
+ "btn btn-outline btn-primary")); ?> +
+ +
+
+ +endSection() ?> \ No newline at end of file diff --git a/app/Views/front/index.php b/app/Views/front/index.php new file mode 100644 index 0000000..9c043f5 --- /dev/null +++ b/app/Views/front/index.php @@ -0,0 +1,56 @@ +extend(LAYOUTS[$viewDatas['layout']]['path']) ?> +section('content') ?> +
include(LAYOUTS[$viewDatas['layout']]['path'] . '/top'); ?>
+
+
include(LAYOUTS[$viewDatas['layout']]['path'] . '/left_menu'); ?>
+
+ include("templates/{$viewDatas['layout']}/index_header"); ?> +
+ + +
+ include("templates/{$viewDatas['layout']}/index_content_top"); ?> + + + + + + + + + + + + + + getListRowColor($entity) ?>> + + + + + + + + + + + +
번호getListLabel($field, $viewDatas) ?>작업
+ getListButton('modify', $viewDatas) ?> + getFieldView($field, $viewDatas) ?> + getListButton('delete', $viewDatas) ?> +
+ include("templates/{$viewDatas['layout']}/index_content_batchjob"); ?> +
+
+
include("templates/common/modal_iframe"); ?>
+ + +
+ +
+
+
+ include(LAYOUTS[$viewDatas['layout']]['path'] . '/bottom'); ?> +
+endSection() ?> \ No newline at end of file diff --git a/app/Views/front/login.php b/app/Views/front/login.php index 5558665..7ee44d9 100644 --- a/app/Views/front/login.php +++ b/app/Views/front/login.php @@ -1,22 +1,28 @@ extend(LAYOUTS[$viewDatas['layout']]['path']) ?> section('content') ?> - -
- -

로그인

-
- - +
+
+
+ + +
-
- - -
-
- - "btn btn-danger"]) ?> - -
-
endSection() ?> \ No newline at end of file diff --git a/app/Views/front/modify.php b/app/Views/front/modify.php new file mode 100644 index 0000000..18f05b1 --- /dev/null +++ b/app/Views/front/modify.php @@ -0,0 +1,34 @@ +extend(LAYOUTS[$viewDatas['layout']]['path']) ?> +section('content') ?> +
+ + 'action_form', ...$viewDatas['forms']['attributes']], $viewDatas['forms']['hiddens']) ?> +
+ + + + + + + + + + + + +
getFieldLabel($field, $viewDatas) ?> + 'form-control']; + if (strpos($viewDatas['field_rules'][$field], 'required') !== false) { + $extras = ["required" => "", ...$extras]; + } + ?> + getFieldForm($field, old($field) ?? $viewDatas['entity']->$field, $viewDatas, $extras) ?> +
+
+ "btn btn-outline btn-primary"]) ?> +
+ +
+
+endSection() ?> \ No newline at end of file diff --git a/app/Views/front/view.php b/app/Views/front/view.php new file mode 100644 index 0000000..8ecee25 --- /dev/null +++ b/app/Views/front/view.php @@ -0,0 +1,27 @@ +extend(LAYOUTS[$viewDatas['layout']]['path']) ?> +section('content') ?> +
+ +
+ + + + + + + + + + + + +
getFieldLabel($field, $viewDatas) ?> + getFieldView($field, $viewDatas, $viewDatas) ?> +
+
+

작업 완료 후 아래 버튼을 클릭하면 모달이 닫힙니다.

+ +
+
+
+endSection() ?> \ No newline at end of file diff --git a/public/css/front/login.css b/public/css/front/login.css index 2001247..54a144c 100644 --- a/public/css/front/login.css +++ b/public/css/front/login.css @@ -1,11 +1,9 @@ -.login-wrapper { - display: flex; - justify-content: center; - align-items: center; - height: 100vh; -} - .login-container { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 400px; height: 400px; overflow-y: auto; @@ -14,4 +12,5 @@ flex-direction: column; justify-content: center; align-items: center; + /* border: 1px solid red; */ } \ No newline at end of file