Skip to content

Commit

Permalink
set tables in list overwievs responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
nadjak77 committed Mar 25, 2019
1 parent fd8ce77 commit d486cee
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 40 deletions.
16 changes: 8 additions & 8 deletions administrator/components/com_menus/tmpl/menus/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@
<th scope="col" style="width:5%" class="text-center">
<?php echo Text::_('COM_MENUS_MENUS'); ?>
</th>
<th scope="col" style="width:10%" class="text-center">
<th scope="col" style="width:10%" class="text-center d-none d-md-table-cell">
<span class="icon-publish" aria-hidden="true"></span>
<span class="d-none d-md-inline"><?php echo Text::_('COM_MENUS_HEADING_PUBLISHED_ITEMS'); ?></span>
</th>
<th scope="col" style="width:10%" class="text-center">
<th scope="col" style="width:10%" class="text-center d-none d-md-table-cell">
<span class="icon-unpublish" aria-hidden="true"></span>
<span class="d-none d-md-inline"><?php echo Text::_('COM_MENUS_HEADING_UNPUBLISHED_ITEMS'); ?></span>
</th>
<th scope="col" style="width:10%" class="text-center">
<th scope="col" style="width:10%" class="text-center d-none d-md-table-cell">
<span class="icon-trash" aria-hidden="true"></span>
<span class="d-none d-md-inline"><?php echo Text::_('COM_MENUS_HEADING_TRASHED_ITEMS'); ?></span>
</th>
<th scope="col" style="width:10%" class="text-center">
<th scope="col" style="width:10%" class="text-center d-none d-md-table-cell">
<span class="icon-cube" aria-hidden="true"></span>
<span class="d-none d-md-inline"><?php echo Text::_('COM_MENUS_HEADING_LINKED_MODULES'); ?></span>
</th>
Expand Down Expand Up @@ -117,7 +117,7 @@
</a>
<?php endif; ?>
</td>
<td class="text-center btns">
<td class="text-center btns d-none d-md-table-cell">
<?php if ($canManageItems) : ?>
<a class="badge<?php echo ($item->count_published > 0) ? ' badge-success' : ' badge-secondary'; ?>" href="<?php echo Route::_('index.php?option=com_menus&view=items&menutype=' . $item->menutype . '&filter[published]=1'); ?>">
<?php echo $item->count_published; ?></a>
Expand All @@ -126,7 +126,7 @@
<?php echo $item->count_published; ?></span>
<?php endif; ?>
</td>
<td class="text-center btns">
<td class="text-center btns d-none d-md-table-cell">
<?php if ($canManageItems) : ?>
<a class="badge<?php echo ($item->count_unpublished > 0) ? ' badge-danger' : ' badge-secondary'; ?>" href="<?php echo Route::_('index.php?option=com_menus&view=items&menutype=' . $item->menutype . '&filter[published]=0'); ?>">
<?php echo $item->count_unpublished; ?></a>
Expand All @@ -135,7 +135,7 @@
<?php echo $item->count_unpublished; ?></span>
<?php endif; ?>
</td>
<td class="text-center btns">
<td class="text-center btns d-none d-md-table-cell">
<?php if ($canManageItems) : ?>
<a class="badge<?php echo ($item->count_trashed > 0) ? ' badge-danger' : ' badge-secondary'; ?>" href="<?php echo Route::_('index.php?option=com_menus&view=items&menutype=' . $item->menutype . '&filter[published]=-2'); ?>">
<?php echo $item->count_trashed; ?></a>
Expand All @@ -144,7 +144,7 @@
<?php echo $item->count_trashed; ?></span>
<?php endif; ?>
</td>
<td class="text-center">
<td class="text-center d-none d-md-table-cell">
<?php if (isset($this->modules[$item->menutype])) : ?>
<div class="dropdown">
<a href="#" class="btn btn-secondary btn-sm dropdown-toggle" data-toggle="dropdown">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
<th width="10%" class="nowrap">
<?php echo JText::_('JGLOBAL_USERNAME'); ?>
</th>
<th width="10%" class="nowrap">
<th width="10%" class="nowrap d-none d-md-table-cell">
<?php echo JHtml::_('searchtools.sort', 'COM_PRIVACY_HEADING_REQUEST_TYPE', 'a.request_type', $listDirn, $listOrder); ?>
</th>
<th width="15%" class="nowrap">
<th width="15%" class="nowrap d-none d-md-table-cell">
<?php echo JHtml::_('searchtools.sort', 'COM_PRIVACY_HEADING_REQUESTED_AT', 'a.requested_at', $listDirn, $listOrder); ?>
</th>
<th width="1%" class="nowrap hidden-phone">
<th width="1%" class="nowrap d-none d-md-table-cell">
<?php echo JHtml::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
</th>
</tr>
Expand Down Expand Up @@ -98,15 +98,15 @@
<td class="break-word">
<?php echo $item->user_id ? $this->escape($item->username) : JText::_('JGLOBAL_NONAPPLICABLE'); ?>
</td>
<td class="break-word">
<td class="break-word d-none d-md-table-cell">
<?php echo JText::_('COM_PRIVACY_HEADING_REQUEST_TYPE_TYPE_' . $item->request_type); ?>
</td>
<td class="break-word">
<td class="break-word d-none d-md-table-cell">
<span class="hasTooltip" title="<?php echo JHtml::_('date', $item->requested_at, JText::_('DATE_FORMAT_LC6')); ?>">
<?php echo JHtml::_('date.relative', new JDate($item->requested_at), null, $now); ?>
</span>
</td>
<td class="hidden-phone">
<td class=" d-none d-md-table-cell">
<?php echo (int) $item->id; ?>
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,21 @@
<th>
<?php echo JHtml::_('searchtools.sort', 'COM_USERLOGS_MESSAGE', 'a.message', $listDirn, $listOrder); ?>
</th>
<th>
<th class="d-none d-md-table-cell">
<?php echo JHtml::_('searchtools.sort', 'COM_USERLOGS_EXTENSION', 'a.extension', $listDirn, $listOrder); ?>
</th>
<th>
<th class="d-none d-md-table-cell">
<?php echo JHtml::_('searchtools.sort', 'COM_USERLOGS_DATE', 'a.log_date', $listDirn, $listOrder); ?>
</th>
<th>
<?php echo JHtml::_('searchtools.sort', 'COM_USERLOGS_NAME', 'a.user_id', $listDirn, $listOrder); ?>
</th>
<?php if ($this->ip) : ?>
<th>
<th class="d-none d-md-table-cell">
<?php echo JHtml::_('searchtools.sort', 'COM_USERLOGS_IP_ADDRESS', 'a.ip_address', $listDirn, $listOrder); ?>
</th>
<?php endif; ?>
<th>
<th class="d-none d-md-table-cell">
<?php echo JHtml::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
</th>
</thead>
Expand All @@ -92,24 +92,24 @@
<td class="center">
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
</td>
<td>
<td>
<?php echo $this->escape($item->message); ?>
</td>
<td>
<td class="d-none d-md-table-cell">
<?php echo UserlogsHelper::translateExtensionName(strtoupper(strtok($this->escape($item->extension), '.'))); ?>
</td>
<td>
<td class="d-none d-md-table-cell">
<?php echo $this->escape($item->log_date); ?>
</td>
<td>
<?php echo JUser::getInstance($item->user_id)->name; ?>
</td>
<?php if ($this->ip) : ?>
<td>
<td class="d-none d-md-table-cell">
<?php echo JText::_($this->escape($item->ip_address)); ?>
</td>
<?php endif;?>
<td>
<td class="d-none d-md-table-cell">
<?php echo (int) $item->id; ?>
</td>
</tr>
Expand Down
18 changes: 9 additions & 9 deletions administrator/components/com_users/tmpl/users/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@
<th scope="col">
<?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_NAME', 'a.name', $listDirn, $listOrder); ?>
</th>
<th scope="col" class="text-center">
<th scope="col" class="text-center d-none d-md-table-cell">
<?php echo Text::_('COM_USERS_DEBUG_PERMISSIONS'); ?>
</th>
<th scope="col" style="width:10%">
<th scope="col" style="width:10%; " class="d-none d-md-table-cell">
<?php echo HTMLHelper::_('searchtools.sort', 'JGLOBAL_USERNAME', 'a.username', $listDirn, $listOrder); ?>
</th>
<th scope="col" style="width:5%" class="text-center">
<th scope="col" style="width:5%;" class="text-center d-none d-md-table-cell">
<?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_ENABLED', 'a.block', $listDirn, $listOrder); ?>
</th>
<th scope="col" style="width:5%" class="text-center d-none d-md-table-cell">
<th scope="col" style="width:5%;" class="text-center d-none d-md-table-cell">
<?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_ACTIVATED', 'a.activation', $listDirn, $listOrder); ?>
</th>
<th scope="col" style="width:12%">
<th scope="col" style="width:12%;" class="d-none d-md-table-cell">
<?php echo Text::_('COM_USERS_HEADING_GROUPS'); ?>
</th>
<th scope="col" style="width:12%" class="d-none d-lg-table-cell">
<th scope="col" style="width:12%;" class="d-none d-lg-table-cell">
<?php echo HTMLHelper::_('searchtools.sort', 'JGLOBAL_EMAIL', 'a.email', $listDirn, $listOrder); ?>
</th>
<th scope="col" style="width:12%" class="d-none d-lg-table-cell">
Expand Down Expand Up @@ -127,16 +127,16 @@
<span class="badge badge-warning"><?php echo Text::_('COM_USERS_PASSWORD_RESET_REQUIRED'); ?></span>
<?php endif; ?>
</th>
<td class="text-center btns">
<td class="text-center btns d-none d-md-table-cell">
<a href="<?php echo Route::_('index.php?option=com_users&view=debuguser&user_id=' . (int) $item->id); ?>">
<span class="fa fa-list" aria-hidden="true"></span>
<span class="sr-only"><?php echo Text::_('COM_USERS_DEBUG_PERMISSIONS'); ?></span>
</a>
</td>
<td class="break-word">
<td class="break-word d-none d-md-table-cell">
<?php echo $this->escape($item->username); ?>
</td>
<td class="text-center">
<td class="text-center d-none d-md-table-cell">
<?php $self = $loggeduser->id == $item->id; ?>
<?php if ($canChange) : ?>
<?php echo HTMLHelper::_('jgrid.state', HTMLHelper::_('users.blockStates', $self), $item->block, $i, 'users.', !$self); ?>
Expand Down
16 changes: 8 additions & 8 deletions administrator/components/com_workflow/tmpl/workflows/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</caption>
<thead>
<tr>
<th scope="col" style="width:1%" class="text-center d-none d-md-table-cell">
<th scope="col" style="width:1%" class="text-center hidden-sm-down">
<?php echo HTMLHelper::_('searchtools.sort', '', 'w.ordering', $listDirn, $listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
</th>
<td style="width:1%" class="text-center hidden-sm-down">
Expand All @@ -84,13 +84,13 @@
<th scope="col" style="width:10%" class="text-center hidden-sm-down">
<?php echo Text::_('COM_WORKFLOW_DEFAULT'); ?>
</th>
<th scope="col" style="width:10%" class="text-center hidden-sm-down">
<th scope="col" style="width:10%" class="text-center d-none d-md-table-cell">
<?php echo Text::_('COM_WORKFLOW_COUNT_STAGES'); ?>
</th>
<th scope="col" style="width:10%" class="text-center hidden-sm-down">
<th scope="col" style="width:10%" class="text-center d-none d-md-table-cell">
<?php echo Text::_('COM_WORKFLOW_COUNT_TRANSITIONS'); ?>
</th>
<th scope="col" style="width:10%" class="text-right hidden-sm-down">
<th scope="col" style="width:10%" class="text-right d-none d-md-table-cell">
<?php echo HTMLHelper::_('searchtools.sort', 'COM_WORKFLOW_ID', 'w.id', $listDirn, $listOrder); ?>
</th>
</tr>
Expand Down Expand Up @@ -148,18 +148,18 @@
<div class="small"><?php echo $item->description; ?></div>
<?php endif; ?>
</th>
<td class="text-center hidden-sm-down">
<td class="text-center hidden-sm-down">
<?php echo HTMLHelper::_('jgrid.isdefault', $item->default, $i, 'workflows.', $canChange); ?>
</td>
<td class="text-center btns hidden-sm-down">
<td class="text-center btns d-none d-md-table-cell">
<a class="badge <?php echo ($item->count_states > 0) ? 'badge-warning' : 'badge-secondary'; ?>" title="<?php echo Text::_('COM_WORKFLOW_COUNT_STAGES', true); ?>" href="<?php echo Route::_('index.php?option=com_workflow&view=stages&workflow_id=' . (int) $item->id . '&extension=' . $extension); ?>">
<?php echo $item->count_states; ?></a>
</td>
<td class="text-center btns hidden-sm-down">
<td class="text-center btns d-none d-md-table-cell">
<a class="badge <?php echo ($item->count_transitions > 0) ? 'badge-info' : 'badge-secondary'; ?>" title="<?php echo Text::_('COM_WORKFLOW_COUNT_TRANSITIONS', true); ?>" href="<?php echo Route::_('index.php?option=com_workflow&view=transitions&workflow_id=' . (int) $item->id . '&extension=' . $extension); ?>">
<?php echo $item->count_transitions; ?></a>
</td>
<td class="text-right">
<td class="text-right d-none d-md-table-cell">
<?php echo $item->id; ?>
</td>
</tr>
Expand Down

0 comments on commit d486cee

Please sign in to comment.