Changeset 134 for trunk/grails-app/views/taskDetailed
- Timestamp:
- May 13, 2009, 12:51:15 PM (16 years ago)
- Location:
- trunk/grails-app/views/taskDetailed
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/taskDetailed/create.gsp
r106 r134 32 32 </td> 33 33 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> 34 <input type="text" style="width:450px" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/>34 <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> 35 35 <g:helpBalloon class="helpballoon" code="task.description" /> 36 36 </td> … … 42 42 </td> 43 43 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> 44 <textarea style="width:450px"rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea>44 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> 45 45 <g:helpBalloon class="helpballoon" code="task.comment" /> 46 46 </td> -
trunk/grails-app/views/taskDetailed/edit.gsp
r96 r134 159 159 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedPersons','errors')}"> 160 160 161 <ul>162 <g:each var="a" in="${taskInstance?.assignedPersons?}">163 <li><g:link controller="assignedPersonDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>164 </g:each>165 </ul>166 <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link>161 <ul> 162 <g:each var="a" in="${taskInstance?.assignedPersons?}"> 163 <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 164 </g:each> 165 </ul> 166 <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link> 167 167 168 168 </td> -
trunk/grails-app/views/taskDetailed/list.gsp
r124 r134 26 26 <g:sortableColumn property="description" title="Description" /> 27 27 28 < th>Lead Person</th>29 30 <th>Task Priority</th>31 32 <th>Task Status</th>28 <g:sortableColumn property="leadPerson" title="Lead Person" /> 29 30 <g:sortableColumn property="taskPriority" title="Task Priority" /> 31 32 <g:sortableColumn property="taskStatus" title="Task Status" /> 33 33 34 34 <th></th> … … 54 54 <td> 55 55 <g:link action="show" id="${taskInstance.id}"> 56 <img src="${createLinkTo(dir:'images/skin',file:'database_ table.png')}" alt="Show" />56 <img src="${createLinkTo(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 57 57 </g:link> 58 58 </td> -
trunk/grails-app/views/taskDetailed/show.gsp
r133 r134 149 149 </g:each> 150 150 </ul> 151 <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link> 151 152 </td> 152 153 … … 264 265 <richui:tabContent> 265 266 <g:if test="${!taskProcedureExits}"> 266 267 <g:form controller="taskDetailed" > 267 <br /> 268 No Procedure linked. 269 <br /> 270 <br /> 271 <g:form controller="taskProcedureDetailed" > 268 272 <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> 269 273 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 274 <div class="buttons"> 295 275 <span class="button"> 296 <g:actionSubmit value="New" action=" generateProcedure" class="save"/>276 <g:actionSubmit value="New" action="create" class="add"/> 297 277 </span> 298 278 <span class="button"> 299 <g:actionSubmit value=" Find" action="findProcedure" class="save"/>279 <g:actionSubmit value="Search" action="search" class="search"/> 300 280 </span> 301 281 </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>--> 282 306 283 </g:form> 307 284 308 285 </g:if> 309 286 <g:else> 310 <div class="dialog">287 <div class="dialog"> 311 288 <table> 312 289 <tbody> … … 348 325 <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> 349 326 <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> 327 </g:form> 352 328 </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> 329 330 <div class="list"> 331 <table> 332 <thead> 333 <tr> 334 <th>Step</th> 335 <th>Description</th> 336 </tr> 337 </thead> 338 <tbody> 339 <g:each in="${maintenanceActionList}" status="i" var="maintenanceAction"> 340 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 341 342 <td valign="top" class="name"> 343 ${maintenanceAction?.procedureStepNumber} 344 </td> 345 346 <td valign="top" style="text-align:left;" class="value"> 347 ${maintenanceAction?.description} 348 </td> 349 350 </tr> 351 </g:each> 352 353 </tbody> 354 </table> 355 </div> 381 356 382 357 </g:else> … … 387 362 <!-- Start Task Recurrence tab --> 388 363 <richui:tabContent> 389 <div class="dialog"> 390 <table> 391 <tbody> 392 <tr class="prop"> 393 <td valign="top" class="name">Recurring Schedule:</td> 394 395 <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.encodeAsHTML()}</td> 396 397 </tr> 398 399 <tr class="prop"> 400 <td valign="top" class="name">Start Date:</td> 401 402 <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.startDate}</td> 403 404 </tr> 405 406 <tr class="prop"> 407 <td valign="top" class="name">Next Due Date:</td> 408 409 <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.nextDueDate}</td> 410 411 </tr> 412 413 <tr class="prop"> 414 <td valign="top" class="name">Last Generated Date:</td> 415 416 <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.lastGeneratedDate}</td> 417 418 </tr> 419 420 <tr class="prop"> 421 <td valign="top" class="name">Last Generated Sub Task:</td> 422 423 <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.lastGeneratedSubTask}</td> 424 425 </tr> 426 </tbody> 427 </table> 428 </div> 364 365 <g:if test="${!taskRecurringScheduleExits}"> 366 <br /> 367 No Recurring Schedule. 368 <br /> 369 <br /> 370 <g:form controller="taskRecurringScheduleDetailed" > 371 <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> 372 373 <div class="buttons"> 374 <span class="button"> 375 <g:actionSubmit value="Create" action="create" class="add"/> 376 </span> 377 </div> 378 379 </g:form> 380 381 </g:if> 382 <g:else> 383 384 <div class="dialog"> 385 <table> 386 <tbody> 387 <tr class="prop"> 388 <td valign="top" class="name">Recurring Schedule:</td> 389 390 <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td> 391 392 </tr> 393 394 <tr class="prop"> 395 <td valign="top" class="name">Start Date:</td> 396 397 <td valign="top" class="value">${taskRecurringScheduleInstance.startDate}</td> 398 399 </tr> 400 401 <tr class="prop"> 402 <td valign="top" class="name">Next Due Date:</td> 403 404 <td valign="top" class="value">${taskRecurringScheduleInstance.nextDueDate}</td> 405 406 </tr> 407 408 <tr class="prop"> 409 <td valign="top" class="name">Last Generated Date:</td> 410 411 <td valign="top" class="value">${taskRecurringScheduleInstance.lastGeneratedDate}</td> 412 413 </tr> 414 415 <tr class="prop"> 416 <td valign="top" class="name">Last Generated Sub Task:</td> 417 418 <td valign="top" class="value">${taskRecurringScheduleInstance.lastGeneratedSubTask}</td> 419 420 </tr> 421 </tbody> 422 </table> 423 </div> 424 <div class="buttons"> 425 <g:form controller="taskRecurringScheduleDetailed"> 426 <input type="hidden" name="id" value="${taskInstance?.id}" /> 427 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 428 </g:form> 429 </div> 430 431 </g:else> 429 432 </richui:tabContent> 430 433 <!-- End Task Recurrence tab --> … … 438 441 <!-- Start Sub Task tab --> 439 442 <richui:tabContent> 440 <div class="dialog"> 441 <table> 442 <tbody> 443 <tr class="prop"> 444 <td valign="top" class="name">Sub Tasks:</td> 445 446 <td valign="top" style="text-align:left;" class="value"> 447 <ul> 448 <g:each var="s" in="${taskInstance.subTasks}"> 449 <li><g:link controller="taskDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 450 </g:each> 451 </ul> 452 </td> 453 454 </tr> 455 </tbody> 456 </table> 457 </div> 443 <g:if test="${subTaskInstanceTotal >= 1}"> 444 <div class="list"> 445 <table> 446 <thead> 447 <tr> 448 449 <th>Id</th> 450 451 <th>Target Start Date</th> 452 453 <th>Description</th> 454 455 <th>Lead Person</th> 456 457 <th>Task Priority</th> 458 459 <th>Task Status</th> 460 461 <th></th> 462 463 </tr> 464 </thead> 465 <tbody> 466 <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> 467 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'/> 468 469 <td>${fieldValue(bean:subTaskInstance, field:'id')}</td> 470 471 <td><g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd MMM yyyy"/></td> 472 473 <td>${subTaskInstance.description}</td> 474 475 476 <td>${subTaskInstance.leadPerson}</td> 477 478 <td>${subTaskInstance.taskPriority}</td> 479 480 <td>${subTaskInstance.taskStatus}</td> 481 482 <td> 483 <g:link action="show" id="${subTaskInstance.id}"> 484 <img src="${createLinkTo(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 485 </g:link> 486 </td> 487 488 489 </tr> 490 </g:each> 491 </tbody> 492 </table> 493 </div> 494 495 496 <div class="buttons"> 497 <g:form> 498 <input type="hidden" name="id" value="${taskInstance?.id}" /> 499 <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> 500 Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} 501 <br /> 502 </g:if> 503 <g:else> 504 Total ${subTaskInstanceTotal} 505 <br /> 506 </g:else> 507 <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="Sortable List" /></span> 508 </g:form> 509 </div> 510 511 </g:if> 512 <g:else> 513 <br /> 514 No Sub Tasks. 515 </g:else> 516 458 517 </richui:tabContent> 459 518 <!-- End Sub Task tab -->
Note: See TracChangeset
for help on using the changeset viewer.