Changeset 133 for trunk/grails-app/views/taskDetailed
- Timestamp:
- May 8, 2009, 11:51:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/taskDetailed/show.gsp
r131 r133 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 18 <g:hasErrors bean="${taskProcedureInstance}"> 19 <div class="errors"> 20 <g:renderErrors bean="${taskProcedureInstance}" as="list" /> 21 </div> 22 </g:hasErrors> 19 23 20 24 <richui:tabView id="tabView"> 21 25 22 26 <richui:tabLabels> 23 <richui:tabLabel selected=" true" title="Task" />24 <richui:tabLabel title="Procedure" />25 <richui:tabLabel title="Recurrence" />26 <richui:tabLabel title="Inventory" />27 <richui:tabLabel title="Sub Tasks" />27 <richui:tabLabel selected="${showTaskTab}" title="Task #${taskInstance.id}" /> 28 <richui:tabLabel selected="${showProcedureTab}" title="Procedure" /> 29 <richui:tabLabel selected="${showRecurrenceTab}" title="Recurrence" /> 30 <richui:tabLabel selected="${showInventoryTab}" title="Inventory" /> 31 <richui:tabLabel selected="${showSubTasksTab}" title="Sub Tasks" /> 28 32 </richui:tabLabels> 29 33 … … 259 263 <!-- Start Task Procedure tab--> 260 264 <richui:tabContent> 261 262 <div class="list"> 263 <table> 264 <thead> 265 <tr> 266 <th>Step</th> 267 <th>Description</th> 268 <th></th> 269 </tr> 270 </thead> 271 <tbody> 272 <g:each in="${taskProcedureInstance?.maintenanceActions}" status="i" var="maintenanceAction"> 273 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/edit/${maintenanceAction.id}"'/> 274 275 <td valign="top" class="name"> 276 ${maintenanceAction?.procedureStepNumber} 277 </td> 278 279 <td valign="top" style="text-align:left;" class="value"> 280 ${maintenanceAction?.description} 281 </td> 282 283 </tr> 284 </g:each> 285 286 </tbody> 287 </table> 288 </div> 265 <g:if test="${!taskProcedureExits}"> 266 267 <g:form controller="taskDetailed" > 268 <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> 269 270 <div class="dialog"> 271 <table> 272 <tbody> 273 274 <tr class="prop"> 275 <td valign="top" class="name"> 276 <label for="name">Name:</label> 277 </td> 278 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'name','errors')}"> 279 <input type="text" maxlength="75" id="name" name="name" value="${fieldValue(bean:taskProcedureInstance,field:'name')}"/> 280 </td> 281 </tr> 282 283 <tr class="prop"> 284 <td valign="top" class="name"> 285 <label for="description">Description:</label> 286 </td> 287 <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'description','errors')}"> 288 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:taskProcedureInstance,field:'description')}"/> 289 </td> 290 </tr> 291 </tbody> 292 </table> 293 </div> 294 <div class="buttons"> 295 <span class="button"> 296 <g:actionSubmit value="New" action="generateProcedure" class="save"/> 297 </span> 298 <span class="button"> 299 <g:actionSubmit value="Find" action="findProcedure" class="save"/> 300 </span> 301 </div> 302 <!-- <div class="buttons"> 303 <span class="button"><input class="save" type="submit" value="Create Procedure" /></span> 304 <span class="button"><input class="save" type="submit" value="Find Procedure" /></span> 305 </div>--> 306 </g:form> 307 308 </g:if> 309 <g:else> 310 <div class="dialog"> 311 <table> 312 <tbody> 313 314 315 <tr class="prop"> 316 <td valign="top" class="name">Procedure Id:</td> 317 318 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> 319 320 </tr> 321 322 <tr class="prop"> 323 <td valign="top" class="name">Name:</td> 324 325 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td> 326 327 </tr> 328 329 <tr class="prop"> 330 <td valign="top" class="name">Description:</td> 331 332 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td> 333 334 </tr> 335 336 <tr class="prop"> 337 <td valign="top" class="name">Is Active:</td> 338 339 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> 340 341 </tr> 342 343 </tbody> 344 </table> 345 </div> 346 <div class="buttons"> 347 <g:form controller="taskProcedureDetailed"> 348 <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> 349 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 350 <!-- <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> 351 </g:form> 352 </div> 353 354 <div class="list"> 355 <table> 356 <thead> 357 <tr> 358 <th>Step</th> 359 <th>Description</th> 360 <th></th> 361 </tr> 362 </thead> 363 <tbody> 364 <g:each in="${taskProcedureInstance?.maintenanceActions}" status="i" var="maintenanceAction"> 365 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/edit/${maintenanceAction.id}"'/> 366 367 <td valign="top" class="name"> 368 ${maintenanceAction?.procedureStepNumber} 369 </td> 370 371 <td valign="top" style="text-align:left;" class="value"> 372 ${maintenanceAction?.description} 373 </td> 374 375 </tr> 376 </g:each> 377 378 </tbody> 379 </table> 380 </div> 381 382 </g:else> 289 383 290 384 </richui:tabContent>
Note: See TracChangeset
for help on using the changeset viewer.