Update admin_view to show correct user picture - refs BT#9092

1.10.x
Daniel Barreto 10 years ago
parent a2ee3130fb
commit 2b25ffaf0a
  1. 3
      plugin/advancedsubscription/src/admin_view.php
  2. 10
      plugin/advancedsubscription/views/admin_view.tpl

@ -83,6 +83,9 @@ if (!empty($s)) {
$student['dataApprove'] = $plugin->encrypt($data);
$data['e'] = ADV_SUB_QUEUE_STATUS_ADMIN_DISAPPROVED;
$student['dataDisapprove'] = $plugin->encrypt($data);
$student['complete_name'] = $student['lastname'] . ', ' . $student['firstname'];
$student['picture'] = UserManager::get_user_picture_path_by_id($user[0], 'web', false, true);
$student['picture'] = UserManager::get_picture_user($user[0], $student['picture']['file'], 22, USER_IMAGE_SIZE_MEDIUM);
}
$tpl->assign('session', $studentList['session']);
$tpl->assign('students', $studentList['students']);

@ -62,9 +62,9 @@
{% endfor %}
</select>
<h4>{{ "SessionName" | get_lang }}:</h4>
<h4>{{ "SessionName" | get_lang }}</h4>
<h3 class="title-name-session">{{ session.name }}</h3>
<h4>{{ "Target" | get_lang }}:</h4>
<h4>{{ "Target" | get_lang }}</h4>
<p>{{ session.target }}</p>
</div>
@ -75,8 +75,8 @@
<p class="separate-badge">
<span class="badge badge-recom">{{ session.recommended_number_of_participants }}</span>
{{ "RecommendedNumberOfParticipants" | get_lang }}</p>
<h4>{{ "PublicationEndDate" | get_lang }}:</h4> <p>{{ session.publication_end_date }}</p>
<h4>{{ "Mode" | get_lang }}:</h4> <p>{{ session.mode }}</p>
<h4>{{ "PublicationEndDate" | get_lang }}</h4> <p>{{ session.publication_end_date }}</p>
<h4>{{ "Mode" | get_lang }}</h4> <p>{{ session.mode }}</p>
</div>
</div>
<div class="row">
@ -94,7 +94,7 @@
{% set row_class = "row_odd" %}
{% for student in students %}
<tr class="{{ row_class }}">
<td style="width: 118px;"><img src="img/avatar.png" class="img-circle"> </td>
<td style="width: 118px;"><img src="{{ student.picture.file }}" class="img-circle"> </td>
<td class="name">{{ student.complete_name }}</td>
<td>{{ student.created_at }}</td>
<td>{{ student.validation }}</td>

Loading…
Cancel
Save