Commit 99c8ec85 by Tuukka Kivilahti

print empty lines also for lecture

1 parent 5dffe1ae
...@@ -58,6 +58,15 @@ ...@@ -58,6 +58,15 @@
</p:commandButton> </p:commandButton>
</p:column> </p:column>
</p:dataTable> </p:dataTable>
<p:dataTable styleClass="onlyPrint" id="emptyParticipants" value="#{lectureReportsView.emptyLinesList}" var="number">
<p:column style="width: 20px;">
<h:outputText value="#{number}" />
</p:column>
<p:column style="width: 700px;">
&nbsp;
</p:column>
</p:dataTable>
</h:form> </h:form>
<br /> <br />
<br /> <br />
......
...@@ -11,4 +11,6 @@ ...@@ -11,4 +11,6 @@
.no_print { .no_print {
display: none; display: none;
} }
} }
\ No newline at end of file
...@@ -152,9 +152,6 @@ h1 { ...@@ -152,9 +152,6 @@ h1 {
width: 200px; width: 200px;
} }
nav { nav {
min-width: 200px; min-width: 200px;
background: white; background: white;
...@@ -164,7 +161,8 @@ nav { ...@@ -164,7 +161,8 @@ nav {
#main { #main {
min-width: 810px; min-width: 810px;
min-height: 400px; background : white; min-height: 400px;
background: white;
margin-right: 1em; margin-right: 1em;
border-right: 1px solid #aaa; border-right: 1px solid #aaa;
border-bottom: 1px solid #aaa; border-bottom: 1px solid #aaa;
...@@ -187,7 +185,6 @@ aside { ...@@ -187,7 +185,6 @@ aside {
color: #2694e8; color: #2694e8;
} }
#header a { #header a {
color: white; color: white;
text-decoration: none; text-decoration: none;
...@@ -197,7 +194,7 @@ aside { ...@@ -197,7 +194,7 @@ aside {
text-align: right; text-align: right;
} }
th, td { th,td {
padding: 5px; padding: 5px;
} }
...@@ -223,3 +220,8 @@ th, td { ...@@ -223,3 +220,8 @@ th, td {
padding-bottom: 20px; padding-bottom: 20px;
} }
@media screen {
.onlyPrint {
display: none;
}
}
\ No newline at end of file
package fi.codecrew.moya.web.lecture; package fi.codecrew.moya.web.lecture;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import javax.ejb.EJB; import javax.ejb.EJB;
...@@ -118,6 +119,16 @@ public class LectureReportsView extends GenericCDIView { ...@@ -118,6 +119,16 @@ public class LectureReportsView extends GenericCDIView {
} }
} }
} }
public List<String> getEmptyLinesList() {
ArrayList<String> retList = new ArrayList<String>();
for(int n = getCurrentLecture().getParticipantsCount(); n <= getCurrentLecture().getMaxParticipantsCount(); n++) {
retList.add(""+n+":");
}
return retList;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!