Browse Source

commit 人员信息展示官职

Hai Lin 3 weeks ago
parent
commit
f1ee7ea2e4
1 changed files with 10 additions and 0 deletions
  1. 10 0
      templates/members.html

+ 10 - 0
templates/members.html

@@ -53,6 +53,7 @@
                         <th class="px-4">序号</th>
                         <th class="px-4">序号</th>
                         <th>基本信息</th>
                         <th>基本信息</th>
                         <th>世系世代</th>
                         <th>世系世代</th>
+                        <th>职业背景</th>
                         <th>分房 / 堂号</th>
                         <th>分房 / 堂号</th>
                         <th>居住地</th>
                         <th>居住地</th>
                         <th>状态</th>
                         <th>状态</th>
@@ -87,6 +88,15 @@
                             <span class="text-muted small">-</span>
                             <span class="text-muted small">-</span>
                             {% endif %}
                             {% endif %}
                         </td>
                         </td>
+                        <td>
+                            {% if member.occupation %}
+                            <div class="small" style="max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;" title="{{ member.occupation }}">
+                                {{ member.occupation[:10] }}{% if member.occupation|length > 10 %}...{% endif %}
+                            </div>
+                            {% else %}
+                            <span class="text-muted small">-</span>
+                            {% endif %}
+                        </td>
                         <td>
                         <td>
                             <div class="small">
                             <div class="small">
                                 {{ member.family_branch or member.hall_name or '-' }}
                                 {{ member.family_branch or member.hall_name or '-' }}