Fix tables style

pull/3512/head
Angel Fernando Quiroz Campos 5 years ago
parent 14bd40a23a
commit 09be551d22
  1. 16
      main/admin/user_list.php
  2. 2
      main/exercise/TestCategory.php
  3. 2
      main/exercise/question_pool.php
  4. 2
      main/gradebook/gradebook_display_summary.php
  5. 2
      main/inc/lib/exercise.lib.php
  6. 4
      main/inc/lib/myspace.lib.php
  7. 2
      main/inc/lib/sortable_table.class.php
  8. 2
      main/template/default/agenda/planification.tpl
  9. 2
      main/template/default/agenda/student_boss_planification.tpl
  10. 2
      main/template/default/export/table_pdf.tpl
  11. 2
      main/tracking/courseLog.php
  12. 2
      plugin/dashboard/block_global_info/block_global_info.class.php
  13. 2
      plugin/redirection/admin.php
  14. 2
      plugin/sepe/view/formative-actions-list.tpl

@ -1124,7 +1124,7 @@ $table = new SortableTable(
(api_is_western_name_order() xor api_sort_by_first_name()) ? 3 : 2
);
$table->set_additional_parameters($parameters);
$table->set_header(0, '', false, 'width="18px"');
$table->set_header(0, ' ', false, 'width="18px"');
$table->set_header(1, get_lang('Photo'), false);
$table->set_header(2, get_lang('OfficialCode'));
@ -1138,10 +1138,10 @@ if (api_is_western_name_order()) {
$table->set_header(5, get_lang('LoginName'));
$table->set_header(6, get_lang('Email'));
$table->set_header(7, get_lang('Profile'));
$table->set_header(8, get_lang('Active'), true, 'width="15px"');
$table->set_header(9, get_lang('RegistrationDate'), true, 'width="90px"');
$table->set_header(10, get_lang('LatestLogin'), true, 'width="90px"');
$table->set_header(11, get_lang('Action'), false, 'width="220px"');
$table->set_header(8, get_lang('Active'), true);
$table->set_header(9, get_lang('RegistrationDate'), true);
$table->set_header(10, get_lang('LatestLogin'), true);
$table->set_header(11, get_lang('Action'), false);
$table->set_column_filter(3, 'user_filter');
$table->set_column_filter(4, 'user_filter');
@ -1149,6 +1149,7 @@ $table->set_column_filter(6, 'email_filter');
$table->set_column_filter(7, 'status_filter');
$table->set_column_filter(8, 'active_filter');
$table->set_column_filter(11, 'modify_filter');
$table->setColAttributes(10, ['class' => 'text-nowrap']);
// Hide email column if login is email, to avoid column with same data
if (api_get_setting('login_is_email') === 'true') {
@ -1226,11 +1227,6 @@ if (0 == $table->get_total_number_of_items()) {
);
$column++;
}
$table->updateRowAttributes(
$row,
$row % 2 ? 'class="row_even"' : 'class="row_odd"',
true
);
$row++;
}
}

@ -724,7 +724,7 @@ class TestCategory
}
$category_name_list = self::getListOfCategoriesNameForTest($exerciseId);
$table = new HTML_Table(['class' => 'table table-bordered', 'id' => 'category_results']);
$table = new HTML_Table(['class' => 'table table-hover table-striped table-bordered', 'id' => 'category_results']);
$table->setHeaderContents(0, 0, get_lang('Categories'));
$table->setHeaderContents(0, 1, get_lang('AbsoluteScore'));
$table->setHeaderContents(0, 2, get_lang('RelativeScore'));

