refactor: JSON Import 메뉴를 프로젝트 페이지 내 버튼으로 이동

- 사이드바에서 JSON Import 메뉴 항목 제거
- 프로젝트 목록 페이지에 JSON Import 버튼 추가
This commit is contained in:
2025-12-02 14:21:31 +09:00
parent af5ecf3c4c
commit a1dbcb7249
2 changed files with 11 additions and 13 deletions

View File

@@ -290,16 +290,6 @@ class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:
<span class="font-medium">프로젝트</span>
</a>
</li>
<li>
<a href="{{ route('pm.import') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('pm.import') ? 'bg-primary text-white hover:bg-primary' : '' }}"
style="padding-left: 2rem;">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />
</svg>
<span class="font-medium">JSON Import</span>
</a>
</li>
<li>
<a href="{{ route('daily-logs.index') }}"
class="flex items-center gap-2 pr-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('daily-logs.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"

View File

@@ -16,9 +16,17 @@
프로젝트 목록
</h1>
</div>
<a href="{{ route('pm.projects.create') }}" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg transition">
+ 프로젝트
</a>
<div class="flex gap-2">
<a href="{{ route('pm.import') }}" class="bg-gray-600 hover:bg-gray-700 text-white px-4 py-2 rounded-lg transition flex items-center gap-2">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />
</svg>
JSON Import
</a>
<a href="{{ route('pm.projects.create') }}" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg transition">
+ 프로젝트
</a>
</div>
</div>
<!-- 필터 영역 -->