Files
Pier_v1/Code/교각모델링앱/web/templates/index.html
T
ahnyongjooandClaude Sonnet 5.5 964a841de1 chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환
- Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용
- pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관)
- worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md)
- D:\Rhino-MCP 경로 참조를 새 위치로 치환

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 11:20:18 +09:00

49 lines
3.2 KiB
HTML

{% extends "base.html" %}
{% block body %}
<h1>교각 목록</h1>
<table>
<tr><th>교각</th><th>형식</th><th>만든 날</th><th>템플릿</th><th>삭제</th></tr>
{% for p in piers %}
<tr><td><a href="{{ url_for('pier', name=p.name) }}">{{ p.name }}</a></td><td>{{ p.info.type }}</td>
<td>{{ p.info.created }}</td><td>{{ p.info.template or '-' }}</td>
<td><form method="post" action="{{ url_for('pier_delete', name=p.name) }}" style="margin:0"
onsubmit="return confirm('교각 \'{{ p.name }}\'을(를) 삭제합니다. 도면·입력·결과가 모두 휴지통(data/_휴지통)으로 옮겨집니다. 계속할까요?');">
<input type="text" name="confirm_name" placeholder="교각 이름 입력" size="12" required>
<button>삭제</button></form></td></tr>
{% endfor %}
</table>
<p class="muted">삭제하려면 해당 줄의 칸에 교각 이름을 똑같이 입력하고 [삭제]를 누르세요. 삭제한 교각은 data/_휴지통 폴더로 옮겨지며, 폴더를 다시 옮기면 복구됩니다. 게이트 실행 중인 교각은 삭제할 수 없습니다.</p>
<h2>도면으로 템플릿 추천</h2>
<form method="post" action="{{ url_for('recommend_upload') }}" enctype="multipart/form-data">
교각 도면(DWG, 여러 장) <input type="file" name="dwg" accept=".dwg" multiple required>
<button>도면 읽고 추천 받기</button>
</form>
<p class="muted">도면을 먼저 올리면 가장 비슷한 템플릿을 순위로 보여 줍니다. 추천은 제안이며, 아래 6문항을 사람이 확인한 뒤 교각을 만듭니다. 도면을 올리지 않고 만들려면 아래 '새 교각'을 쓰세요.</p>
<h2>새 교각</h2>
<form method="post" action="{{ url_for('pier_new') }}">
이름 <input type="text" name="name" required>
형식 <select name="type">{% for t in types %}<option>{{ t }}</option>{% endfor %}</select>
템플릿 <select name="template">
{% if templates %}<optgroup label="보호 템플릿">{% for t in templates %}<option value="{{ tpl }}{{ t.name }}">{{ t.name }}</option>{% endfor %}</optgroup>{% endif %}
<optgroup label="기존 교각 복사">{% for p in piers %}<option value="{{ p.name }}">{{ p.name }}</option>{% endfor %}</optgroup>
</select>
<button>만들기</button>
</form>
<p class="muted">1차 대상은 T형 교각뿐입니다. 다른 형식은 만들 수 없습니다.
템플릿의 매개변수·기대값이 복사되므로, 새 도면 값으로 모든 묶음을 확인·수정한 뒤 확정해야 게이트를 실행할 수 있습니다.</p>
{% if templates %}
<h2>보호 템플릿</h2>
<table>
<tr><th>템플릿</th><th>형식 설명</th><th>모델링 게이트</th><th>원본 교각</th><th>저장일</th></tr>
{% for t in templates %}
<tr><td>{{ t.name }}</td><td>{{ t.desc }}</td><td>{{ t.scope | join(', ') }}</td><td>{{ t.source }}</td><td>{{ t.created }}</td></tr>
{% endfor %}
</table>
<p class="muted">보호 템플릿은 data/_템플릿 폴더에 고정 사본으로 저장되어, 원본 교각을 고치거나 삭제해도 바뀌지 않습니다.
앱 화면에서는 고칠 수 없습니다. 형식이 같은 교각이면 보호 템플릿에서 시작하는 것을 권장합니다.</p>
{% endif %}
{% endblock %}