@ -1054,7 +1054,7 @@ echo '<input type="hidden" name="selected_course" value="'.$selected_course.'">'
echo '<input type="hidden" name="course_id" value="'.$selected_course.'">';
echo '<input type="hidden" name="action">';
$table = new HTML_Table(['class' => 'table table-hover table-bordered data_table'], false);
$table = new HTML_Table(['class' => 'table table-hover table-striped table-bordered data_table'], false);
$row = 0;
$column = 0;
foreach ($headers as $header) {

@ -177,7 +177,7 @@ $allowSkillRelItem = api_get_configuration_value('allow_skill_rel_items');
if (count($userList) == 0) {
echo Display::return_message(get_lang('NoResultsAvailable'), 'warning');
} else {
echo '<br /><br /><div class="table-responsive"><table class=" table table-bordered data_table">';
echo '<br /><br /><div class="table-responsive"><table class="table table-hover table-striped table-bordered data_table">';
echo '<tr><th>';
echo get_lang('Student');
echo '</th>';

@ -4957,7 +4957,7 @@ EOT;
{
$data = self::exerciseResultsInRanking($exerciseId, $courseId, $sessionId);
$table = new HTML_Table(['class' => 'table table-hover table-bordered']);
$table = new HTML_Table(['class' => 'table table-hover table-striped table-bordered']);
$table->setHeaderContents(0, 0, get_lang('Position'), ['class' => 'text-right']);
$table->setHeaderContents(0, 1, get_lang('Username'));
$table->setHeaderContents(0, 2, get_lang('Score'), ['class' => 'text-right']);

@ -1063,7 +1063,7 @@ class MySpace
$tableHtml = '';
// Printing table
$total = 0;
$table = '<div class="table-responsive"><table class="table table-hover table-bordered data_table">';
$table = '<div class="table-responsive"><table class="table table-hover table-striped table-bordered data_table">';
$displayText = get_lang('Company');
$table .= "<thead><tr><th class=\"th-header\">$displayText</th><th class=\"th-header\"> ".get_lang('CountOfSubscribedUsers')." </th></tr></thead><tbody>";
@ -1190,7 +1190,7 @@ class MySpace
}
if ($csv == false) {
$table = "<div class='table-responsive'>".
"<table class='table table-hover table-bordered data_table'>".
"<table class='table table-hover table-striped table-bordered data_table'>".
"<thead>".
"<tr>".
"<th class=\"th-header\">".get_lang('Author')."</th>".

@ -142,7 +142,7 @@ class SortableTable extends HTML_Table
if (empty($attributes)) {
$attributes = [];
$attributes['class'] = 'table table-hover table-bordered data_table';
$attributes['class'] = 'table table-hover table-striped table-bordered data_table';
$attributes['id'] = $table_id;
}

@ -24,7 +24,7 @@
</nav>
{% if sessions|length > 0 %}
<div class="table-responsive" id="calendar-session-planification">
<table class="table table-bordered table-condensed">
<table class="table table-hover table-bordered table-striped table-condensed">
<thead>
<tr>
<th class="col-session">{{ 'Session'|get_lang }}</th>

@ -23,7 +23,7 @@
</nav>
{% if students|length > 0 %}
<div class="table-responsive" id="calendar-session-planification">
<table class="table table-bordered table-condensed">
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th class="col-session">

@ -7,7 +7,7 @@
<br /><br />
{% endif %}
<table align="center" width="100%" class="table table-hover table-bordered data_table">
<table align="center" width="100%" class="table table-hover table-striped table-bordered data_table">
{% if pdf_student_info %}
<tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px; ">

@ -751,7 +751,7 @@ if ($nbStudents > 0) {
$groupContent = '';
echo Display::panel($html, $titleSession);
$groupTable = new HTML_Table(['class' => 'table table-hover table-bordered data_table']);
$groupTable = new HTML_Table(['class' => 'table table-hover table-striped table-bordered data_table']);
$column = 0;
$groupTable->setHeaderContents(0, $column++, get_lang('Name'));
$groupTable->setHeaderContents(0, $column++, get_lang('TrainingTime'));

@ -100,7 +100,7 @@ class BlockGlobalInfo extends Block
$content = '<h4>'.get_lang('GlobalPlatformInformation').'</h4>';
$data_table = null;
if (!empty($global_data)) {
$data_table = '<table class="table table-bordered">';
$data_table = '<table class="table table-hover table-striped table-bordered">';
$i = 1;
foreach ($global_data as $data) {
if ($i % 2 == 0) {

@ -51,7 +51,7 @@ if ($form->validate()) {
$content = $form->returnForm();
$content .= '
<div class="table-responsive">
<table class="table table-bordered table-condensed">
<table class="table table-hover table-striped table-bordered table-condensed">
<tr>
<th>User</th>
<th>URL</th>

@ -20,7 +20,7 @@
<div class="report_section">
{% if course_action_list|length > 0 %}
<input type="hidden" id="confirmDeleteUnlinkAction" value="{{ 'confirmDeleteAction' | get_plugin_lang('SepePlugin') }}" />
<table class="table table-bordered sepe-box-center" style="width:auto">
<table class="table table-hover table-striped table-bordered sepe-box-center" style="width:auto">
{% for course in course_action_list %}
<tr>
<td class="sepe-vertical-align-middle">{{ 'Course' | get_lang }}: <strong>{{ course.title }}</strong> -> {{ 'ActionId' | get_plugin_lang('SepePlugin') | upper }}: <strong>{{ course.action_origin }} {{ course.action_code }}</strong></td>

Loading…
Cancel
Save