PopupForm
Almost the same as the Popup, except this is used to render an action that has a form in it's view. By default has 2 buttons OK which posts the forms via ajax and Cancel. It can be declared using 2 helpers:- Html.Awe().PopupFormActionLink - will generate a link which opens the popup
- Url.Awe().PopupFormAction - will generate the js function call for opening the popup
<button onclick="@Url.Awe().PopupFormAction().Url(Url.Action("create","Dinners"))">
Create Dinner</button>
the Post Action Must return a Json (can be just Json(new{}) ) in case of success, and View otherwise ( !ModelState.IsValid )
A js success function can be specified, this function will be executed on success and it will receive as parameter the Json object that was returned by the post action.
properties:
Name - when using 2 popups with same name opening one will close the other Url - the url to the action that returns the content Success - a js function to be executed on success Button - add a button to the popup RemoveOnClose - whether to remove the content of the popup and the popup itself after close, by default is true Position Fullscreen - if true the popup will fill the browser window Height Width Title
