PIntrvl.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!-- Licensed Materials - Property of IBM
  2. BI and PM: Mobile
  3. (C) Copyright IBM Corp. 2007, 2012
  4. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
  5. <div class="prompt ${prompt.tag}" ${prompt}>
  6. <div id="msg${prompt.name}"></div>
  7. <%
  8. String[] DefValues = prompt.intervalToArray(prompt.getDefaultValue());
  9. if( !label ) out << "<label>${prompt.name}</label>"
  10. def c = "msgPos:&apos;msg${prompt.name}&apos; "
  11. if( prompt.required ) c += " required"
  12. %>
  13. <table>
  14. <tr>
  15. <td>i18n('WEB_PROMPT_INTERVAL_DAYS'):</td>
  16. <td>i18n('WEB_PROMPT_INTERVAL_HOURS'):</td>
  17. <td>i18n('WEB_PROMPT_INTERVAL_MINUTES'):</td>
  18. <% if( prompt.displaySeconds ){ %>
  19. <td>i18n('WEB_PROMPT_INTERVAL_SECONDS'):</td>
  20. <% } %>
  21. <% if( prompt.displayMilliSeconds ){ %>
  22. <td>i18n('WEB_PROMPT_INTERVAL_MILLISECONDS'):</td>
  23. <% } %>
  24. </tr>
  25. <tr>
  26. <td><input type="text" itype="D" size="4" value="${DefValues[0]}" class="${c}" pattern="[0-9]*"></input></td>
  27. <td><input type="text" itype="H" size="4" value="${DefValues[1]}" class="${c}" pattern="[0-9]*"></input></td>
  28. <td><input type="text" itype="M" size="2" value="${DefValues[2]}" maxlength="2" class="${c}" pattern="[0-9]*"></input></td>
  29. <% if( prompt.displaySeconds ){ %>
  30. <td><input type="text" itype="S" size="2" value="${DefValues[3]}" maxlength="2" class="${c}" pattern="[0-9]*"></input></td>
  31. <% } %>
  32. <% if( prompt.displayMilliSeconds ){ %>
  33. <td><input type="text" itype="MS" size="3" value="${DefValues[4]}" maxlength="3" class="${c}" pattern="[0-9]*"></input></td>
  34. <% } %>
  35. </tr>
  36. </table>
  37. </div>