Prechádzať zdrojové kódy

Fix studentfollowup plugin UI see BT#12723

Julio Montoya 5 rokov pred
rodič
commit
f91db74424

+ 3 - 0
plugin/studentfollowup/lang/dutch.php

@@ -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';

+ 2 - 3
plugin/studentfollowup/my_students.php

@@ -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();

+ 3 - 1
plugin/studentfollowup/view/post.html.twig

@@ -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>