Fix studentfollowup plugin UI see BT#12723

pull/2926/head
Julio Montoya 7 years ago
parent 64fca64e70
commit f91db74424
  1. 3
      plugin/studentfollowup/lang/dutch.php
  2. 5
      plugin/studentfollowup/my_students.php
  3. 4
      plugin/studentfollowup/view/post.html.twig

@ -5,3 +5,6 @@ $strings['plugin_comment'] = "Care system (Zorgdossier) [CS]
Career follow system (Structuurschema) [CFS]
Competence based evaluation system (Competentie evaluatie systeem) [CBES]";
$strings['tool_enable'] = 'Enable plugin';
$strings['CareDetailView'] = 'Mijn begeleidingen';
$strings['Private'] = 'Niet gedeeld met lesgevers';
$strings['Public'] = 'Gedeeld met lesgevers';

@ -16,6 +16,7 @@ $keyword = isset($_GET['keyword']) ? $_GET['keyword'] : '';
$totalItems = 0;
$items = [];
$showPrivate = false;
$pageSize = StudentFollowUpPlugin::getPageSize();
$firstResults = $pageSize * ($currentPage - 1);
@ -106,7 +107,7 @@ $form->addText(
get_lang('Search'),
false,
[
'aria-label' => get_lang("SearchUsers"),
'aria-label' => get_lang('SearchUsers'),
]
);
$form->addButtonSearch(get_lang('Search'));
@ -121,7 +122,5 @@ $tpl->assign('my_students_url', $url);
$tpl->assign('pagination', $pagination);
$tpl->assign('care_title', $plugin->get_lang('CareDetailView'));
$content = $tpl->fetch('/'.$plugin->get_name().'/view/my_students.html.twig');
// Assign into content
$tpl->assign('content', $content);
// Display
$tpl->display_one_col_template();

@ -52,7 +52,9 @@
{% endif %}
{% if post.private %}
<p><span class="label label-warning">Private</span></p>
<p><span class="label label-warning">{{ 'Private'|get_plugin_lang('StudentFollowUp') }}</span></p>
{% else %}
<p><span class="label label-warning">{{ 'Public'|get_plugin_lang('StudentFollowUp') }}</span></p>
{% endif %}
</div>
</div>

Loading…
Cancel
Save