Spaces:
Runtime error
Runtime error
Claude commited on
fix: 비가역적 제출 확인을 체크박스 → 텍스트 재입력으로 변경
Browse files토론 전/후 생각 제출 시 체크박스 대신 "제출" 텍스트를 직접 입력해야
버튼이 활성화되도록 변경. 수정 불가 행위에 명시적 의도 확인 추가.
https://claude.ai/code/session_016DE3uHLsVmA5Uv7gZGGaKT
- components/opinion_change.py +16 -2
components/opinion_change.py
CHANGED
|
@@ -84,7 +84,14 @@ def render_pre_opinion_form(supabase, room_name, student_name, current_topic, ac
|
|
| 84 |
max_chars=500,
|
| 85 |
placeholder="주제에 대한 나의 현재 생각, 입장, 이유를 자유롭게 써보세요.",
|
| 86 |
)
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
if st.button("✅ 생각 제출 후 토론 참여", use_container_width=True, type="primary", disabled=not confirmed):
|
| 89 |
if not pre_input.strip():
|
| 90 |
st.warning("생각을 입력해 주세요.")
|
|
@@ -149,7 +156,14 @@ def render_post_opinion_section(supabase, room_name, student_name, act_type, cur
|
|
| 149 |
placeholder="생각이 바뀌었다면 어떻게, 왜 바뀌었는지 — 바뀌지 않았다면 그 이유를 써보세요.",
|
| 150 |
label_visibility="collapsed",
|
| 151 |
)
|
| 152 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
if st.button("✅ 생각 변화 제출", use_container_width=True, type="primary", disabled=not post_confirmed):
|
| 154 |
if not post_input.strip():
|
| 155 |
st.warning("생각을 입력해 주세요.")
|
|
|
|
| 84 |
max_chars=500,
|
| 85 |
placeholder="주제에 대한 나의 현재 생각, 입장, 이유를 자유롭게 써보세요.",
|
| 86 |
)
|
| 87 |
+
st.caption('⚠️ 제출 후에는 수정이 불가능합니다. 확인하려면 아래에 **"제출"** 을 입력하세요.')
|
| 88 |
+
confirm_text = st.text_input(
|
| 89 |
+
"확인 입력",
|
| 90 |
+
placeholder='제출',
|
| 91 |
+
label_visibility="collapsed",
|
| 92 |
+
key="pre_opinion_confirm_text",
|
| 93 |
+
)
|
| 94 |
+
confirmed = confirm_text.strip() == "제출"
|
| 95 |
if st.button("✅ 생각 제출 후 토론 참여", use_container_width=True, type="primary", disabled=not confirmed):
|
| 96 |
if not pre_input.strip():
|
| 97 |
st.warning("생각을 입력해 주세요.")
|
|
|
|
| 156 |
placeholder="생각이 바뀌었다면 어떻게, 왜 바뀌었는지 — 바뀌지 않았다면 그 이유를 써보세요.",
|
| 157 |
label_visibility="collapsed",
|
| 158 |
)
|
| 159 |
+
st.caption('⚠️ 제출 후에는 수정이 불가능합니다. 확인하려면 아래에 **"제출"** 을 입력하세요.')
|
| 160 |
+
post_confirm_text = st.text_input(
|
| 161 |
+
"확인 입력",
|
| 162 |
+
placeholder='제출',
|
| 163 |
+
label_visibility="collapsed",
|
| 164 |
+
key="post_opinion_confirm_text",
|
| 165 |
+
)
|
| 166 |
+
post_confirmed = post_confirm_text.strip() == "제출"
|
| 167 |
if st.button("✅ 생각 변화 제출", use_container_width=True, type="primary", disabled=not post_confirmed):
|
| 168 |
if not post_input.strip():
|
| 169 |
st.warning("생각을 입력해 주세요.")
|