Skip to content
Browse files

Clean up a comment

Add another extension point to make it easier to override the button (that triggers the modal dialog)
  • Loading branch information...
1 parent 9cfec07 commit d4585265f8487776f983692a741b57d9b1e18e51 @hlship committed Jul 12, 2012
View
106 tapx-core/src/main/resources/com/howardlewisship/tapx/core/components/MultipleSelect.tml
@@ -1,58 +1,60 @@
<div class="${computedClassName}" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd">
- <input type="hidden" name="${controlName}"/>
- <div>
- <div class="tx-available">
- <label>
- <div class="tx-title">${availableColumnLabel}</div>
- <select id="${clientId}" multiple=" multiple "/>
- </label>
+ <input type="hidden" name="${controlName}"/>
+
+ <div>
+ <div class="tx-available">
+ <label>
+ <div class="tx-title">${availableColumnLabel}</div>
+ <select id="${clientId}" multiple=" multiple "/>
+ </label>
+ </div>
+ <div class="tx-controls">
+ <span class="tx-select tx-disabled" title="Select"/>
+ <span class="tx-deselect tx-disabled" title="Deselect"/>
+ </div>
+ <div class="tx-selected">
+ <label>
+ <div class="tx-title">${selectedColumnLabel}</div>
+ <select multiple="multiple"/>
+ </label>
+ </div>
</div>
- <div class="tx-controls">
- <span class="tx-select tx-disabled" title="Select"/>
- <span class="tx-deselect tx-disabled" title="Deselect"/>
+ <div class="tx-input">
+ <t:extension-point id="add-button">
+ <button>Add New ${singularLabel}</button>
+ </t:extension-point>
</div>
- <div class="tx-selected">
- <label>
- <div class="tx-title">${selectedColumnLabel}</div>
- <select multiple="multiple"/>
- </label>
- </div>
- </div>
- <div class="tx-input">
- <button>Add New ${singularLabel}</button>
- </div>
-
- <t:block id="editor">
-
- <t:zone t:id="newValueEditor">
- <t:form class="${className}" zone="^" t:id="newValue" context="clientId">
-
- <t:errors/>
-
- <t:remove>
- Intentionally omitting the
- <div class="t-beaneditor-row">
- </div>
- around t:beaneditor; the Tapestry default colors
- are a distraction inside the Modalbox. However,
- t-beaneditor-row lays out the rows nicely.
- </t:remove>
-
- <t:beaneditor object="newValue" model="beanModel" overrides="componentResources"/>
-
- <t:extension-point id="submit-row">
- <div class="t-beaneditor-row">
-
- <input type="submit" value="${message:tapx-multiple-select-submit-label}"/>
- </div>
- </t:extension-point>
- </t:form>
- </t:zone>
- </t:block>
-
- <t:block id="success">
- <t:trigger event="writeSuccessJavaScript"/>
- </t:block>
+
+ <t:block id="editor">
+
+ <t:zone t:id="newValueEditor">
+ <t:form class="${className}" zone="^" t:id="newValue" context="clientId">
+
+ <t:errors/>
+
+ <t:remove>
+ Intentionally omitting the
+ <div class="t-beaneditor"></div>
+ around t:beaneditor; the Tapestry default colors
+ are a distraction inside the modal dialog. However,
+ t-beaneditor-row lays out the rows nicely.
+ </t:remove>
+
+ <t:beaneditor object="newValue" model="beanModel" overrides="componentResources"/>
+
+ <t:extension-point id="submit-row">
+ <div class="t-beaneditor-row">
+
+ <input type="submit" value="${message:tapx-multiple-select-submit-label}"/>
+ </div>
+ </t:extension-point>
+ </t:form>
+ </t:zone>
+ </t:block>
+
+ <t:block id="success">
+ <t:trigger event="writeSuccessJavaScript"/>
+ </t:block>
</div>

0 comments on commit d458526

Please sign in to comment.
Something went wrong with that request. Please try again.