PrimeRevenue/tent — pull request #63 by niallfallon (2012-11-06 08:05:04+00:00)
Title: Feature/modal custom footer

Allows you to define a footer panel (and body panel) independent of the one generated by the ModalPane

Usage is like:

{{#view Tent.ModalPane
label="Custom Footer"
header="_modalHeader"
customContent=true
}}
{{#view Tent.ModalBody}}
{{view Tent.NumericTextField label="_numericInput" currency="EUR" required=true }}
{{view Tent.NumericTextField label="_numericInput" currency="EUR" required=true }}
{{view Tent.NumericTextField label="_numericInput" currency="EUR" required=true }}
{{/view}}
{{#view Tent.ModalFooter}}
{{view Tent.Button buttonClass="close-dialog pull-left cancel" label="cancel" type="secondary"}}
{{view Tent.Button buttonClass="" label="go" type="primary" validate=true}}
{{/view}}
{{/view}}

- In order to use the ModalBody and ModalFooter views, you must set customContent to true.
- Any button that will close the dialog should have a style of 'close-dialog'
- The cancel button should be identified with a style of 'cancel'. In the event that the Modal is closed by this button, or the 'x' close button, or by clicking outside of the modal, then the action associated with the cancel button will be executed.