Changeset 610 for trunk/grails-app/views/inventoryItemDetailed
- Timestamp:
- Jun 22, 2010, 5:55:31 PM (15 years ago)
- Location:
- trunk/grails-app/views/inventoryItemDetailed
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r604 r610 84 84 <tr class="prop"> 85 85 <td valign="top" class="name"> 86 <label for="enableReorder">Enable Reorder :</label>86 <label for="enableReorder">Enable Reorder Listing:</label> 87 87 </td> 88 88 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder','errors')}"> -
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r604 r610 129 129 <tr class="prop"> 130 130 <td valign="top" class="name"> 131 <label for="enableReorder">Enable Reorder :</label>131 <label for="enableReorder">Enable Reorder Listing:</label> 132 132 </td> 133 133 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder','errors')}"> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r605 r610 25 25 <li><g:message code="inventory.item.not.active" /><li> 26 26 </g:if> 27 <ul> 27 </ul> 28 </div> 29 </g:if> 30 <g:if test="${!inventoryItemInstance.enableReorder}" > 31 <div class="message"> 32 <g:message code="inventory.item.reorder.listing.disabled" /> 28 33 </div> 29 34 </g:if> … … 247 252 248 253 <tr class="prop"> 249 <td valign="top" class="name">Enable Reorder :</td>254 <td valign="top" class="name">Enable Reorder Listing:</td> 250 255 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td> 251 256 </tr> … … 433 438 434 439 <div class="buttons"> 435 <g:form controller="inventoryItemPurchaseDetailed"> 436 <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}" /> 437 <span class="button"><g:actionSubmit action="create" class="add" value="Order" /></span> 438 </g:form> 440 <!--Fake button to prevent ordering disabled inventory items--> 441 <g:if test="${inventoryItemInstance.isObsolete || !inventoryItemInstance.isActive}" > 442 <g:form controller="inventoryItemDetailed"> 443 <g:hiddenField name="id" value="${inventoryItemInstance.id}" /> 444 <span class="button"><g:actionSubmit action="show" class="add" value="${g.message(code:'inventory.item.reorder.not.allowed')}" /></span> 445 </g:form> 446 </g:if> 447 <g:else><!--Real order button.--> 448 <g:form controller="inventoryItemPurchaseDetailed"> 449 <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}" /> 450 <span class="button"><g:actionSubmit action="create" class="add" value="Order" /></span> 451 </g:form> 452 </g:else> 439 453 </div> 440 454 … … 551 565 552 566 <div class="buttons"> 553 <g:form controller="inventoryItemPurchaseDetailed"> 554 <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}" /> 555 Results: ${inventoryItemPurchases.size()} / ${inventoryItemPurchasesTotal} 556 <span class="button"><g:actionSubmit action="create" class="add" value="Order" /></span> 557 </g:form> 567 <!--Fake button to prevent ordering disabled inventory items--> 568 <g:if test="${inventoryItemInstance.isObsolete || !inventoryItemInstance.isActive}" > 569 <g:form controller="inventoryItemDetailed"> 570 <g:hiddenField name="id" value="${inventoryItemInstance.id}" /> 571 Results: ${inventoryItemPurchases.size()} / ${inventoryItemPurchasesTotal} 572 <span class="button"> 573 <g:actionSubmit action="show" class="add" value="${g.message(code:'inventory.item.reorder.not.allowed')}" /> 574 </span> 575 </g:form> 576 </g:if> 577 <g:else><!--Real order button.--> 578 <g:form controller="inventoryItemPurchaseDetailed"> 579 <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}" /> 580 Results: ${inventoryItemPurchases.size()} / ${inventoryItemPurchasesTotal} 581 <span class="button"><g:actionSubmit action="create" class="add" value="Order" /></span> 582 </g:form> 583 </g:else> 558 584 </div> 559 585
Note: See TracChangeset
for help on using the changeset viewer.