-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #803 from fbarthez/pr/ERMODEditableListTemplate-v2
Adds ERMODEditableListTemplate for editing all items in a list
- Loading branch information
Showing
15 changed files
with
411 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...Components/Nonlocalized.lproj/ERMODEditableListTemplate.wo/ERMODEditableListTemplate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<webobject name = "PageWrapper"> | ||
<webobject name = "RequiredWrapper"> | ||
<webobject name = "ShowTopActionBlock"> | ||
<webobject name = "TopActionBlock"> | ||
<webobject name = "ShouldShowDefaultPageButtons"> | ||
<webobject name = "ShowCancel"> | ||
<ul class = "ActionList"> | ||
<li><webobject name = "ReturnButton" /></li> | ||
</ul> | ||
</webobject> | ||
</webobject> | ||
<webobject name = "SecondaryActionBlock" /> | ||
</webobject> | ||
</webobject> | ||
<webobject name = "InnerWrapper"> | ||
<webobject name = "ErrorBlock" /> | ||
<webobject name = "ListNotEmpty"> | ||
<webobject name = "RepetitionUpdateContainer"> | ||
<webobject name = "ObserveEditList"> | ||
<webobject name = "ListPageRepetition" /> | ||
</webobject> | ||
<webobject name = "ShowBottomBatchNavBar"> | ||
<webobject name = "BottomNavBar"> <webobject name = "NavigationBar" /> </webobject> | ||
</webobject> | ||
<webobject name = "ShowBottomBatchCount"> | ||
<webobject name = "BottomNavBatchSize"><webobject name = "BatchSizeControl" /></webobject> | ||
</webobject> | ||
<webobject name = "ShowBottomActionBlock"> | ||
<webobject name = "BottomActionBlock"> | ||
<webobject name = "ShouldShowDefaultPageButtons"> | ||
<ul class = "ActionList"> | ||
<li><webobject name = "CancelButton" /></li> | ||
<li><webobject name = "SubmitChanges" /></li> | ||
</ul> | ||
</webobject> | ||
<webobject name = "SecondaryActionBlock" /> | ||
</webobject> | ||
</webobject> | ||
</webobject> | ||
</webobject> | ||
<webobject name = "ListEmpty"><webobject name = "EmptyMessageComponent" /> </webobject> | ||
</webobject> | ||
</webobject> | ||
</webobject> |
145 changes: 145 additions & 0 deletions
145
.../Components/Nonlocalized.lproj/ERMODEditableListTemplate.wo/ERMODEditableListTemplate.wod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
PageWrapper: WOSwitchComponent { | ||
WOComponentName = d2wContext.pageWrapperName; | ||
_componentUnroll = true; | ||
_unroll = true; | ||
} | ||
|
||
RequiredWrapper : ERMODRequiredWrapper { | ||
d2wContext = d2wContext; | ||
watchedContainerID = d2wContext.idForRepetitionContainer; | ||
} | ||
|
||
|
||
ShowTopActionBlock : WOConditional { | ||
condition = d2wContext.showTopActionBlock; | ||
} | ||
|
||
|
||
TopActionBlock : WOGenericContainer { | ||
elementName = "div"; | ||
class = d2wContext.classForTopActionBlock; | ||
} | ||
|
||
|
||
ShouldShowDefaultPageButtons : WOConditional { | ||
condition = d2wContext.shouldShowDefaultPageButtons; | ||
} | ||
|
||
ShowCancel: WOConditional { | ||
condition = showCancel; | ||
} | ||
|
||
ReturnButton: CCSmartAjaxButton { | ||
alt = "Returns to the previous page"; | ||
value = d2wContext.returnButtonLabel; | ||
action = backAction; | ||
class = "Button PageButton ReturnPageButton"; | ||
useAjax = d2wContext.useAjaxControlsWhenEmbedded; | ||
updateContainerID = d2wContext.idForParentMainContainer; | ||
} | ||
|
||
SecondaryActionBlock: ERMODSecondaryActionButtons { | ||
d2wContext = d2wContext; | ||
dataSource = dataSource; | ||
displayGroup = displayGroup; | ||
} | ||
|
||
InnerWrapper : WOGenericContainer { | ||
elementName = "div"; | ||
class = d2wContext.classForInnerWrapper; | ||
} | ||
|
||
ErrorBlock : ERMODErrorBlock { | ||
d2wContext = d2wContext; | ||
errorMessage = errorMessage; | ||
errorMessages = errorMessages; | ||
} | ||
|
||
RepetitionUpdateContainer : AjaxUpdateContainer { | ||
elementName = "div"; | ||
id = d2wContext.idForRepetitionContainer; | ||
onSuccess = updateBottomActionBlock; | ||
} | ||
|
||
ObserveEditList : AjaxObserveField { | ||
updateContainerID = d2wContext.idforRepetitionContainer; | ||
} | ||
|
||
ShowBottomActionBlock : WOConditional { | ||
condition = d2wContext.showBottomActionBlock; | ||
} | ||
|
||
BottomActionBlock : AjaxUpdateContainer { | ||
class = d2wContext.classForBottomActionBlock; | ||
id = idForBottomActionBlock; | ||
} | ||
|
||
CancelButton: CCSmartAjaxButton { | ||
alt = "Reverts your changes"; | ||
value = d2wContext.cancelButtonLabel; | ||
action = cancel; | ||
dontSubmitForm = true; | ||
class = "Button PageButton CancelPageButton"; | ||
useAjax = false; | ||
updateContainerID = d2wContext.idForParentMainContainer; | ||
} | ||
|
||
SubmitChanges: CCSmartAjaxButton { | ||
action = saveAction; | ||
alt = "Saves your changes"; | ||
value = d2wContext.saveButtonLabel; | ||
class = "Button PageButton SubmitPageButton"; | ||
useAjax = false; | ||
updateContainerID = d2wContext.idForParentMainContainer; | ||
} | ||
|
||
ShowBottomBatchNavBar : WOConditional { | ||
condition = d2wContext.showBottomBatchNavBar; | ||
} | ||
|
||
ShowBottomBatchCount : WOConditional { | ||
condition = d2wContext.showBottomBatchCount; | ||
} | ||
|
||
BottomNavBar : WOGenericContainer { | ||
elementName = "div"; | ||
class = d2wContext.classForBottomNavBar; | ||
} | ||
|
||
BottomNavBatchSize : WOGenericContainer { | ||
elementName = "div"; | ||
class = d2wContext.classForBottomBatchSize; | ||
} | ||
|
||
BatchSizeControl : ERMDBatchSizeControl { | ||
displayGroup = displayGroup; | ||
updateContainerID = d2wContext.idForRepetitionContainer; | ||
d2wContext = d2wContext; | ||
} | ||
|
||
NavigationBar: WOSwitchComponent { | ||
WOComponentName = d2wContext.batchNavigationBarComponentName; | ||
displayGroup = displayGroup; | ||
d2wContext = d2wContext; | ||
updateContainerID = d2wContext.idForRepetitionContainer; | ||
} | ||
|
||
EmptyMessageComponent: WOSwitchComponent { | ||
WOComponentName = d2wContext.emptyListComponentName; | ||
d2wContext = d2wContext; | ||
} | ||
|
||
ListEmpty: WOConditional { | ||
condition = isListEmpty; | ||
} | ||
|
||
ListNotEmpty: WOConditional { | ||
condition = isListEmpty; | ||
negate = true; | ||
} | ||
|
||
ListPageRepetition: WOSwitchComponent { | ||
WOComponentName = d2wContext.repetitionComponentName; | ||
d2wContext = d2wContext; | ||
displayGroup = displayGroup; | ||
} |
1 change: 1 addition & 0 deletions
1
.../Components/Nonlocalized.lproj/ERMODEditableListTemplate.wo/ERMODEditableListTemplate.woo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"WebObjects Release" = "WebObjects 5.0"; encoding = "UTF-8"; variables = {}; } |
Oops, something went wrong.