allInOne.xhtml
9.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<ui:composition template="template.xhtml">
<ui:define name="pageTitle">
<h:outputText value="HOME needs i18n"></h:outputText>
</ui:define>
<ui:define name="content">
<h:messages globalOnly="true" showDetail="true" tooltip="true" errorClass="errorMsgs" infoClass="infoMsgs" />
<h:form id="frmNew">
<h2>New Sprint</h2>
<h:panelGrid columns="3" style="width: 300px">
<h:outputLabel value="#{i18n['sprints.label.name']}:" for="itName" />
<h:inputText id="itName" value="#{allInOneMB.sprintsMB.toSave.name}" required="true" requiredMessage="Type the short name" />
<h:message for="itName" />
<h:outputLabel value="#{i18n['sprints.label.goals']}:" for="itGoals" />
<h:inputText id="itGoals" value="#{allInOneMB.sprintsMB.toSave.goals}" required="true" requiredMessage="Describe the goals" />
<h:message for="itGoals" />
<h:outputLabel value="#{i18n['sprints.label.iterationScope']}:" for="itIterationScope" />
<h:inputText id="itIterationScope" value="#{allInOneMB.sprintsMB.toSave.iterationScope}" required="true" requiredMessage="Type the scope" />
<h:message for="itIterationScope" />
<h:outputLabel value="#{i18n['sprints.label.startedAt']}:" for="itStartedAt" />
<h:inputText id="itStartedAt" value="#{allInOneMB.sprintsMB.toSave.startedAt}" required="true" requiredMessage="Type when this sprint start" />
<h:message for="itStartedAt" />
<h:outputLabel value="#{i18n['sprints.label.dailyMeetingTime']}:" for="itDailyMeetingTime" />
<h:inputText id="itDailyMeetingTime" value="#{allInOneMB.sprintsMB.toSave.dailyMeetingTime}" required="true" requiredMessage="Type the estimation (story points)" />
<h:message for="itDailyMeetingTime" />
<f:verbatim></f:verbatim>
<f:verbatim></f:verbatim>
<h:commandButton action="#{allInOneMB.sprintsMB.save}" value="save" />
</h:panelGrid>
</h:form>
<h:form id="frmList">
<h2>Sprints</h2>
<h:panelGrid columns="3" style="width: 300px">
<h:outputLabel value="Not exist sprints" style="color: orange" rendered="#{allInOneMB.sprintsMB.dm.rowCount eq 0}"/>
</h:panelGrid>
<h:dataTable value="#{allInOneMB.sprintsMB.dm}" var="sprint" width="100%" rendered="#{allInOneMB.sprintsMB.dm.rowCount > 0}">
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="#" /></f:facet>
<h:outputText value="#{allInOneMB.sprintsMB.dm.rowIndex + 1}" />
<f:facet name="footer">#{""}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="name" /></f:facet>
<h:outputText value="#{sprint.name}" />
<f:facet name="footer">#{allInOneMB.sprintsMB.dm.rowCount}#{" sprints"}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="goals" /></f:facet>
<h:outputText value="#{sprint.goals}" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="iteration scope" /></f:facet>
<h:outputText value="#{sprint.iterationScope}" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="started at" /></f:facet>
<h:outputText value="#{sprint.startedAt}" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="daily meeting time" /></f:facet>
<h:outputText value="#{sprint.dailyMeetingTime}" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
<h:column>
<f:facet name="header"><h:outputLabel value="actions" /></f:facet>
<h:commandButton action="#{allInOneMB.sprintsMB.edit}" value="edit ..." />
<h:commandButton action="#{allInOneMB.sprintsMB.remove}" value="remove" />
<h:commandButton action="#{allInOneMB.sprintsMB.showStories}" value="stories ..." />
<h:commandButton action="#{allInOneMB.sprintsMB.showDashboard}" value="dashboard ..." />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
</h:dataTable>
</h:form>
<h:form id="frmNewStory">
<h2>New Story</h2>
<h:panelGrid columns="3" style="width: 300px">
<h:outputLabel value="#{i18n['stories.label.sprint']}:" for="otSprint" />
<h:outputText id="otSprint" value="#{storiesMB.toSave.sprint.name}" />
<h:message for="otSprint" />
<h:outputLabel value="#{i18n['stories.label.name']}:" for="itName" />
<h:inputText id="itName" value="#{storiesMB.toSave.name}" required="true" requiredMessage="Describe the story" />
<h:message for="itName" />
<h:outputLabel value="#{i18n['stories.label.acceptance']}:" for="itAcceptance" />
<h:inputTextarea id="itAcceptance" value="#{storiesMB.toSave.acceptance}" required="true" cols="50" rows="4" requiredMessage="Describe the acceptance" />
<h:message for="itAcceptance" />
<h:outputLabel value="#{i18n['stories.label.priority']}:" for="selPriority" />
<h:inputText id="selPriority" value="#{storiesMB.toSave.priority}" required="true" requiredMessage="Type the priority (sequence to do)" />
<h:message for="selPriority" />
<h:outputLabel value="#{i18n['stories.label.estimation']}:" for="itEstimation" />
<h:inputText id="itEstimation" value="#{storiesMB.toSave.estimation}" required="true" requiredMessage="Type the estimation (story points)" />
<h:message for="itEstimation" />
<f:verbatim></f:verbatim>
<f:verbatim></f:verbatim>
<h:commandButton action="#{storiesMB.save}" value="save" />
</h:panelGrid>
</h:form>
<h:form id="frmStories">
<h2>Stories</h2>
<h:panelGrid columns="3" >
<h:outputLabel value="No exist stories for this sprint" rendered="#{storiesMB.dm.rowCount eq 0}"/>
</h:panelGrid>
<h:dataTable value="#{storiesMB.dm}" var="story" width="100%" rendered="#{storiesMB.dm.rowCount > 0}">
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="#" /></f:facet>
<h:outputText value="#{storiesMB.dm.rowIndex + 1}" />
<f:facet name="footer">#{""}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="name" /></f:facet>
<h:outputText value="#{story.name}" />
<f:facet name="footer">#{storiesMB.dm.rowCount}#{" stories"}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="priority" /></f:facet>
<h:outputText value="#{story.priority}" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="estimation (sp)" /></f:facet>
<h:outputText value="#{story.estimation}" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="acceptance" /></f:facet>
<h:outputText value="#{story.acceptance}" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
<h:column>
<f:facet name="header"><h:outputLabel value="actions" /></f:facet>
<h:commandButton action="#{storiesMB.edit}" value="edit ..." immediate="true" />
<h:commandButton action="#{storiesMB.remove}" value="remove" immediate="true" />
<h:commandButton action="#{storiesMB.showTasks}" value="tasks" immediate="true" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
</h:dataTable>
</h:form>
<h:form id="frmNewTask">
<h:commandLink action="stories" value="#{'go back stories'}" immediate="true" />
<h2>New Task</h2>
<h:panelGrid columns="3" style="width: 300px">
<h:outputLabel value="#{i18n['tasks.label.story']}:" for="otStory" />
<h:outputText id="otStory" value="#{tasksMB.taskToSave.story.name}" />
<h:message for="otStory" />
<h:outputLabel value="#{i18n['tasks.label.name']}:" for="itName" />
<h:inputText id="itName" value="#{tasksMB.taskToSave.name}" required="true" requiredMessage="Descreva a tarefa" />
<h:message for="itName" />
<f:verbatim></f:verbatim>
<f:verbatim></f:verbatim>
<h:commandButton action="#{tasksMB.save}" value="save" />
</h:panelGrid>
</h:form>
<h:form id="frmTasks">
<h2>Tasks</h2>
<h:panelGrid columns="3" style="width: 300px">
<h:outputLabel value="Nao ha tarefas para esta estoria" style="color: orange" rendered="#{tasksMB.dmTasks.rowCount eq 0}"/>
</h:panelGrid>
<h:dataTable value="#{tasksMB.dmTasks}" var="task" width="300px" rendered="#{tasksMB.dmTasks.rowCount > 0}">
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="#" /></f:facet>
<h:outputText value="#{tasksMB.dmTasks.rowIndex + 1}" />
<f:facet name="footer">#{""}</f:facet>
</h:column>
<h:column headerClass="textColumn">
<f:facet name="header"><h:outputLabel value="name" /></f:facet>
<h:outputText value="#{task.name}" />
<f:facet name="footer">#{tasksMB.dmTasks.rowCount}#{" tasks"}</f:facet>
</h:column>
<h:column>
<f:facet name="header"><h:outputLabel value="actions" /></f:facet>
<h:commandButton action="#{tasksMB.edit}" value="edit ..." immediate="true" />
<h:commandButton action="#{tasksMB.remove}" value="remove" immediate="true" />
<f:facet name="footer">#{" "}</f:facet>
</h:column>
</h:dataTable>
</h:form>
</ui:define>
</ui:composition>
</html>