이전 설문 내용 살리기

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

View File

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