fix(project): 새 프로젝트 생성 모달에서 시작일 필드 삭제
프로젝트 생성 폼(project.html/mytasks.html 공용)에서 시작일 입력칸을 없애고 마감일만 남겼다. JS 저장 로직도 start_date 전송/초기화를 뺐다 (프로젝트 수정 모달은 범위 밖이라 그대로 둠). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{% extends "erp_base.html" %}
|
{% extends "erp_base.html" %}
|
||||||
|
|
||||||
{% block head_extra %}
|
{% block head_extra %}
|
||||||
<link rel="stylesheet" href="/static/project.css?v=20260922o" />
|
<link rel="stylesheet" href="/static/project.css?v=20260922p" />
|
||||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
@@ -93,5 +93,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/project.js?v=20260922o" defer></script>
|
<script src="/static/project.js?v=20260922p" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "erp_base.html" %}
|
{% extends "erp_base.html" %}
|
||||||
|
|
||||||
{% block head_extra %}
|
{% block head_extra %}
|
||||||
<link rel="stylesheet" href="/static/project.css?v=20260922o" />
|
<link rel="stylesheet" href="/static/project.css?v=20260922p" />
|
||||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
@@ -52,10 +52,7 @@
|
|||||||
<h3>새 프로젝트</h3>
|
<h3>새 프로젝트</h3>
|
||||||
<label>이름<input type="text" id="pj-f-name" placeholder="프로젝트 이름" /></label>
|
<label>이름<input type="text" id="pj-f-name" placeholder="프로젝트 이름" /></label>
|
||||||
<label>설명<textarea id="pj-f-desc" rows="2"></textarea></label>
|
<label>설명<textarea id="pj-f-desc" rows="2"></textarea></label>
|
||||||
<div class="pj-form-row">
|
<label>마감일<input type="date" id="pj-f-due" /></label>
|
||||||
<label>시작일<input type="date" id="pj-f-start" /></label>
|
|
||||||
<label>마감일<input type="date" id="pj-f-due" /></label>
|
|
||||||
</div>
|
|
||||||
<label>색상
|
<label>색상
|
||||||
<span class="pj-color-palette" id="pj-f-colors"></span>
|
<span class="pj-color-palette" id="pj-f-colors"></span>
|
||||||
</label>
|
</label>
|
||||||
@@ -100,5 +97,5 @@
|
|||||||
"today": {{ today | tojson }}
|
"today": {{ today | tojson }}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="/static/project.js?v=20260922o" defer></script>
|
<script src="/static/project.js?v=20260922p" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "erp_base.html" %}
|
{% extends "erp_base.html" %}
|
||||||
|
|
||||||
{% block head_extra %}
|
{% block head_extra %}
|
||||||
<link rel="stylesheet" href="/static/project.css?v=20260922o" />
|
<link rel="stylesheet" href="/static/project.css?v=20260922p" />
|
||||||
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
|
||||||
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
||||||
<!-- 타임라인 vis-timeline — self-host -->
|
<!-- 타임라인 vis-timeline — self-host -->
|
||||||
@@ -158,10 +158,7 @@
|
|||||||
<h3>새 프로젝트</h3>
|
<h3>새 프로젝트</h3>
|
||||||
<label>이름<input type="text" id="pj-f-name" placeholder="프로젝트 이름" /></label>
|
<label>이름<input type="text" id="pj-f-name" placeholder="프로젝트 이름" /></label>
|
||||||
<label>설명<textarea id="pj-f-desc" rows="2"></textarea></label>
|
<label>설명<textarea id="pj-f-desc" rows="2"></textarea></label>
|
||||||
<div class="pj-form-row">
|
<label>마감일<input type="date" id="pj-f-due" /></label>
|
||||||
<label>시작일<input type="date" id="pj-f-start" /></label>
|
|
||||||
<label>마감일<input type="date" id="pj-f-due" /></label>
|
|
||||||
</div>
|
|
||||||
<label>색상
|
<label>색상
|
||||||
<span class="pj-color-palette" id="pj-f-colors"></span>
|
<span class="pj-color-palette" id="pj-f-colors"></span>
|
||||||
</label>
|
</label>
|
||||||
@@ -466,5 +463,5 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||||
<script src="/static/project.js?v=20260922o" defer></script>
|
<script src="/static/project.js?v=20260922p" defer></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -303,7 +303,6 @@
|
|||||||
const res = await api("POST", "/project/api/projects", {
|
const res = await api("POST", "/project/api/projects", {
|
||||||
name: name,
|
name: name,
|
||||||
description: el("pj-f-desc").value.trim(),
|
description: el("pj-f-desc").value.trim(),
|
||||||
start_date: el("pj-f-start").value || null,
|
|
||||||
due_date: el("pj-f-due").value || null,
|
due_date: el("pj-f-due").value || null,
|
||||||
color: getColor(),
|
color: getColor(),
|
||||||
});
|
});
|
||||||
@@ -314,7 +313,7 @@
|
|||||||
}
|
}
|
||||||
closeModal(modal);
|
closeModal(modal);
|
||||||
el("pj-f-name").value = ""; el("pj-f-desc").value = "";
|
el("pj-f-name").value = ""; el("pj-f-desc").value = "";
|
||||||
el("pj-f-start").value = ""; el("pj-f-due").value = "";
|
el("pj-f-due").value = "";
|
||||||
if (onCreated) onCreated(res.project);
|
if (onCreated) onCreated(res.project);
|
||||||
} catch (e) { showToast("생성 실패: " + e.message, "error"); }
|
} catch (e) { showToast("생성 실패: " + e.message, "error"); }
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user