Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
|
- <aside class="sidebar" id="sidebarApp">
- <div class="sidebar-logo" onclick="window.location.href='/admin/dashboard.html'" style="cursor:pointer;">
- <img src="/static/images/logo.png" alt="肠愈同行">
- <span class="sidebar-title">肠愈同行患者关爱</span>
- </div>
- <nav class="sidebar-menu">
- {# 控制台 #}
- <div class="menu-group">
- <a class="menu-item {% if currentPage == 'dashboard' %}active{% endif %}" href="/admin/dashboard.html">
- <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" fill="currentColor"/><path d="M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" fill="currentColor"/></svg></span>
- <span>控制台</span>
- </a>
- </div>
-
- {# 患者管理 #}
- {% if isSuperAdmin or (userPermissions and 'patient' in userPermissions) %}
- <div class="menu-group">
- <a class="menu-item {% if currentPage == 'patient' %}active{% endif %}" href="/admin/patient.html">
- <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M784 352H240c-17.7 0-32 14.3-32 32v480c0 17.7 14.3 32 32 32h544c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32zM512 704c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z" fill="currentColor"/><path d="M512 64C335.3 64 192 207.3 192 384h64c0-141.2 114.8-256 256-256s256 114.8 256 256h64c0-176.7-143.3-320-320-320z" fill="currentColor"/></svg></span>
- <span>患者管理</span>
- </a>
- </div>
- {% endif %}
-
- {# 内容管理 #}
- {% if isSuperAdmin or (userPermissions and 'content' in userPermissions) %}
- <div class="menu-group">
- <a class="menu-item {% if currentPage == 'content' %}active{% endif %}" href="/admin/content.html">
- <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V136h560v752z" fill="currentColor"/><path d="M320 304h384c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H320c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm0 192h384c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H320c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm0 192h256c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H320c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16z" fill="currentColor"/></svg></span>
- <span>内容管理</span>
- </a>
- </div>
- {% endif %}
-
- {# 系统设置 #}
- {% set hasSysPerm = isSuperAdmin or (userPermissions and ('setting:system:user' in userPermissions or 'setting:system:role' in userPermissions or 'setting:system:log' in userPermissions or 'setting:system:sms' in userPermissions)) %}
- {% if hasSysPerm %}
- <div class="menu-group">
- <div class="menu-group-title">系统管理</div>
- {% if isSuperAdmin or (userPermissions and 'setting:system:user' in userPermissions) %}
- <a class="menu-item {% if currentPage == 'sys-user' %}active{% endif %}" href="/admin/system/user.html">
- <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 4.4-77.2 33.4-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9c54.4 54.8 83.4 127.1 87.8 204.3.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" fill="currentColor"/></svg></span>
- <span>用户管理</span>
- </a>
- {% endif %}
- {% if isSuperAdmin or (userPermissions and 'setting:system:role' in userPermissions) %}
- <a class="menu-item {% if currentPage == 'sys-role' %}active{% endif %}" href="/admin/system/role.html">
- <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M832 464H192c-17.7 0-32 14.3-32 32v352c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 344H232V536h560v272z" fill="currentColor"/><path d="M512 624c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64z" fill="currentColor"/><path d="M736 464V288c0-123.7-100.3-224-224-224S288 164.3 288 288v176h64V288c0-88.2 71.8-160 160-160s160 71.8 160 160v176h64z" fill="currentColor"/></svg></span>
- <span>角色权限</span>
- </a>
- {% endif %}
- {% if isSuperAdmin or (userPermissions and 'setting:system:log' in userPermissions) %}
- <a class="menu-item {% if currentPage == 'sys-log' %}active{% endif %}" href="/admin/system/log.html">
- <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" fill="currentColor"/><path d="M312 544h400c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h400c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-320h400c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" fill="currentColor"/></svg></span>
- <span>操作日志</span>
- </a>
- {% endif %}
- {% if isSuperAdmin or (userPermissions and 'setting:system:sms' in userPermissions) %}
- <a class="menu-item {% if currentPage == 'sys-sms' %}active{% endif %}" href="/admin/system/sms.html">
- <span class="menu-icon"><svg viewBox="0 0 1024 1024" width="18" height="18"><path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" fill="currentColor"/><path d="M460 560h104c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H460c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" fill="currentColor"/><path d="M348 416h328c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H348c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 288h328c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H348c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" fill="currentColor"/></svg></span>
- <span>短信记录</span>
- </a>
- {% endif %}
- </div>
- {% endif %}
- </nav>
- </aside>
|