mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-14 19:11:39 -08:00
Change signature viewing method
This commit is contained in:
parent
b1ead76963
commit
345e32af17
3 changed files with 25 additions and 13 deletions
|
@ -28,8 +28,12 @@ div.signatures {
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.needborder {
|
||||||
|
border: 1px solid black !important;
|
||||||
|
}
|
||||||
|
|
||||||
div.signatures .col .row {
|
div.signatures .col .row {
|
||||||
border: 1px solid black;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.forSign {
|
div.forSign {
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="col half">
|
<div class="col half">
|
||||||
{% if c == 0 %}
|
{% if c == 0 %}
|
||||||
<div class="row">Homeroom Teacher 導師</div>
|
<div class="row needborder">Homeroom Teacher 導師</div>
|
||||||
{% if 'confirm' in absData[currDate] %}
|
{% if 'confirm' in absData[currDate] %}
|
||||||
<div class="row"><img src="{{absData[currDate]['confirm']}}" alt=""></div>
|
<div class="row"><img src="{{absData[currDate]['confirm']}}" alt=""></div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -156,18 +156,22 @@
|
||||||
{% if absData[currDate][periods[c-1]]['name'] == 'GP' %}
|
{% if absData[currDate][periods[c-1]]['name'] == 'GP' %}
|
||||||
{% if 'signature' in absData[currDate][periods[c-1]] %}
|
{% if 'signature' in absData[currDate][periods[c-1]] %}
|
||||||
{% for i in absData[currDate][periods[c-1]]['signature'] %}
|
{% for i in absData[currDate][periods[c-1]]['signature'] %}
|
||||||
<div class="row">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['teacher']}}: {{i}}:
|
<div class="row needborder">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['teacher']}}: {{i}}:
|
||||||
{{absData[currDate][periods[c-1]]['names'][i]}}</div>
|
{{absData[currDate][periods[c-1]]['names'][i]}}</div>
|
||||||
<div class="row"><img src="{{absData[currDate][periods[c-1]]['signature'][i]}}" alt=""><br>備註:
|
<div class="row"><img src="{{absData[currDate][periods[c-1]]['signature'][i]}}" alt="">
|
||||||
{{absData[currDate][periods[c-1]]['notes']}}</div>
|
{% if loop.index == loop.length %}
|
||||||
|
<br>備註: {{absData[currDate][periods[c-1]]['notes']}}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="row">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['teacher']}}: No Signature
|
<div class="row needborder">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['teacher']}}: No
|
||||||
|
Signature
|
||||||
</div>
|
</div>
|
||||||
<div class="row"></div>
|
<div class="row"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="row">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['name']}}:
|
<div class="row needborder">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['name']}}:
|
||||||
{{absData[currDate][periods[c-1]]['teacher']}}
|
{{absData[currDate][periods[c-1]]['teacher']}}
|
||||||
</div>
|
</div>
|
||||||
<div class="row"><img src="{{absData[currDate][periods[c-1]]['signature']}}"
|
<div class="row"><img src="{{absData[currDate][periods[c-1]]['signature']}}"
|
||||||
|
|
|
@ -178,7 +178,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="col half">
|
<div class="col half">
|
||||||
{% if c == 0 %}
|
{% if c == 0 %}
|
||||||
<div class="row">Homeroom Teacher 導師</div>
|
<div class="row needborder">Homeroom Teacher 導師</div>
|
||||||
{% if 'confirm' in absData[currDate] %}
|
{% if 'confirm' in absData[currDate] %}
|
||||||
<div class="row"><img src="{{absData[currDate]['confirm']}}" alt=""></div>
|
<div class="row"><img src="{{absData[currDate]['confirm']}}" alt=""></div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -188,18 +188,22 @@
|
||||||
{% if absData[currDate][periods[c-1]]['name'] == 'GP' %}
|
{% if absData[currDate][periods[c-1]]['name'] == 'GP' %}
|
||||||
{% if 'signature' in absData[currDate][periods[c-1]] %}
|
{% if 'signature' in absData[currDate][periods[c-1]] %}
|
||||||
{% for i in absData[currDate][periods[c-1]]['signature'] %}
|
{% for i in absData[currDate][periods[c-1]]['signature'] %}
|
||||||
<div class="row">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['teacher']}}: {{i}}:
|
<div class="row needborder">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['teacher']}}: {{i}}:
|
||||||
{{absData[currDate][periods[c-1]]['names'][i]}}</div>
|
{{absData[currDate][periods[c-1]]['names'][i]}}</div>
|
||||||
<div class="row"><img src="{{absData[currDate][periods[c-1]]['signature'][i]}}" alt=""><br>備註:
|
<div class="row"><img src="{{absData[currDate][periods[c-1]]['signature'][i]}}" alt="">
|
||||||
{{absData[currDate][periods[c-1]]['notes']}}</div>
|
{% if loop.index == loop.length %}
|
||||||
|
<br>備註: {{absData[currDate][periods[c-1]]['notes']}}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="row">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['teacher']}}: No Signature
|
<div class="row needborder">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['teacher']}}: No
|
||||||
|
Signature
|
||||||
</div>
|
</div>
|
||||||
<div class="row"></div>
|
<div class="row"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="row">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['name']}}:
|
<div class="row needborder">{{periods[c-1]}}: {{absData[currDate][periods[c-1]]['name']}}:
|
||||||
{{absData[currDate][periods[c-1]]['teacher']}}
|
{{absData[currDate][periods[c-1]]['teacher']}}
|
||||||
</div>
|
</div>
|
||||||
<div class="row"><img src="{{absData[currDate][periods[c-1]]['signature']}}" alt=""><br>備註:
|
<div class="row"><img src="{{absData[currDate][periods[c-1]]['signature']}}" alt=""><br>備註:
|
||||||
|
|
Loading…
Reference in a new issue