Skip to content

Commit

Permalink
SAK-50410 roster Make list view table responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish committed Sep 6, 2024
1 parent 9c66d92 commit b8c5561
Showing 1 changed file with 51 additions and 49 deletions.
100 changes: 51 additions & 49 deletions roster2/tool/src/handlebars/members_container_table.handlebars
Original file line number Diff line number Diff line change
@@ -1,49 +1,51 @@
<table id="roster-members-table" class="table table-striped table-bordered">
<tbody id="roster-table-head">
<tr>
<th class="roster-picture-cell">{{tr 'facet_picture'}}</th>
{{#unless hideNames}}
<th>{{tr 'facet_name'}}</th>
{{/unless}}
{{#if viewPronouns}}
<th>{{tr 'facet_pronouns'}}</th>
{{/if}}
{{#if viewUserNamePronunciation}}
<th>{{tr 'facet_user_name_pronunciation'}}</th>
{{/if}}
{{#if viewUserDisplayId}}
<th>{{tr 'facet_userId'}}</th>
{{/if}}
{{#if enrollmentsMode}}
<th>{{tr 'facet_status'}}</th>
<th>{{tr 'facet_credits'}}</th>
{{else}}
<th>{{tr 'facet_role'}}</th>
{{/if}}
{{#if showVisits}}
{{#if viewSiteVisits}}
<th>{{tr 'total_visits'}}</th>
<th>{{tr 'last_visit'}}</th>
{{/if}}
{{/if}} <!-- showVisits -->
{{#if viewGroup}}
<th>{{tr 'facet_groups'}}</th>
{{/if}}
{{#if viewEmail}}
<th>{{tr 'facet_email'}}</th>
{{/if}}
{{#if viewUserProperty}}
<th>{{tr 'facet_userProperties'}}</th>
{{/if}}
{{#if viewCandidateDetails}}
{{#if anyStudentNumberPresent}}
<th>{{tr 'facet_studentNumber'}}</th>
{{/if}}
{{#if anyAdditionalInfoPresent}}
<th>{{tr 'facet_additionalInfo'}}</th>
{{/if}}
{{/if}}
</tr>
</tbody>
<tbody id="roster-members"></tbody>
</table>
<div class="table-responsive">
<table id="roster-members-table" class="table table-striped table-bordered">
<tbody id="roster-table-head">
<tr>
<th class="roster-picture-cell">{{tr 'facet_picture'}}</th>
{{#unless hideNames}}
<th>{{tr 'facet_name'}}</th>
{{/unless}}
{{#if viewPronouns}}
<th>{{tr 'facet_pronouns'}}</th>
{{/if}}
{{#if viewUserNamePronunciation}}
<th>{{tr 'facet_user_name_pronunciation'}}</th>
{{/if}}
{{#if viewUserDisplayId}}
<th>{{tr 'facet_userId'}}</th>
{{/if}}
{{#if enrollmentsMode}}
<th>{{tr 'facet_status'}}</th>
<th>{{tr 'facet_credits'}}</th>
{{else}}
<th>{{tr 'facet_role'}}</th>
{{/if}}
{{#if showVisits}}
{{#if viewSiteVisits}}
<th>{{tr 'total_visits'}}</th>
<th>{{tr 'last_visit'}}</th>
{{/if}}
{{/if}} <!-- showVisits -->
{{#if viewGroup}}
<th>{{tr 'facet_groups'}}</th>
{{/if}}
{{#if viewEmail}}
<th>{{tr 'facet_email'}}</th>
{{/if}}
{{#if viewUserProperty}}
<th>{{tr 'facet_userProperties'}}</th>
{{/if}}
{{#if viewCandidateDetails}}
{{#if anyStudentNumberPresent}}
<th>{{tr 'facet_studentNumber'}}</th>
{{/if}}
{{#if anyAdditionalInfoPresent}}
<th>{{tr 'facet_additionalInfo'}}</th>
{{/if}}
{{/if}}
</tr>
</tbody>
<tbody id="roster-members"></tbody>
</table>
</div>

0 comments on commit b8c5561

Please sign in to comment.