upgrade
This commit is contained in:
48
plugin/justification/view/add.tpl
Normal file
48
plugin/justification/view/add.tpl
Normal file
@@ -0,0 +1,48 @@
|
||||
{{ search_form }}
|
||||
<table class="table table-hover table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'CreatedAt'|get_lang }}</th>
|
||||
<th>{{ 'Status'|get_lang }}</th>
|
||||
<th>{{ 'Records'|get_plugin_lang('BBBPlugin') }}</th>
|
||||
<th>{{ 'Course'|get_lang }}</th>
|
||||
<th>{{ 'Session'|get_lang }}</th>
|
||||
<th>{{ 'Participants'|get_lang }}</th>
|
||||
<th>{{ 'Actions'|get_lang }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for meeting in meetings %}
|
||||
<tr id="meeting-{{ meeting.id }}">
|
||||
{% if meeting.visibility == 0 %}
|
||||
<td class="muted">{{ meeting.created_at }}</td>
|
||||
{% else %}
|
||||
<td>{{ meeting.created_at }}</td>
|
||||
{% endif %}
|
||||
<td>
|
||||
{% if meeting.status == 1 %}
|
||||
<span class="label label-success">{{ 'MeetingOpened'|get_plugin_lang('BBBPlugin') }}</span>
|
||||
{% else %}
|
||||
<span class="label label-info">{{ 'MeetingClosed'|get_plugin_lang('BBBPlugin') }}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if meeting.record == 1 %}
|
||||
{# Record list #}
|
||||
{{ meeting.show_links }}
|
||||
{% else %}
|
||||
{{ 'NoRecording'|get_plugin_lang('BBBPlugin') }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ meeting.course ?: '-' }}</td>
|
||||
<td>{{ meeting.session ?: '-' }}</td>
|
||||
<td>
|
||||
{{ meeting.participants ? meeting.participants|join('<br>') : '-' }}
|
||||
</td>
|
||||
<td>
|
||||
{{ meeting.action_links }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
38
plugin/justification/view/justification_user_list.tpl
Normal file
38
plugin/justification/view/justification_user_list.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
{{ form }}
|
||||
|
||||
{% if list %}
|
||||
<div class ="row">
|
||||
<div class ="col-md-12">
|
||||
<div class="page-header">
|
||||
<h2>{{ 'DocumentListForUserX'| get_plugin_lang('Justification')|format(user_info.complete_name) }}</h2>
|
||||
</div>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>{{ 'Justification'| get_plugin_lang('Justification') }}</th>
|
||||
<th>{{ 'File'| get_lang }}</th>
|
||||
<th>{{ 'Date'| get_lang('Date') }}</th>
|
||||
<th>{{ 'Actions'| get_lang }}</th>
|
||||
</tr>
|
||||
{% for item in list %}
|
||||
<tr>
|
||||
<td >{{ item.justification.name }} </td>
|
||||
<td >{{ item.file_path }} </td>
|
||||
<td >
|
||||
{{ item.date_validity }}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{_p.web_plugin }}justification/justification_by_user.php?a=edit&user_id={{ user_id }}&id={{ item.id }}"
|
||||
class="btn btn-primary">
|
||||
{{'Edit' | get_lang}}
|
||||
</a>
|
||||
<a href="{{_p.web_plugin }}justification/justification_by_user.php?a=delete&user_id={{ user_id }}&id={{ item.id }}"
|
||||
class="btn btn-danger">
|
||||
{{'Delete' | get_lang}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
33
plugin/justification/view/list.tpl
Normal file
33
plugin/justification/view/list.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
<div class ="row">
|
||||
<div class ="col-md-12">
|
||||
<div class="page-header">
|
||||
<h2>{{ 'List'| get_lang }}</h2>
|
||||
</div>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>{{ 'Name'| get_lang }}</th>
|
||||
<th>{{ 'ValidityDuration'| get_plugin_lang('Justification') }}</th>
|
||||
<th>{{ 'DateManualOn'| get_plugin_lang('Justification') }}</th>
|
||||
<th>{{ 'Actions'| get_lang }}</th>
|
||||
</tr>
|
||||
|
||||
{% for item in list %}
|
||||
<tr>
|
||||
<td >{{ item.name }} ({{ item.code }})</td>
|
||||
<td >{{ item.validity_duration }}</td>
|
||||
|
||||
<td >{{ item.date_manual_on }}</td>
|
||||
<td>
|
||||
<a href="{{_p.web_plugin }}justification/edit.php?id={{ item.id }}" class="btn btn-primary">
|
||||
{{'Edit' | get_lang}}
|
||||
</a>
|
||||
|
||||
<a href="{{_p.web_plugin }}justification/list.php?a=delete&id={{ item.id }}" class="btn btn-danger">
|
||||
{{'Delete' | get_lang}}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user