fix removing no records row; set full path for assets web dir

parent b75fd070
......@@ -9,7 +9,7 @@
return [
'assets' => [
'web_dir' => 'public',
'web_dir' => __DIR__ . '/../../public',
'paths' => [
'module/schools/public',
],
......
......@@ -69,6 +69,7 @@
return this;
},
renderEmployee: function (teacher) {
this.$el.find('tbody tr.no-records').remove();
this.$el.find('tbody').append(new StaffRow({
model: teacher
}).render().el);
......
......@@ -42,8 +42,8 @@
<td class="position">{{ teacher.position }}</td>
</tr>
{% else %}
<tr>
<td colspan="6" class="text-center text-muted no-records">
<tr class="no-records">
<td colspan="6" class="text-center text-muted">
Δεν έχουν καταχωρηθεί εκπαιδευτικοί.
</td>
</tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment