이전 설문 내용 살리기

This commit is contained in:
peregr1nus
2025-12-11 11:12:20 +09:00
parent 4246d866cf
commit c9f5681348
13 changed files with 167 additions and 85 deletions

55
.gitignore vendored Normal file
View File

@@ -0,0 +1,55 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
venv/
ENV/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# Flask
instance/
.webassets-cache
# Environment variables
.env
.venv
# Google Drive API
credentials.json
token.json
# Output files
output/
*.docx
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db

13
app.py
View File

@@ -84,9 +84,11 @@ def step1():
data = request.get_json() data = request.get_json()
session['basic_info'] = data session['basic_info'] = data
return jsonify({'success': True, 'next_step': '/step2'}) return jsonify({'success': True, 'next_step': '/step2'})
basic_info = session.get('basic_info', {})
return render_template('step1.html', return render_template('step1.html',
districts=app.config['DISTRICTS'], districts=app.config['DISTRICTS'],
cults=app.config['CULTS']) cults=app.config['CULTS'],
basic_info=basic_info)
@app.route('/step2', methods=['GET', 'POST']) @app.route('/step2', methods=['GET', 'POST'])
@require_auth @require_auth
@@ -96,7 +98,8 @@ def step2():
data = request.get_json() data = request.get_json()
session['methodist_doctrine'] = data session['methodist_doctrine'] = data
return jsonify({'success': True, 'next_step': '/step3'}) return jsonify({'success': True, 'next_step': '/step3'})
return render_template('step2.html') methodist_doctrine = session.get('methodist_doctrine', {})
return render_template('step2.html', methodist_doctrine=methodist_doctrine)
@app.route('/step3', methods=['GET', 'POST']) @app.route('/step3', methods=['GET', 'POST'])
@require_auth @require_auth
@@ -116,7 +119,8 @@ def step3():
return jsonify({'success': True, 'next_step': '/step5'}) return jsonify({'success': True, 'next_step': '/step5'})
return jsonify({'success': True, 'next_step': '/step4'}) return jsonify({'success': True, 'next_step': '/step4'})
return render_template('step3.html') general_cult_doctrine = session.get('general_cult_doctrine', {})
return render_template('step3.html', general_cult_doctrine=general_cult_doctrine)
@app.route('/step4', methods=['GET', 'POST']) @app.route('/step4', methods=['GET', 'POST'])
@require_auth @require_auth
@@ -138,7 +142,8 @@ def step4():
if not questions: if not questions:
return redirect(url_for('step5')) return redirect(url_for('step5'))
return render_template('step4.html', cult_name=cult_name, questions=questions) specific_cult_doctrine = session.get('specific_cult_doctrine', {})
return render_template('step4.html', cult_name=cult_name, questions=questions, specific_cult_doctrine=specific_cult_doctrine)
@app.route('/step5', methods=['GET', 'POST']) @app.route('/step5', methods=['GET', 'POST'])
@require_auth @require_auth

View File

@@ -6,3 +6,6 @@ google-auth-oauthlib==1.1.0
python-dotenv==1.0.0 python-dotenv==1.0.0
Werkzeug==3.0.1 Werkzeug==3.0.1

View File

@@ -25,3 +25,6 @@ function hideLoading() {
} }
} }

View File

