Merge pull request #3375 from juan-cortizas-ponte/1.11.x.add_info_time_prerequisite_accordion_lesson_list

Learnpath: add 'Time spent/Time required' field on accordion lessons list
pull/3376/head
Yannick Warnier 5 years ago committed by GitHub
commit 2294067e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 58
      main/template/default/learnpath/list.tpl

@ -221,11 +221,17 @@
<th>{{ "PublicationDate"|get_lang }}</th>
<th>{{ "ExpirationDate"|get_lang }}</th>
<th>{{ "Progress"|get_lang }}</th>
{% if allow_min_time %}
<th>{{ "TimeSpentTimeRequired"|get_lang }}</th>
{% endif %}
<th>{{ "AuthoringOptions"|get_lang }}</th>
{% else %}
{% if not is_invitee %}
<th>{{ "Progress"|get_lang }}</th>
{% endif %}
{% if allow_min_time %}
<th>{{ "TimeSpentTimeRequired"|get_lang }}</th>
{% endif %}
<th>{{ "Actions"|get_lang }}</th>
{% endif %}
@ -254,12 +260,26 @@
<td>
{{ row.dsp_progress }}
</td>
{% if allow_min_time %}
<td>
{% if row.info_time_prerequisite %}
{{ row.info_time_prerequisite }}
{% endif %}
</td>
{% endif %}
{% else %}
{% if not is_invitee %}
<td>
{{ row.dsp_progress }}
</td>
{% endif %}
{% if allow_min_time %}
<td>
{% if row.info_time_prerequisite %}
{{ row.info_time_prerequisite }}
{% endif %}
</td>
{% endif %}
{% endif %}
<td>
@ -294,7 +314,7 @@
{% for row in lp_data.lp_list %}
<div class="lp-item">
<div class="row">
<div class="col-md-8">
<div class="col-md-6">
<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>
<a href="{{ row.url_start }}">
{{ row.title }}
@ -305,6 +325,13 @@
<div class="col-md-3">
{{ row.dsp_progress }}
</div>
{% if allow_min_time %}
<div class="col-md-2">
{% if row.info_time_prerequisite %}
{{ row.info_time_prerequisite }}
{% endif %}
</div>
{% endif %}
<div class="col-md-1">
{{ row.action_pdf }}
</div>
@ -420,11 +447,17 @@
<th>{{ "PublicationDate"|get_lang }}</th>
<th>{{ "ExpirationDate"|get_lang }}</th>
<th>{{ "Progress"|get_lang }}</th>
{% if allow_min_time %}
<th>{{ "TimeSpentTimeRequired"|get_lang }}</th>
{% endif %}
<th>{{ "AuthoringOptions"|get_lang }}</th>
{% else %}
{% if not is_invitee %}
<th>{{ "Progress"|get_lang }}</th>
{% endif %}
{% if allow_min_time %}
<th>{{ "TimeSpentTimeRequired"|get_lang }}</th>
{% endif %}
<th>{{ "Actions"|get_lang }}</th>
{% endif %}
@ -453,12 +486,26 @@
<td>
{{ row.dsp_progress }}
</td>
{% if allow_min_time %}
<td>
{% if row.info_time_prerequisite %}
{{ row.info_time_prerequisite }}
{% endif %}
</td>
{% endif %}
{% else %}
{% if not is_invitee %}
<td>
{{ row.dsp_progress }}
</td>
{% endif %}
{% if allow_min_time %}
<td>
{% if row.info_time_prerequisite %}
{{ row.info_time_prerequisite }}
{% endif %}
</td>
{% endif %}
{% endif %}
<td>
{{ row.action_build }}
@ -489,7 +536,7 @@
{% for row in lp_data.lp_list %}
<div class="lp-item">
<div class="row">
<div class="col-md-8">
<div class="col-md-6">
<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>
<a href="{{ row.url_start }}">
{{ row.title }}
@ -500,6 +547,13 @@
<div class="col-md-3">
{{ row.dsp_progress }}
</div>
{% if allow_min_time %}
<div class="col-md-2">
{% if row.info_time_prerequisite %}
{{ row.info_time_prerequisite }}
{% endif %}
</div>
{% endif %}
<div class="col-md-1">
{{ row.action_pdf }}
</div>

Loading…
Cancel
Save