Commit 99c8ec85 by Tuukka Kivilahti

print empty lines also for lecture

1 parent 5dffe1ae
......@@ -58,6 +58,15 @@
</p:commandButton>
</p:column>
</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>
<br />
<br />
......
......@@ -11,4 +11,6 @@
.no_print {
display: none;
}
}
\ No newline at end of file
......@@ -152,9 +152,6 @@ h1 {
width: 200px;
}
nav {
min-width: 200px;
background: white;
......@@ -164,7 +161,8 @@ nav {
#main {
min-width: 810px;
min-height: 400px; background : white;
min-height: 400px;
background: white;
margin-right: 1em;
border-right: 1px solid #aaa;
border-bottom: 1px solid #aaa;
......@@ -187,7 +185,6 @@ aside {
color: #2694e8;
}
#header a {
color: white;
text-decoration: none;
......@@ -197,7 +194,7 @@ aside {
text-align: right;
}
th, td {
th,td {
padding: 5px;
}
......@@ -223,3 +220,8 @@ th, td {
padding-bottom: 20px;
}
@media screen {
.onlyPrint {
display: none;
}
}
\ No newline at end of file
package fi.codecrew.moya.web.lecture;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
......@@ -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!