@@ -27,3 +27,6 @@
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -15,3 +15,6 @@
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -19,7 +19,7 @@
<form id="step1Form" class="form-container"> <form id="step1Form" class="form-container">
<div class="form-group"> <div class="form-group">
<label for="name">이름 *</label> <label for="name">이름 *</label>
<input type="text" id="name" name="name" required> <input type="text" id="name" name="name" value="{{ basic_info.get('name', '') }}" required>
</div> </div>
<div class="form-group"> <div class="form-group">
@@ -27,7 +27,7 @@
<select id="district" name="district" required> <select id="district" name="district" required>
<option value="">선택하세요</option> <option value="">선택하세요</option>
{% for district in districts %} {% for district in districts %}
<option value="{{ district }}">{{ district }}</option> <option value="{{ district }}" {% if basic_info.get('district') == district %}selected{% endif %}>{{ district }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
@@ -37,7 +37,7 @@
<select id="cult" name="cult" required> <select id="cult" name="cult" required>
<option value="">선택하세요</option> <option value="">선택하세요</option>
{% for cult in cults %} {% for cult in cults %}
<option value="{{ cult }}">{{ cult }}</option> <option value="{{ cult }}" {% if basic_info.get('cult') == cult %}selected{% endif %}>{{ cult }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>

View File

@@ -21,9 +21,9 @@
<div class="form-group"> <div class="form-group">
<label>1. 우주 만물을 창조하시고 섭리하시며 주관하시는 거룩하시고 자비하시며 오직 한 분이신 아버지 하나님을 믿습니까?</label> <label>1. 우주 만물을 창조하시고 섭리하시며 주관하시는 거룩하시고 자비하시며 오직 한 분이신 아버지 하나님을 믿습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q1_father_god" value="예" required></label> <label><input type="radio" name="q1_father_god" value="예" {% if methodist_doctrine.get('q1_father_god') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q1_father_god" value="아니오"> 아니오</label> <label><input type="radio" name="q1_father_god" value="아니오" {% if methodist_doctrine.get('q1_father_god') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q1_father_god" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q1_father_god" value="모르겠습니다" {% if methodist_doctrine.get('q1_father_god') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -32,9 +32,9 @@
<div class="form-group"> <div class="form-group">
<label>2. 말씀이 육신이 되어 우리 가운데 오셔서 하나님의 나라를 선포하시고 십자가에 달려 죽으셨다가 부활승천 하심으로 대속자가 되시고 구세주가 되시는 예수 그리스도를 믿습니까?</label> <label>2. 말씀이 육신이 되어 우리 가운데 오셔서 하나님의 나라를 선포하시고 십자가에 달려 죽으셨다가 부활승천 하심으로 대속자가 되시고 구세주가 되시는 예수 그리스도를 믿습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q2_jesus_christ" value="예" required></label> <label><input type="radio" name="q2_jesus_christ" value="예" {% if methodist_doctrine.get('q2_jesus_christ') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q2_jesus_christ" value="아니오"> 아니오</label> <label><input type="radio" name="q2_jesus_christ" value="아니오" {% if methodist_doctrine.get('q2_jesus_christ') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q2_jesus_christ" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q2_jesus_christ" value="모르겠습니다" {% if methodist_doctrine.get('q2_jesus_christ') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -43,9 +43,9 @@
<div class="form-group"> <div class="form-group">
<label>3. 우리와 함께 계셔서 우리를 거듭나게 하시고 거룩하게 하시며 완전하게 하시며 위안과 힘이 되시는 성령을 믿습니까?</label> <label>3. 우리와 함께 계셔서 우리를 거듭나게 하시고 거룩하게 하시며 완전하게 하시며 위안과 힘이 되시는 성령을 믿습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q3_holy_spirit" value="예" required></label> <label><input type="radio" name="q3_holy_spirit" value="예" {% if methodist_doctrine.get('q3_holy_spirit') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q3_holy_spirit" value="아니오"> 아니오</label> <label><input type="radio" name="q3_holy_spirit" value="아니오" {% if methodist_doctrine.get('q3_holy_spirit') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q3_holy_spirit" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q3_holy_spirit" value="모르겠습니다" {% if methodist_doctrine.get('q3_holy_spirit') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -54,9 +54,9 @@
<div class="form-group"> <div class="form-group">
<label>4. 성령의 감동으로 기록된 하나님의 말씀인 성경이 구원에 이르는 도리와 신앙생활에 충분한 표준이 됨을 믿습니까?</label> <label>4. 성령의 감동으로 기록된 하나님의 말씀인 성경이 구원에 이르는 도리와 신앙생활에 충분한 표준이 됨을 믿습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q4_bible" value="예" required></label> <label><input type="radio" name="q4_bible" value="예" {% if methodist_doctrine.get('q4_bible') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q4_bible" value="아니오"> 아니오</label> <label><input type="radio" name="q4_bible" value="아니오" {% if methodist_doctrine.get('q4_bible') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q4_bible" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q4_bible" value="모르겠습니다" {% if methodist_doctrine.get('q4_bible') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -65,9 +65,9 @@
<div class="form-group"> <div class="form-group">
<label>5. 하나님의 은혜로 믿음을 통해 죄사함을 받아 거룩해지며 하나님의 구원의 역사에 동참하도록 부름받음을 믿습니까?</label> <label>5. 하나님의 은혜로 믿음을 통해 죄사함을 받아 거룩해지며 하나님의 구원의 역사에 동참하도록 부름받음을 믿습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q5_salvation" value="예" required></label> <label><input type="radio" name="q5_salvation" value="예" {% if methodist_doctrine.get('q5_salvation') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q5_salvation" value="아니오"> 아니오</label> <label><input type="radio" name="q5_salvation" value="아니오" {% if methodist_doctrine.get('q5_salvation') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q5_salvation" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q5_salvation" value="모르겠습니다" {% if methodist_doctrine.get('q5_salvation') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -76,9 +76,9 @@
<div class="form-group"> <div class="form-group">
<label>6. 예배와 친교, 교육과 봉사, 전도와 선교를 위해 하나가 된 그리스도의 몸인 교회를 믿습니까?</label> <label>6. 예배와 친교, 교육과 봉사, 전도와 선교를 위해 하나가 된 그리스도의 몸인 교회를 믿습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q6_church" value="예" required></label> <label><input type="radio" name="q6_church" value="예" {% if methodist_doctrine.get('q6_church') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q6_church" value="아니오"> 아니오</label> <label><input type="radio" name="q6_church" value="아니오" {% if methodist_doctrine.get('q6_church') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q6_church" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q6_church" value="모르겠습니다" {% if methodist_doctrine.get('q6_church') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -87,9 +87,9 @@
<div class="form-group"> <div class="form-group">
<label>7. 만민에게 복음을 전파함으로 하나님의 정의와 사랑을 나누고 평화의 세계를 이루는 모든 사람들이 하나님 앞에 형제됨을 믿습니까?</label> <label>7. 만민에게 복음을 전파함으로 하나님의 정의와 사랑을 나누고 평화의 세계를 이루는 모든 사람들이 하나님 앞에 형제됨을 믿습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q7_mission" value="예" required></label> <label><input type="radio" name="q7_mission" value="예" {% if methodist_doctrine.get('q7_mission') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q7_mission" value="아니오"> 아니오</label> <label><input type="radio" name="q7_mission" value="아니오" {% if methodist_doctrine.get('q7_mission') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q7_mission" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q7_mission" value="모르겠습니다" {% if methodist_doctrine.get('q7_mission') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -98,9 +98,9 @@
<div class="form-group"> <div class="form-group">
<label>8. 예수 그리스도의 재림과 심판 우리 몸의 부활과 영생 그리고 의의 최후 승리와 영원한 하나님 나라를 믿습니까?</label> <label>8. 예수 그리스도의 재림과 심판 우리 몸의 부활과 영생 그리고 의의 최후 승리와 영원한 하나님 나라를 믿습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q8_second_coming" value="예" required></label> <label><input type="radio" name="q8_second_coming" value="예" {% if methodist_doctrine.get('q8_second_coming') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q8_second_coming" value="아니오"> 아니오</label> <label><input type="radio" name="q8_second_coming" value="아니오" {% if methodist_doctrine.get('q8_second_coming') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q8_second_coming" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q8_second_coming" value="모르겠습니다" {% if methodist_doctrine.get('q8_second_coming') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -21,9 +21,9 @@
<div class="form-group"> <div class="form-group">
<label>1. 우리의 구원을 위해서 성경 이외의 가르침이 필요하다고 생각하십니까?</label> <label>1. 우리의 구원을 위해서 성경 이외의 가르침이 필요하다고 생각하십니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q1_additional_teaching" value="예" required></label> <label><input type="radio" name="q1_additional_teaching" value="예" {% if general_cult_doctrine.get('q1_additional_teaching') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q1_additional_teaching" value="아니오"> 아니오</label> <label><input type="radio" name="q1_additional_teaching" value="아니오" {% if general_cult_doctrine.get('q1_additional_teaching') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q1_additional_teaching" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q1_additional_teaching" value="모르겠습니다" {% if general_cult_doctrine.get('q1_additional_teaching') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -32,9 +32,9 @@
<div class="form-group"> <div class="form-group">
<label>2. 어떤 특별한 성경 번역본만이 진리이고 다른 번역본에는 문제가 있다고 생각하십니까?</label> <label>2. 어떤 특별한 성경 번역본만이 진리이고 다른 번역본에는 문제가 있다고 생각하십니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q2_special_bible" value="예" required></label> <label><input type="radio" name="q2_special_bible" value="예" {% if general_cult_doctrine.get('q2_special_bible') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q2_special_bible" value="아니오"> 아니오</label> <label><input type="radio" name="q2_special_bible" value="아니오" {% if general_cult_doctrine.get('q2_special_bible') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q2_special_bible" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q2_special_bible" value="모르겠습니다" {% if general_cult_doctrine.get('q2_special_bible') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -43,9 +43,9 @@
<div class="form-group"> <div class="form-group">
<label>3. 성경의 진리 가운데 그동안 숨겨져 온 부분이 있고, 그 내용을 계시 받은 특별한 사람이 있다고 믿고 있습니까?</label> <label>3. 성경의 진리 가운데 그동안 숨겨져 온 부분이 있고, 그 내용을 계시 받은 특별한 사람이 있다고 믿고 있습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q3_hidden_truth" value="예" required></label> <label><input type="radio" name="q3_hidden_truth" value="예" {% if general_cult_doctrine.get('q3_hidden_truth') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q3_hidden_truth" value="아니오"> 아니오</label> <label><input type="radio" name="q3_hidden_truth" value="아니오" {% if general_cult_doctrine.get('q3_hidden_truth') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q3_hidden_truth" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q3_hidden_truth" value="모르겠습니다" {% if general_cult_doctrine.get('q3_hidden_truth') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -54,9 +54,9 @@
<div class="form-group"> <div class="form-group">
<label>4. 성경을 해석하기 위해서 비유가 매우 중요하다고 생각하십니까? 비유를 깨닫기 위해서 별도의 성경공부가 필요하다고 생각하십니까?</label> <label>4. 성경을 해석하기 위해서 비유가 매우 중요하다고 생각하십니까? 비유를 깨닫기 위해서 별도의 성경공부가 필요하다고 생각하십니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q4_parable" value="예" required></label> <label><input type="radio" name="q4_parable" value="예" {% if general_cult_doctrine.get('q4_parable') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q4_parable" value="아니오"> 아니오</label> <label><input type="radio" name="q4_parable" value="아니오" {% if general_cult_doctrine.get('q4_parable') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q4_parable" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q4_parable" value="모르겠습니다" {% if general_cult_doctrine.get('q4_parable') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -65,9 +65,9 @@
<div class="form-group"> <div class="form-group">
<label>5. 성경의 내용들 가운데 모든 것이 서로 짝이 있습니까?</label> <label>5. 성경의 내용들 가운데 모든 것이 서로 짝이 있습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q5_pairs" value="예" required></label> <label><input type="radio" name="q5_pairs" value="예" {% if general_cult_doctrine.get('q5_pairs') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q5_pairs" value="아니오"> 아니오</label> <label><input type="radio" name="q5_pairs" value="아니오" {% if general_cult_doctrine.get('q5_pairs') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q5_pairs" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q5_pairs" value="모르겠습니다" {% if general_cult_doctrine.get('q5_pairs') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -76,9 +76,9 @@
<div class="form-group"> <div class="form-group">
<label>6. 구세주 되시는 예수님은 모든 인류의 구원을 위해서 죽으셨는데 아직도 특별한 사람을 대리자로 세워서 구원사역을 이루실 필요가 있습니까?</label> <label>6. 구세주 되시는 예수님은 모든 인류의 구원을 위해서 죽으셨는데 아직도 특별한 사람을 대리자로 세워서 구원사역을 이루실 필요가 있습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q6_mediator" value="예" required></label> <label><input type="radio" name="q6_mediator" value="예" {% if general_cult_doctrine.get('q6_mediator') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q6_mediator" value="아니오"> 아니오</label> <label><input type="radio" name="q6_mediator" value="아니오" {% if general_cult_doctrine.get('q6_mediator') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q6_mediator" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q6_mediator" value="모르겠습니다" {% if general_cult_doctrine.get('q6_mediator') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -94,9 +94,9 @@
<div class="form-group"> <div class="form-group">
<label>8. 우리는 구원 받았을 때 회개했습니다. 그리고 이후에 다시 회개가 필요합니까?</label> <label>8. 우리는 구원 받았을 때 회개했습니다. 그리고 이후에 다시 회개가 필요합니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q8_repentance" value="예" required></label> <label><input type="radio" name="q8_repentance" value="예" {% if general_cult_doctrine.get('q8_repentance') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q8_repentance" value="아니오"> 아니오</label> <label><input type="radio" name="q8_repentance" value="아니오" {% if general_cult_doctrine.get('q8_repentance') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q8_repentance" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q8_repentance" value="모르겠습니다" {% if general_cult_doctrine.get('q8_repentance') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -105,9 +105,9 @@
<div class="form-group"> <div class="form-group">
<label>9. 우리가 주일을 성수하는 것은 성경적입니까?</label> <label>9. 우리가 주일을 성수하는 것은 성경적입니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q9_sunday" value="예" required></label> <label><input type="radio" name="q9_sunday" value="예" {% if general_cult_doctrine.get('q9_sunday') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q9_sunday" value="아니오"> 아니오</label> <label><input type="radio" name="q9_sunday" value="아니오" {% if general_cult_doctrine.get('q9_sunday') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q9_sunday" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q9_sunday" value="모르겠습니다" {% if general_cult_doctrine.get('q9_sunday') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -116,9 +116,9 @@
<div class="form-group"> <div class="form-group">
<label>10. 안식일을 지키는 것이 구원의 조건입니까?</label> <label>10. 안식일을 지키는 것이 구원의 조건입니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q10_sabbath" value="예" required></label> <label><input type="radio" name="q10_sabbath" value="예" {% if general_cult_doctrine.get('q10_sabbath') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q10_sabbath" value="아니오"> 아니오</label> <label><input type="radio" name="q10_sabbath" value="아니오" {% if general_cult_doctrine.get('q10_sabbath') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q10_sabbath" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q10_sabbath" value="모르겠습니다" {% if general_cult_doctrine.get('q10_sabbath') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -127,9 +127,9 @@
<div class="form-group"> <div class="form-group">
<label>11. 성탄절은 예수님이 탄생한 날입니다. 12월 25일에 기념해도 되는 겁니까?</label> <label>11. 성탄절은 예수님이 탄생한 날입니다. 12월 25일에 기념해도 되는 겁니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q11_christmas" value="예" required></label> <label><input type="radio" name="q11_christmas" value="예" {% if general_cult_doctrine.get('q11_christmas') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q11_christmas" value="아니오"> 아니오</label> <label><input type="radio" name="q11_christmas" value="아니오" {% if general_cult_doctrine.get('q11_christmas') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q11_christmas" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q11_christmas" value="모르겠습니다" {% if general_cult_doctrine.get('q11_christmas') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -138,9 +138,9 @@
<div class="form-group"> <div class="form-group">
<label>12. 예수 그리스도의 재림의 때가 구체적으로 언제인지 정해져 있다고 믿으십니까?</label> <label>12. 예수 그리스도의 재림의 때가 구체적으로 언제인지 정해져 있다고 믿으십니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q12_second_coming_date" value="예" required></label> <label><input type="radio" name="q12_second_coming_date" value="예" {% if general_cult_doctrine.get('q12_second_coming_date') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q12_second_coming_date" value="아니오"> 아니오</label> <label><input type="radio" name="q12_second_coming_date" value="아니오" {% if general_cult_doctrine.get('q12_second_coming_date') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q12_second_coming_date" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q12_second_coming_date" value="모르겠습니다" {% if general_cult_doctrine.get('q12_second_coming_date') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -149,9 +149,9 @@
<div class="form-group"> <div class="form-group">
<label>13. 성경에서 말하는 동방은 한국을 말하는 것이 맞습니까?</label> <label>13. 성경에서 말하는 동방은 한국을 말하는 것이 맞습니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q13_east" value="예" required></label> <label><input type="radio" name="q13_east" value="예" {% if general_cult_doctrine.get('q13_east') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q13_east" value="아니오"> 아니오</label> <label><input type="radio" name="q13_east" value="아니오" {% if general_cult_doctrine.get('q13_east') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q13_east" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q13_east" value="모르겠습니다" {% if general_cult_doctrine.get('q13_east') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -160,9 +160,9 @@
<div class="form-group"> <div class="form-group">
<label>14. 당신의 종교적 신념을 지키는 것이 가정을 지키는 것보다 더 중요합니까?</label> <label>14. 당신의 종교적 신념을 지키는 것이 가정을 지키는 것보다 더 중요합니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q14_family" value="예" required></label> <label><input type="radio" name="q14_family" value="예" {% if general_cult_doctrine.get('q14_family') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q14_family" value="아니오"> 아니오</label> <label><input type="radio" name="q14_family" value="아니오" {% if general_cult_doctrine.get('q14_family') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q14_family" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q14_family" value="모르겠습니다" {% if general_cult_doctrine.get('q14_family') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -171,9 +171,9 @@
<div class="form-group"> <div class="form-group">
<label>15. 당신이 믿는 바를 전하고 사명을 감당하기 위해서 모략을 사용하는 것이 바람직합니까?</label> <label>15. 당신이 믿는 바를 전하고 사명을 감당하기 위해서 모략을 사용하는 것이 바람직합니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q15_deception" value="예" required></label> <label><input type="radio" name="q15_deception" value="예" {% if general_cult_doctrine.get('q15_deception') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q15_deception" value="아니오"> 아니오</label> <label><input type="radio" name="q15_deception" value="아니오" {% if general_cult_doctrine.get('q15_deception') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q15_deception" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q15_deception" value="모르겠습니다" {% if general_cult_doctrine.get('q15_deception') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -182,9 +182,9 @@
<div class="form-group"> <div class="form-group">
<label>16. 주일성수, 새벽기도, 십일조 등 기존의 교회제도는 율법의 산물이기에 지킬 필요가 없다고 생각하십니까?</label> <label>16. 주일성수, 새벽기도, 십일조 등 기존의 교회제도는 율법의 산물이기에 지킬 필요가 없다고 생각하십니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q16_church_system" value="예" required></label> <label><input type="radio" name="q16_church_system" value="예" {% if general_cult_doctrine.get('q16_church_system') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q16_church_system" value="아니오"> 아니오</label> <label><input type="radio" name="q16_church_system" value="아니오" {% if general_cult_doctrine.get('q16_church_system') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q16_church_system" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q16_church_system" value="모르겠습니다" {% if general_cult_doctrine.get('q16_church_system') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -193,9 +193,9 @@
<div class="form-group"> <div class="form-group">
<label>17. 사람이 질병에 걸리는 이유는 귀신의 영향 때문입니까?</label> <label>17. 사람이 질병에 걸리는 이유는 귀신의 영향 때문입니까?</label>
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q17_disease" value="예" required></label> <label><input type="radio" name="q17_disease" value="예" {% if general_cult_doctrine.get('q17_disease') == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q17_disease" value="아니오"> 아니오</label> <label><input type="radio" name="q17_disease" value="아니오" {% if general_cult_doctrine.get('q17_disease') == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q17_disease" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q17_disease" value="모르겠습니다" {% if general_cult_doctrine.get('q17_disease') == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
</div> </div>
</div> </div>
@@ -203,7 +203,7 @@
<div class="doctrine-section"> <div class="doctrine-section">
<div class="form-group"> <div class="form-group">
<label for="other_opinions">기타의견 (7번 문항 답변 포함)</label> <label for="other_opinions">기타의견 (7번 문항 답변 포함)</label>
<textarea id="other_opinions" name="other_opinions" rows="5" placeholder="7번 문항 답변 및 기타 의견을 작성해주세요. 7번 문항은 '7번: '으로 시작하여 답변해주세요."></textarea> <textarea id="other_opinions" name="other_opinions" rows="5" placeholder="7번 문항 답변 및 기타 의견을 작성해주세요. 7번 문항은 '7번: '으로 시작하여 답변해주세요.">{{ general_cult_doctrine.get('other_opinions', '') }}</textarea>
</div> </div>
</div> </div>

View File

@@ -25,10 +25,11 @@
{% if '기타의견란' in question or '기타의견' in question %} {% if '기타의견란' in question or '기타의견' in question %}
<p class="help-text">※ 이 문항은 아래 "기타의견"란에 "{{ loop.index }}번: "으로 시작하여 답변해주세요.</p> <p class="help-text">※ 이 문항은 아래 "기타의견"란에 "{{ loop.index }}번: "으로 시작하여 답변해주세요.</p>
{% else %} {% else %}
{% set q_key = 'q' ~ loop.index %}
<div class="radio-group"> <div class="radio-group">
<label><input type="radio" name="q{{ loop.index }}" value="예" required></label> <label><input type="radio" name="q{{ loop.index }}" value="예" {% if specific_cult_doctrine.get(q_key) == '' %}checked{% endif %} required></label>
<label><input type="radio" name="q{{ loop.index }}" value="아니오"> 아니오</label> <label><input type="radio" name="q{{ loop.index }}" value="아니오" {% if specific_cult_doctrine.get(q_key) == '아니오' %}checked{% endif %}> 아니오</label>
<label><input type="radio" name="q{{ loop.index }}" value="모르겠습니다"> 모르겠습니다</label> <label><input type="radio" name="q{{ loop.index }}" value="모르겠습니다" {% if specific_cult_doctrine.get(q_key) == '모르겠습니다' %}checked{% endif %}> 모르겠습니다</label>
</div> </div>
{% endif %} {% endif %}
</div> </div>
@@ -38,7 +39,7 @@
<div class="doctrine-section"> <div class="doctrine-section">
<div class="form-group"> <div class="form-group">
<label for="other_opinions">기타의견</label> <label for="other_opinions">기타의견</label>
<textarea id="other_opinions" name="other_opinions" rows="5" placeholder="기타의견란에 작성해야 하는 문항 답변 및 기타 의견을 작성해주세요. (예: 3번: ... 또는 8번: ...)"></textarea> <textarea id="other_opinions" name="other_opinions" rows="5" placeholder="기타의견란에 작성해야 하는 문항 답변 및 기타 의견을 작성해주세요. (예: 3번: ... 또는 8번: ...)">{{ specific_cult_doctrine.get('other_opinions', '') }}</textarea>
</div> </div>
</div> </div>

View File

@@ -20,7 +20,7 @@
<div class="form-group"> <div class="form-group">
<label for="testimony">간증문 *</label> <label for="testimony">간증문 *</label>
<p class="help-text">상담 소감을 자유롭게 작성해주세요.</p> <p class="help-text">상담 소감을 자유롭게 작성해주세요.</p>
<textarea id="testimony" name="content" rows="15" required placeholder="간증문을 작성해주세요..."></textarea> <textarea id="testimony" name="content" rows="15" required placeholder="간증문을 작성해주세요...">{{ testimony.get('content', '') }}</textarea>
</div> </div>
<div class="form-actions"> <div class="form-actions">
@@ -77,3 +77,6 @@ document.getElementById('step5Form').addEventListener('submit', async function(e
</script> </script>
{% endblock %} {% endblock %}

View File

@@ -1,2 +1,5 @@
# Utils package # Utils package

View File

@@ -1,3 +1,6 @@
# 이 디렉토리에 워드 템플릿 파일을 저장하세요 # 이 디렉토리에 워드 템플릿 파일을 저장하세요
# 예: 신천지_template.docx, 구원파_template.docx 등 # 예: 신천지_template.docx, 구원파_template.docx 등