/www/dsp/edit-group.dsp

http://github.com/cgay/wiki · Unknown · 83 lines · 79 code · 4 blank · 0 comment · 0 complexity · 8aedcfa5e334fb8a72bd290a23304dcd MD5 · raw file

  1. <%dsp:include url="xhtml-start.dsp"/>
  2. <%dsp:taglib name="wiki"/>
  3. <head>
  4. <title>Dylan Wiki: Group <dsp:get name="group-name"/></title>
  5. <%dsp:include url="meta.dsp"/>
  6. </head>
  7. <body>
  8. <%dsp:include url="header.dsp"/>
  9. <div id="midsection">
  10. <div id="navigation">
  11. <wiki:include-page title="Wiki Left Nav"/>
  12. </div>
  13. <%dsp:include url="group-options-menu.dsp"/>
  14. <div id="content">
  15. <h2>Group <dsp:get name="group-name"/></h2>
  16. <dsp:show-page-errors/>
  17. <dsp:show-page-notes/>
  18. <dsp:if test="exists?" name="active-user">
  19. <dsp:else>
  20. <!-- not logged in -->
  21. <p class="hint">
  22. You must <a href="<wiki:base/>/register">Register</a> or
  23. <a href="<wiki:base/>/login?redirect=<wiki:current/>">login</a>
  24. to edit this group.
  25. </p>
  26. </dsp:else>
  27. <dsp:then>
  28. <!-- logged in -->
  29. <dsp:unless test="exists?" name="group-owner">
  30. <p class="hint">
  31. This group doesn't exist. Enter a comment and click Create to create it.
  32. </p>
  33. </dsp:unless>
  34. <form action="<wiki:base/>/group/edit/<dsp:get name="group-name"/>" method="post">
  35. <fieldset>
  36. <ol>
  37. <li id="name-item">
  38. <label id="name-label" for="name-input">Name: <em title="required">*</em></label>
  39. <input id="name-input" type="text" name="group-name"
  40. <dsp:if-error field-name="group-name" text='class="invalid-input"'/>
  41. value="<dsp:get name='group-name' context='request,page'/>"/>
  42. <dsp:show-field-errors field-name="group-name"/>
  43. </li>
  44. <li id="owner-item">
  45. <label id="owner-label" for="owner-input">Owner: <em title="required">*</em></label>
  46. <input id="owner-input" type="text" name="group-owner"
  47. <dsp:if-error field-name="group-owner" text='class="invalid-input"'/>
  48. value="<dsp:get name='group-owner' context='request,page'/>"/>
  49. <dsp:show-field-errors field-name="group-owner"/>
  50. </li>
  51. <li id="description-item">
  52. <label id="description-label" for="description-text">Description: <em title="required">*</em></label>
  53. <textarea id="description-text" name="group-description" rows="3" cols="40"
  54. <dsp:if-error field-name='group-description' text='class="invalid-input"'/>><dsp:get name='group-description' context='request,page'/></textarea>
  55. <dsp:show-field-errors field-name="group-description"/>
  56. </li>
  57. <li id="comment-item">
  58. <label id="comment-label" for="comment-input">Comment:</label>
  59. <input id="comment-input" type="text" name="comment"
  60. value="<dsp:get name='comment' context='request'/>"/>
  61. </li>
  62. </ol>
  63. </fieldset>
  64. <dsp:if test="exists?" name="group-owner">
  65. <dsp:then>
  66. <input type="submit" value="Save" />
  67. </dsp:then>
  68. <dsp:else>
  69. <input type="submit" value="Create" />
  70. </dsp:else>
  71. </dsp:if>
  72. </form>
  73. </dsp:then>
  74. </dsp:if>
  75. </div>
  76. </div>
  77. <%dsp:include url="footer.dsp"/>
  78. </body>
  79. </html>