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

Loading…
Cancel
Save