stat2025 commited on
Commit
2453745
·
verified ·
1 Parent(s): 6ae0d35

Add researcher search and supervisor dashboard

Browse files
Files changed (1) hide show
  1. index.html +87 -1
index.html CHANGED
@@ -40,11 +40,16 @@
40
  <h1>اختر اسم الباحث</h1>
41
  <p>سيتم عرض العينات والخريطة والأدوات الخاصة بالباحث المختار.</p>
42
  </div>
43
- <div class="search-shell">
 
 
 
 
44
  <svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" /><path d="m20 20-4-4" /></svg>
45
  <input id="researcherSearch" type="search" placeholder="ابحث باسم الباحث" />
46
  </div>
47
  <div id="researcherGrid" class="researcher-grid"></div>
 
48
  </div>
49
  </section>
50
 
@@ -173,6 +178,87 @@
173
  </section>
174
  </div>
175
  </section>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  </main>
177
 
178
  <aside id="selectionBar" class="selection-bar" hidden aria-live="polite">
 
40
  <h1>اختر اسم الباحث</h1>
41
  <p>سيتم عرض العينات والخريطة والأدوات الخاصة بالباحث المختار.</p>
42
  </div>
43
+ <div class="directory-tabs" role="tablist" aria-label="طريقة الوصول">
44
+ <button id="researcherModeButton" class="directory-tab active" type="button">اختيار الباحث</button>
45
+ <button id="entityModeButton" class="directory-tab" type="button">البحث عن منشأة</button>
46
+ </div>
47
+ <div class="search-shell directory-search">
48
  <svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" /><path d="m20 20-4-4" /></svg>
49
  <input id="researcherSearch" type="search" placeholder="ابحث باسم الباحث" />
50
  </div>
51
  <div id="researcherGrid" class="researcher-grid"></div>
52
+ <div id="entitySearchResults" class="entity-search-results" hidden></div>
53
  </div>
54
  </section>
55
 
 
178
  </section>
179
  </div>
180
  </section>
181
+
182
+ <section id="adminView" class="admin-view" hidden>
183
+ <header class="topbar admin-topbar">
184
+ <div class="topbar-brand">
185
+ <div class="brand-mark small" aria-hidden="true">
186
+ <svg viewBox="0 0 24 24"><path d="M4 20V8l8-4 8 4v12H4Z" /><path d="M8 20v-7h8v7" /></svg>
187
+ </div>
188
+ <div>
189
+ <p>قياس الوضع الراهن</p>
190
+ <h1>لوحة متابعة الإنتاجية</h1>
191
+ </div>
192
+ </div>
193
+ <button id="adminLogoutButton" class="icon-button topbar-icon" type="button" aria-label="تسجيل الخروج" title="تسجيل الخروج">
194
+ <svg viewBox="0 0 24 24"><path d="M10 17l5-5-5-5M15 12H3M15 4h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4" /></svg>
195
+ </button>
196
+ </header>
197
+
198
+ <div class="admin-shell">
199
+ <section class="admin-heading">
200
+ <div>
201
+ <p class="eyebrow">متابعة مباشرة</p>
202
+ <h2>الإنتاجية الميدانية</h2>
203
+ <p id="adminUpdatedAt">تتم مزامنة البيانات من سجل التوثيق في Google Drive.</p>
204
+ </div>
205
+ <button id="refreshAdminButton" class="secondary-button compact" type="button">
206
+ <svg viewBox="0 0 24 24"><path d="M20 6v5h-5M4 18v-5h5M6.1 9A7 7 0 0 1 18 6l2 5M17.9 15A7 7 0 0 1 6 18l-2-5" /></svg>
207
+ تحديث
208
+ </button>
209
+ </section>
210
+
211
+ <section id="adminStats" class="admin-stats"></section>
212
+
213
+ <section class="admin-controls">
214
+ <label class="field-group admin-search">
215
+ <span>البحث</span>
216
+ <div class="search-shell">
217
+ <svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" /><path d="m20 20-4-4" /></svg>
218
+ <input id="adminSearch" type="search" placeholder="اسم المنشأة أو الباحث أو السجل التجاري" />
219
+ </div>
220
+ </label>
221
+ <label class="field-group">
222
+ <span>الباحث</span>
223
+ <div class="select-shell">
224
+ <select id="adminResearcherFilter"><option value="">جميع الباحثين</option></select>
225
+ <svg viewBox="0 0 24 24"><path d="m7 10 5 5 5-5" /></svg>
226
+ </div>
227
+ </label>
228
+ <label class="field-group">
229
+ <span>المدينة</span>
230
+ <div class="select-shell">
231
+ <select id="adminCityFilter"><option value="">جميع المدن</option></select>
232
+ <svg viewBox="0 0 24 24"><path d="m7 10 5 5 5-5" /></svg>
233
+ </div>
234
+ </label>
235
+ <label class="field-group">
236
+ <span>التاريخ</span>
237
+ <input id="adminDateFilter" class="date-input" type="date" />
238
+ </label>
239
+ </section>
240
+
241
+ <section class="admin-grid">
242
+ <article class="admin-panel productivity-panel">
243
+ <div class="admin-panel-heading">
244
+ <div><p class="eyebrow">حسب الباحث</p><h3>الإنتاجية</h3></div>
245
+ </div>
246
+ <div id="researcherProductivity" class="productivity-list"></div>
247
+ </article>
248
+ <article class="admin-panel records-panel">
249
+ <div class="admin-panel-heading">
250
+ <div><p class="eyebrow">سجل التوثيق</p><h3>آخر العمليات</h3></div>
251
+ <span id="adminRecordsCount"></span>
252
+ </div>
253
+ <div id="adminRecords" class="admin-records"></div>
254
+ <div id="adminEmpty" class="empty-state" hidden>
255
+ <h3>لا توجد نتائج مطابقة</h3>
256
+ <p>غيّر البحث أو الفلاتر لعرض سجلات أخرى.</p>
257
+ </div>
258
+ </article>
259
+ </section>
260
+ </div>
261
+ </section>
262
  </main>
263
 
264
  <aside id="selectionBar" class="selection-bar" hidden aria-live="polite">