diff --git a/src/main/resources/templates/views/apps/community/mainPartnershipForm.html b/src/main/resources/templates/views/apps/community/mainPartnershipForm.html index 8c31c71..12e60f3 100644 --- a/src/main/resources/templates/views/apps/community/mainPartnershipForm.html +++ b/src/main/resources/templates/views/apps/community/mainPartnershipForm.html @@ -1,225 +1,222 @@ - + + xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout/kjbank_title_layout}"> - -
-
- - - - -
-
-
- - -
- - -
- - -
-
- - -
- - -
- - 사업의 목적, 내용, 기대 효과 등을 구체적으로 작성해 주세요 -
-
- - -
-
- - -
- -
- - - - -
-
- - - -

- 첨부파일은 8MB 이내로 등록해 주세요. -

-

- - 문서파일과 이미지 파일만 등록 가능합니다. (pdf, doc, docx, xls, xlsx, ppt, pptx, hwp, gif, jpg, png) -

-
-
- - -
- - - 취소 - - -
-
-
-
-
+
+
+ 타이틀 배경 +

사업 제휴

+
+ +
+ + +
+

사업 제휴 신청

+ 광주은행은 온라인 비즈니스 혁신을 위한 사업 제안을 환영합니다. +
+ + +
+
+ + +
+
+ 사업 제목 + 필수 +
+
+ +
+
+ + +
+
+ 사업 내용 + 필수 +
+
+ + + 0 / 4000 + +
+
+ + +
+
+ 첨부파일 +
+
+
+
+ 선택된 파일이 없습니다 + +
+ + +
+
+

+ 첨부파일은 8MB 이내로 등록해 주세요. +

+

+ + 문서파일과 이미지 파일만 등록 가능합니다. (pdf, doc, docx, xls, xlsx, ppt, pptx, hwp, gif, jpg, png) +

+
+
+
+ +
+
+ + +
+ + +
+ +
+
- - - + + - + } + // Form submission handler + btnSubmit.addEventListener('click', function (event) { + event.preventDefault(); + + const form = document.getElementById('partnershipForm'); + const bizSubject = document.getElementById('bizSubject').value.trim(); + const bizDetail = document.getElementById('bizDetail').value; + + // Validation + if (!bizSubject) { + customPopups.showAlert('사업 제목을 작성해 주세요.'); + document.getElementById('bizSubject').focus(); + return; + } + if (!bizDetail.trim()) { + customPopups.showAlert('사업 내용을 작성해 주세요.'); + document.getElementById('bizDetail').focus(); + return false; + } + + form.submit(); + }); + + // File input change handler + fileInput.addEventListener('change', function () { + const file = fileInput.files[0]; + + if (file) { + const allowedExtensions = ['.pdf', '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.hwp', '.gif', '.jpg', '.jpeg', '.png']; + const fileExt = '.' + file.name.split('.').pop().toLowerCase(); + + if (!allowedExtensions.includes(fileExt)) { + customPopups.showAlert("허용된 파일 형식이 아닙니다.\n문서파일(pdf, doc, docx, xls, xlsx, ppt, pptx, hwp)과 이미지 파일(gif, jpg, png)만 등록 가능합니다."); + fileInput.value = ''; + return; + } + + // Show file name in display + fileDisplayText.textContent = file.name; + fileDisplayText.classList.add('has-file'); + fileInputDisplay.classList.add('has-file'); + btnRemoveFile.style.display = 'flex'; + } + }); + + // File remove handler + btnRemoveFile.addEventListener('click', function (e) { + e.stopPropagation(); + fileInput.value = ''; + fileDisplayText.textContent = '선택된 파일이 없습니다'; + fileDisplayText.classList.remove('has-file'); + fileInputDisplay.classList.remove('has-file'); + btnRemoveFile.style.display = 'none'; + }); + + // Focus on subject field + document.getElementById('bizSubject').focus(); + }); + +