Sfoglia il codice sorgente

notenkonferenzliste bg

burningTyger 8 anni fa
parent
commit
49731311ac
1 ha cambiato i file con 46 aggiunte e 0 eliminazioni
  1. 46 0
      views/vornoten_abi_2016.slim

+ 46 - 0
views/vornoten_abi_2016.slim

@@ -0,0 +1,46 @@
+#doc-einstellungen data-json='{"Name":"Notenkonferenzliste 1. APA BK","Gruppen":["D"],"Orientierung":"landscape"}'
+link rel="stylesheet" href=url("/assets/bootstrap/3.3.5/bootstrap.min.css")
+link rel="stylesheet" href=url("/css/print.css")
+link href=url("/css/print_a4_landscape.css") rel="stylesheet" media="all"
+-schueler.select{|s| s.abi_abschluss }.each_slice(4).with_index do |(*schueler_slice), slice_i|
+  .page
+    .subpage.font-size-8
+      .row
+        .col-xs-12
+          h5
+            |Notenkonferenzliste 1. APA BK Abitur #{schueler.first.klasse},
+            small< Stand: #{(Time.now).strftime("%d.%m.%Y – %H:%M")}, Seite #{slice_i+1}/#{(schueler.count/4) + 1 if (schueler.count.%(4)>0)}
+          .voffset-1
+          -schueler_slice.each_with_index do |s,i|
+            -array=[]
+            -array << ["<br>✎<br>→", "12.1", "12.2", "13.1", "13.2"]
+            -s.abi_abschluss_leistungen.sort_by{|f|f.f_sortierung}.each do |n|
+              -inner_array = []
+              -inner_array << n.fach_krz
+              -inner_array << n.p12_1 || ""
+              -inner_array << n.p12_2 || ""
+              -inner_array << n.p13_1 || ""
+              -inner_array << n.p13_2 || ""
+              -array << inner_array
+            -array = array.transpose
+            -faecher = array.shift
+            .row
+              .col-xs-8
+                b #{i+1+(3*slice_i)}. #{s.name}, #{s.vorname}
+                table.table.table-condensed.table-bordered.fixed.table-eng
+                  tr
+                    -faecher.each do |f|
+                      th.text-center height="60px" ==f
+                  -array.each do |a|
+                    tr
+                      -a.each do |l|
+                        td.text-center class=("danger" if l.to_i.between?(1,4) || l == "0")
+                          =l
+                .voffset-1
+              .col-xs-4
+                |Bemerkungen:
+                -5.times do
+                  hr
+                  .voffset-2
+                ="Zugelassen: #{s.abi_abschluss.zulassung? ? "Ja":"Nein"}"
+