Permalink
Browse files

MINOR Moved 'access' field labels in SiteConfig->getCMSFields() and S…

…iteTree->getCMSFields() from headlines to actual label elements in order to manage presentation easier
  • Loading branch information...
1 parent 91fbcf8 commit 53a62e7b8cb2fa4c8e676772ce03e2807a0028f9 @chillu chillu committed Apr 19, 2011
Showing with 6 additions and 11 deletions.
  1. +4 −7 code/model/SiteConfig.php
  2. +2 −4 code/model/SiteTree.php
View
@@ -52,19 +52,16 @@ function getCMSFields() {
new DropdownField("Theme", _t('SiteConfig.THEME', 'Theme'), $this->getAvailableThemes(), '', null, _t('SiteConfig.DEFAULTTHEME', '(Use default theme)'))
),
$tabAccess = new Tab('Access',
- new HeaderField('WhoCanViewHeader', _t('SiteConfig.VIEWHEADER', "Who can view pages on this site?"), 2),
- $viewersOptionsField = new OptionsetField("CanViewType"),
+ $viewersOptionsField = new OptionsetField("CanViewType", _t('SiteConfig.VIEWHEADER', "Who can view pages on this site?")),
$viewerGroupsField = new TreeMultiselectField("ViewerGroups", _t('SiteTree.VIEWERGROUPS', "Viewer Groups")),
- new HeaderField('WhoCanEditHeader', _t('SiteConfig.EDITHEADER', "Who can edit pages on this site?"), 2),
- $editorsOptionsField = new OptionsetField("CanEditType"),
+ $editorsOptionsField = new OptionsetField("CanEditType", _t('SiteConfig.EDITHEADER', "Who can edit pages on this site?")),
$editorGroupsField = new TreeMultiselectField("EditorGroups", _t('SiteTree.EDITORGROUPS', "Editor Groups")),
- new HeaderField('WhoCanCreateTopLevelHeader', _t('SiteConfig.TOPLEVELCREATE', "Who can create pages in the root of the site?"), 2),
- $topLevelCreatorsOptionsField = new OptionsetField("CanCreateTopLevelType"),
+ $topLevelCreatorsOptionsField = new OptionsetField("CanCreateTopLevelType", _t('SiteConfig.TOPLEVELCREATE', "Who can create pages in the root of the site?")),
$topLevelCreatorsGroupsField = new TreeMultiselectField("CreateTopLevelGroups", _t('SiteTree.TOPLEVELCREATORGROUPS', "Top level creators"))
)
)
);
-
+
$viewersOptionsSource = array();
$viewersOptionsSource["Anyone"] = _t('SiteTree.ACCESSANYONE', "Anyone");
$viewersOptionsSource["LoggedInUsers"] = _t('SiteTree.ACCESSLOGGEDIN', "Logged-in users");
View
@@ -1842,16 +1842,14 @@ function getSettingsFields() {
)
),
$tabAccess = new Tab('Access',
- new HeaderField('WhoCanViewHeader',_t('SiteTree.ACCESSHEADER', "Who can view this page?"), 2),
$viewersOptionsField = new OptionsetField(
"CanViewType",
- ""
+ _t('SiteTree.ACCESSHEADER', "Who can view this page?")
),
$viewerGroupsField = new TreeMultiselectField("ViewerGroups", $this->fieldLabel('ViewerGroups')),
- new HeaderField('WhoCanEditHeader',_t('SiteTree.EDITHEADER', "Who can edit this page?"), 2),
$editorsOptionsField = new OptionsetField(
"CanEditType",
- ""
+ _t('SiteTree.EDITHEADER', "Who can edit this page?")
),
$editorGroupsField = new TreeMultiselectField("EditorGroups", $this->fieldLabel('EditorGroups'))
)

0 comments on commit 53a62e7

Please sign in to comment.