pfisjs/views/birthdaycards_volunteersper...

23 lines
1.0 KiB
Plaintext

if persons.lenght === 0
.alert.alert-warning
strong Achtung
span
span Es wurden keine Personen, die die Kriterien erfüllen würden, gefunden!
else
fieldset(style="margin-bottom: 20px;")
legend(style="font-size: 120%; margin-bottom: 0px; color: orange;") Ehrenamtliche Geburtstagskinder
button.btn.btn-primary.btn-xs(onclick="$('[data-volunteer]').addClass('send_card_volunteer'); update_button_volunteerpersonsselected();") Alle auswählen
button.btn.btn-default.btn-xs(onclick="$('[data-volunteer]').removeClass('send_card_volunteer'); update_button_volunteerpersonsselected();") Alle abwählen
table(width='100%', class='table table-condensed', style='margin-bottom: 10px;')
thead
tr
td(style="width: 50%;") <b>Name</b>
td <b>Geburtstag</b>
td <b>Alter</b>
tbody
for p in persons
tr(onclick="$(this).toggleClass('send_card_volunteer'); update_button_volunteerpersonsselected();", style="cursor: pointer;", data-dn="#{p.dn}", data-volunteer)
td #{p.name}
td #{p.birthday}
td #{p.age}