Skip to content
Snippets Groups Projects
Commit f5eec655 authored by damjan's avatar damjan
Browse files

[TASK] Moving 'Add property' to the top of the table

- Moving 'Add property' to the top of the table
- Renaming: 'sub property' => 'subproperty'
- Renaming: 'edit sub property' => 'edit property' - more clear meaning when 'add subproperty' is next to it
- Description text is in same line with div tag to avoid indenting it by format code.
parent c4c2c5d1
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,24 @@
typoScriptGroup: selectedTypoScriptGroup,
parentPropertyId: propertyIterator.0.parent_property_id
}">
edit {f:if(condition: propertyIterator.0.parent_property_id, then: 'sub ')}property
edit property
</f:link.action>
|
<f:link.action package="SGalinski.TypoScriptReferenceFrontend" controller="tsref"
action="deleteProperty" onclick="return confirmDeleteProperty()"
arguments="{attributeId: propertyIterator.0.id, parentTypeUrlName: selectedType.urlName, typo3Version: selectedTypo3Version, typoScriptGroup: selectedTypoScriptGroup}">
delete {f:if(condition: propertyIterator.0.parent_property_id, then: 'sub ')}property
delete property
</f:link.action>
|
<f:link.action package="SGalinski.TypoScriptReferenceFrontend" controller="tsref" action="editProperty"
arguments="{
parentTypeId: selectedType.id,
thePropertyId: NULL,
typo3Version: selectedTypo3Version,
typoScriptGroup: selectedTypoScriptGroup
parentPropertyId: propertyIterator.0.id
}">
add subproperty
</f:link.action>
]
</div>
......@@ -26,9 +37,7 @@
</h3>
<div class="sg-markdown">
{propertyIterator.0.description}
</div>
<div class="sg-markdown">{propertyIterator.0.description}</div>
<table class="table">
<tbody>
......@@ -67,20 +76,6 @@
<tr class="no-borders">
<td class="table-left-col"><h4>Sub properties</h4></td>
<td class="table-right-col">
<f:security.ifHasRole role="SGalinski.TypoScriptReferenceFrontend:Admin">
<f:link.action package="SGalinski.TypoScriptReferenceFrontend" controller="tsref" action="editProperty"
arguments="{
parentTypeId: selectedType.id,
thePropertyId: NULL,
typo3Version: selectedTypo3Version,
typoScriptGroup: selectedTypoScriptGroup
parentPropertyId: propertyIterator.0.id
}"
class="right-side-link">
[add sub property]
</f:link.action>
</f:security.ifHasRole>
<br>
<f:render partial="PropertiesTable"
arguments="{
......
......@@ -31,14 +31,17 @@
arguments="{attributeId: selectedType.id, typo3Version: selectedTypo3Version, typoScriptGroup: selectedTypoScriptGroup}">
delete type
</f:link.action>
|
<f:link.action package="SGalinski.TypoScriptReferenceFrontend" controller="tsref" action="editProperty"
arguments="{parentTypeId: selectedType.id, thePropertyId: NULL, typo3Version: selectedTypo3Version, typoScriptGroup: selectedTypoScriptGroup}">
add property
</f:link.action>
]
</div>
</f:security.ifHasRole>
</h1>
<div class="sg-markdown">
{selectedType.description}
</div>
<div class="sg-markdown">{selectedType.description}</div>
<table class="table">
<tbody>
<tr class="no-borders">
......@@ -71,13 +74,6 @@
<tr class="no-borders">
<td class="table-left-col"><h4>Properties</h4></td>
<td class="table-right-col">
<f:security.ifHasRole role="SGalinski.TypoScriptReferenceFrontend:Admin">
<f:link.action package="SGalinski.TypoScriptReferenceFrontend" controller="tsref" action="editProperty"
arguments="{parentTypeId: selectedType.id, thePropertyId: NULL, typo3Version: selectedTypo3Version, typoScriptGroup: selectedTypoScriptGroup}" class="right-side-link">
[add property]
</f:link.action>
</f:security.ifHasRole>
<br>
<f:render partial="PropertiesTable"
arguments="{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment