forked from wocommunity/wonder
-
Notifications
You must be signed in to change notification settings - Fork 0
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 wocommunity#2 from fbarthez/NestedRelationshipEdit…
…ableList Nested relationship editable list
- Loading branch information
Showing
20 changed files
with
844 additions
and
34 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
59 changes: 59 additions & 0 deletions
59
...ts/Nonlocalized.lproj/ERMDNestingListPageRepetition.wo/ERMDNestingListPageRepetition.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,59 @@ | ||
<webobject name = "ObjectTable"> | ||
<webobject name = "ObjectsRepetition"> | ||
<webobject name = "IsRenderTableHeader"> | ||
<webobject name = "ObjectTableHeaderRow"> | ||
<webobject name = "HasLeftActionsConditional"><th class="ActionCell LftActionCell"> </th></webobject> | ||
<webobject name = "SectionRepetition"> | ||
<webobject name = "ColumnLabelRepetition"> | ||
<webobject name = "IsNotOmitted"> | ||
<webobject name = "AttColumnHeader"> | ||
<webobject name = "TableHeaderSwitchComponent"/> | ||
</webobject> | ||
</webobject> | ||
</webobject> | ||
</webobject> | ||
<webobject name = "HasRightActionsConditional"><th class="ActionCell RtActionCell"> </th></webobject> | ||
</webobject> | ||
</webobject> | ||
<webobject name = "ListTableRow"> | ||
<webobject name = "HasLeftActionsConditional"> | ||
<td class="ActionCell LftActionCell"> | ||
<ul class="ObjActionList LftObjActionList"> | ||
<webobject name = "HasNestedRelationship"> | ||
<li><webobject name = "ToggleNestedRelationshipEditor">Show Nested</webobject></li> | ||
</webobject> | ||
<webobject name = "LeftActions"> | ||
<li><webobject name = "LeftAction" /></li> | ||
</webobject> | ||
</ul> | ||
</td> | ||
</webobject> | ||
<webobject name = "SectionRepetition"> | ||
<webobject name = "AttributeRepetition"> | ||
<webobject name = "IsNotOmitted"><webobject name = "AttColumnCell"><webobject name = "AttributeDisplay" /></webobject></webobject> | ||
</webobject> | ||
</webobject> | ||
<webobject name = "HasRightActionsConditional"> | ||
<td class="ActionCell RtActionCell"> | ||
<ul class="ObjActionList RtObjActionList"> | ||
<webobject name = "RightActions"> | ||
<li><webobject name = "RightAction" /></li> | ||
</webobject> | ||
</ul> | ||
</td> | ||
</webobject> | ||
</webobject> | ||
<!-- optional child relationship drill-down --> | ||
<webobject name = "HasNestedRelationship"> | ||
<webobject name = "NestedUC"> | ||
<webobject name = "showNestedRelationshipEditor"> | ||
<webobject name = "NestedRelationshipField"><webobject name = "NestedRelationshipEditor"></webobject></webobject> | ||
</webobject> | ||
<webobject name = "hideNestedRelationshipEditor"> | ||
<webobject name = "HiddenNestedRelationshipField"> </webobject> | ||
</webobject> | ||
</webobject> | ||
</webobject> | ||
</webobject> | ||
</webobject> | ||
<p class="ERMDebugText" style="font-size:10px;"><webobject name = "D2wContextEntityName"/>-><webobject name = "D2wContextParentPageConfiguration"/>/<webobject name = "D2wContextPageConfiguration"/>/<webobject name = "D2wContextParentProperytKey"/></p> |
163 changes: 163 additions & 0 deletions
163
...nts/Nonlocalized.lproj/ERMDNestingListPageRepetition.wo/ERMDNestingListPageRepetition.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,163 @@ | ||
AttributeDisplay: WOSwitchComponent { | ||
WOComponentName = d2wContext.componentName; | ||
localContext = d2wContext; | ||
object = d2wContext.object; | ||
} | ||
|
||
AttributeRepetition: WORepetition { | ||
_unroll = true; | ||
item = propertyKey; | ||
list = currentSectionKeys; | ||
} | ||
|
||
IsNotOmitted : WOConditional { | ||
condition = isKeyOmitted; | ||
negate = true; | ||
} | ||
|
||
ColumnLabelRepetition: WORepetition { | ||
_unroll = true; | ||
item = propertyKey; | ||
list = currentSectionKeys; | ||
} | ||
|
||
ObjectsRepetition: WORepetition { | ||
item = d2wContext.object; | ||
list = ^displayGroup.displayedObjects; | ||
index = rowIndex; | ||
checkHashCodes = true; | ||
eoSupport = true; | ||
} | ||
|
||
IsRenderTableHeader : ERXEqualConditional { | ||
value1 = rowIndex; | ||
value2 = 0; | ||
} | ||
|
||
LeftAction: WOSwitchComponent { | ||
WOComponentName = d2wContext.componentName; | ||
localContext = d2wContext; | ||
object = d2wContext.object; | ||
displayGroup = displayGroup; | ||
updateContainerID = d2wContext.updateContainerID; | ||
} | ||
|
||
LeftActions: WORepetition { | ||
item = propertyKey; | ||
list = leftActions; | ||
} | ||
|
||
ObjectTableHeaderRow: WOGenericContainer { | ||
_unroll = true; | ||
elementName = "tr"; | ||
class = d2wContext.classForObjectTableHeader; | ||
} | ||
|
||
ListTableRow: WOGenericContainer { | ||
elementName = "tr"; | ||
class = objectRowClass; | ||
} | ||
|
||
HasNestedRelationship : WOConditional { | ||
condition = hasNestedRelationship; | ||
} | ||
|
||
NestedUC : AjaxUpdateContainer { | ||
id = idForNestedUpdateContainer; | ||
elementName = "tr"; | ||
class = nestedRowClass; | ||
} | ||
|
||
showNestedRelationshipEditor : WOConditional { | ||
condition = showNestedRelationshipEditor; | ||
} | ||
|
||
NestedRelationshipField : WOGenericContainer { | ||
elementName = "td"; | ||
colspan = columnCount; | ||
} | ||
|
||
HiddenNestedRelationshipField : WOGenericContainer { | ||
elementName = "td"; | ||
colspan = columnCount; | ||
class = "hidden"; | ||
} | ||
|
||
NestedRelationshipEditor : WOSwitchComponent { | ||
WOComponentName = childContext.componentName; | ||
localContext = childContext; | ||
object = childContext.object; // VALID | ||
} | ||
|
||
hideNestedRelationshipEditor : WOConditional { | ||
condition = showNestedRelationshipEditor; | ||
negate = true; | ||
} | ||
|
||
TableHeaderSwitchComponent : WOSwitchComponent { | ||
WOComponentName = d2wContext.tableHeaderComponentName; | ||
displayGroup = displayGroup; | ||
d2wContext = d2wContext; | ||
updateContainerID = ^updateContainerID; | ||
} | ||
|
||
RightAction: WOSwitchComponent { | ||
WOComponentName = d2wContext.componentName; | ||
localContext = d2wContext; | ||
object = d2wContext.object; | ||
displayGroup = displayGroup; | ||
} | ||
|
||
RightActions: WORepetition { | ||
item = propertyKey; | ||
list = rightActions; | ||
} | ||
|
||
SectionRepetition: ERXWORepetition { | ||
list = sectionsContents; | ||
item = currentSection; | ||
} | ||
|
||
ObjectTable : WOGenericContainer { | ||
elementName = "table"; | ||
class = d2wContext.classForObjectTable; | ||
} | ||
|
||
AttColumnHeader : WOGenericContainer { | ||
elementName = "th"; | ||
class = d2wContext.classForAttributeColumn; | ||
} | ||
|
||
AttColumnCell : WOGenericContainer { | ||
elementName = "td"; | ||
class = d2wContext.classForAttributeColumn; | ||
data-label = d2wContext.displayNameForProperty; | ||
} | ||
|
||
HasLeftActionsConditional : WOConditional { | ||
condition = hasLeftActions; | ||
} | ||
|
||
ToggleNestedRelationshipEditor : AjaxUpdateLink { | ||
action = toggleNestedRelationshipEditor; | ||
updateContainerID = idForNestedUpdateContainer; | ||
} | ||
|
||
HasRightActionsConditional : WOConditional { | ||
condition = hasRightActions; | ||
} | ||
D2wContextEntityName : WOString { | ||
value = d2wContext.entity.name; | ||
} | ||
|
||
D2wContextParentPageConfiguration : WOString { | ||
value = d2wContext.parentPageConfiguration; | ||
} | ||
|
||
D2wContextPageConfiguration : WOString { | ||
value = d2wContext.pageConfiguration; | ||
} | ||
|
||
D2wContextParentProperytKey : WOString { | ||
value = d2wContext.parentProperytKey; | ||
} |
4 changes: 4 additions & 0 deletions
4
...nts/Nonlocalized.lproj/ERMDNestingListPageRepetition.wo/ERMDNestingListPageRepetition.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,4 @@ | ||
{ | ||
"WebObjects Release" = "WebObjects 5.0"; | ||
encoding = "UTF-8"; | ||
} |
22 changes: 12 additions & 10 deletions
22
...ents/Nonlocalized.lproj/ERMDSimpleListPageRepetition.wo/ERMDSimpleListPageRepetition.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
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
Oops, something went wrong.