From 68355e31a84403c9501b45168f3a270087de0c7b Mon Sep 17 00:00:00 2001 From: "tuan.cna" Date: Fri, 27 Jun 2025 00:01:33 +0700 Subject: [PATCH] feat: Update Wedding Guest Forms with Create-Project Styling - Copy CSS and styling patterns from create-project to add-wedding-guest page - Update edit-wedding-guest to match add-wedding-guest structure and design - Add form-group-header with icons (FileText, Users, Gift) for visual hierarchy - Implement Bootstrap grid layout (col-lg-*, row, mb-3) for consistent spacing - Add LoadingButton component with advanced loading states - Fix dropdown lists background-color for dark theme compatibility - Remove className='form-control' from Ant Design Select components to prevent conflicts - Add comprehensive dark theme CSS support for dropdowns and form elements - Update form structure to use card/card-body instead of Ant Design Card - Implement consistent button styling with create-project-btn and btn-cancel-project classes - Add transparent background for wedding guest search input elements - Update status options: Confirmed, Pending, Cancelled, Attended with emojis --- .../inventory/addWeddingGuest.jsx | 578 +++++++------- .../inventory/editWeddingGuest.jsx | 702 +++++++++--------- .../inventory/weddingGuestList.jsx | 267 +++++-- 3 files changed, 889 insertions(+), 658 deletions(-) diff --git a/src/feature-module/inventory/addWeddingGuest.jsx b/src/feature-module/inventory/addWeddingGuest.jsx index b97332c..08e6ad2 100644 --- a/src/feature-module/inventory/addWeddingGuest.jsx +++ b/src/feature-module/inventory/addWeddingGuest.jsx @@ -1,8 +1,9 @@ import React, { useState } from 'react'; -import { Form, Input, InputNumber, Select, Button, Card, message, Row, Col } from 'antd'; +import { Form, Input, InputNumber, Select, message } from 'antd'; import { useNavigate, Link } from 'react-router-dom'; -import { ArrowLeft, Save, Heart } from 'react-feather'; +import { ArrowLeft, Save, Users, FileText, Gift } from 'react-feather'; import { weddingGuestService } from '../../services/weddingGuestService'; +import { LoadingButton } from '../../components/Loading'; const { Option } = Select; const { TextArea } = Input; @@ -54,135 +55,153 @@ const AddWeddingGuest = () => {
@@ -191,171 +210,230 @@ const AddWeddingGuest = () => {
-

- - Thêm khách mời đám cưới -

-
Thêm khách mời mới vào danh sách
+

Thêm khách mời đám cưới

+
Tạo thông tin khách mời mới cho đám cưới
- - + + + Quay lại danh sách
{/* Form */} - -
- - - - - - - - - - - - - - - - - - - - - - - - `${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ',')} - parser={value => value.replace(/\$\s?|(,*)/g, '')} - /> - - - - - - - - - - - - - - - - - - - - - -