Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 99c8ec85
authored
Jul 25, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print empty lines also for lecture
1 parent
5dffe1ae
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
6 deletions
code/MoyaWeb/WebContent/lectureadmin/manageParticipants.xhtml
code/MoyaWeb/WebContent/resources/templates/template1/css/print.css
code/MoyaWeb/WebContent/resources/templates/template1/css/style.css
code/MoyaWeb/src/fi/codecrew/moya/web/lecture/LectureReportsView.java
code/MoyaWeb/WebContent/lectureadmin/manageParticipants.xhtml
View file @
99c8ec8
...
@@ -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;"
>
</p:column>
</p:dataTable>
</h:form>
</h:form>
<br
/>
<br
/>
<br
/>
<br
/>
...
...
code/MoyaWeb/WebContent/resources/templates/template1/css/print.css
View file @
99c8ec8
...
@@ -11,4 +11,6 @@
...
@@ -11,4 +11,6 @@
.no_print
{
.no_print
{
display
:
none
;
display
:
none
;
}
}
}
}
\ No newline at end of file
code/MoyaWeb/WebContent/resources/templates/template1/css/style.css
View file @
99c8ec8
...
@@ -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
code/MoyaWeb/src/fi/codecrew/moya/web/lecture/LectureReportsView.java
View file @
99c8ec8
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
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment