[TASK] Streamline icons for "new" actions 73/53073/3
authorDaniel Windloff <daniel.jc.windloff@googlemail.com>
Sat, 3 Jun 2017 08:14:00 +0000 (10:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 3 Jun 2017 10:17:00 +0000 (12:17 +0200)
Usage:
- actions-add-placeholder
Link to wizards / controller where the selection
between serveral kinds of new records can be made
- actions-add
Link to creation form for all records
except pages (EditDocumentController)
-actions-page-new
Link to creation form for page record
-actions-document-new
Link to create multiple new records

Resolves: #81428
Releases: master
Change-Id: I10ced54f5cd8c09c095a699fd0994a9dd5fa0f05
Reviewed-on: https://review.typo3.org/53073
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/beuser/Classes/Controller/BackendUserActionController.php
typo3/sysext/filelist/Classes/Controller/FileListController.php
typo3/sysext/form/Classes/Controller/FormManagerController.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
typo3/sysext/scheduler/Resources/Private/Templates/Backend/SchedulerModule/InfoScreen.html

index 57b394d..4b51e6d 100644 (file)
@@ -583,7 +583,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
 
                     $link = '<a href="' . htmlspecialchars($url) . '" title="'
                         . htmlspecialchars($this->getLanguageService()->getLL('newContentElement')) . '" class="btn btn-default btn-sm">'
-                        . $this->iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL)->render()
+                        . $this->iconFactory->getIcon('actions-add-placeholder', Icon::SIZE_SMALL)->render()
                         . ' '
                         . htmlspecialchars($this->getLanguageService()->getLL('content')) . '</a>';
                 }
index e184c6e..fe9bce3 100644 (file)
@@ -134,7 +134,7 @@ class BackendUserActionController extends ActionController
                 $parameters = GeneralUtility::explodeUrl2Array('edit[be_users][0]=new&returnUrl=' . $returnUrl);
                 $addUserLink = BackendUtility::getModuleUrl('record_edit', $parameters);
                 $title = $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newRecordGeneral');
-                $icon = $this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-document-new', Icon::SIZE_SMALL);
+                $icon = $this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-add', Icon::SIZE_SMALL);
                 $addUserButton = $buttonBar->makeLinkButton()
                     ->setHref($addUserLink)
                     ->setTitle($title)
@@ -166,7 +166,7 @@ class BackendUserActionController extends ActionController
             $parameters = GeneralUtility::explodeUrl2Array('edit[be_groups][0]=new&returnUrl=' . $returnUrl);
             $addUserLink = BackendUtility::getModuleUrl('record_edit', $parameters);
             $title = $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newRecordGeneral');
-            $icon = $this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-document-new', Icon::SIZE_SMALL);
+            $icon = $this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-add', Icon::SIZE_SMALL);
             $addUserGroupButton = $buttonBar->makeLinkButton()
                 ->setHref($addUserLink)
                 ->setTitle($title)
index 5a41e13..275fb54 100644 (file)
@@ -621,7 +621,7 @@ class FileListController extends ActionController
                     ]
                 ))
                 ->setTitle($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:cm.new'))
-                ->setIcon($iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL));
+                ->setIcon($iconFactory->getIcon('actions-add-placeholder', Icon::SIZE_SMALL));
             $buttonBar->addButton($newButton, ButtonBar::BUTTON_POSITION_LEFT, 1);
         }
 
index 42035ba..dd65f7f 100644 (file)
@@ -443,7 +443,7 @@ class FormManagerController extends AbstractBackendController
                 ->setDataAttributes(['identifier' => 'newForm'])
                 ->setHref('#')
                 ->setTitle($this->getLanguageService()->sL('LLL:EXT:form/Resources/Private/Language/Database.xlf:formManager.create_new_form'))
-                ->setIcon($this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-document-new', Icon::SIZE_SMALL));
+                ->setIcon($this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-add', Icon::SIZE_SMALL));
             $buttonBar->addButton($addFormButton, ButtonBar::BUTTON_POSITION_LEFT);
         }
     }
index a6b9866..25489c0 100644 (file)
@@ -270,7 +270,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
                 $onClick = htmlspecialchars('return jumpExt(' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('db_new', ['id' => $this->id])) . ');');
                 $buttons['new_record'] = '<a href="#" onclick="' . $onClick . '" title="'
                     . htmlspecialchars($lang->getLL('newRecordGeneral')) . '">'
-                    . $this->iconFactory->getIcon('actions-add', Icon::SIZE_SMALL)->render() . '</a>';
+                    . $this->iconFactory->getIcon('actions-add-placeholder', Icon::SIZE_SMALL)->render() . '</a>';
             }
             // If edit permissions are set, see
             // \TYPO3\CMS\Core\Authentication\BackendUserAuthentication
@@ -388,7 +388,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
                     ->setHref('#')
                     ->setOnClick($onClick)
                     ->setTitle($lang->getLL('newRecordGeneral'))
-                    ->setIcon($this->iconFactory->getIcon('actions-document-new', Icon::SIZE_SMALL));
+                    ->setIcon($this->iconFactory->getIcon('actions-add-placeholder', Icon::SIZE_SMALL));
                 $buttonBar->addButton($newRecordButton, ButtonBar::BUTTON_POSITION_LEFT, 10);
             }
             if (!in_array($this->pageRow['doktype'], $noViewDokTypes)) {
index 516259f..9f1c005 100644 (file)
@@ -1524,7 +1524,7 @@ class SchedulerModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClas
             if ($this->MOD_SETTINGS['function'] === 'scheduler' && !empty($this->getRegisteredClasses())) {
                 $addButton = $buttonBar->makeLinkButton()
                     ->setTitle($this->getLanguageService()->getLL('action.add'))
-                    ->setIcon($this->moduleTemplate->getIconFactory()->getIcon('actions-document-new', Icon::SIZE_SMALL))
+                    ->setIcon($this->moduleTemplate->getIconFactory()->getIcon('actions-add', Icon::SIZE_SMALL))
                     ->setHref($this->moduleUri . '&CMD=add');
                 $buttonBar->addButton($addButton, ButtonBar::BUTTON_POSITION_LEFT, 2);
             }
index b1a71b4..0c018ab 100644 (file)
@@ -32,7 +32,7 @@
                                                <div class="btn-group" role="group">
                                                        <span class="btn btn-default">
                                                                <a href="{s:moduleLink(controller:'scheduler', action: 'add', arguments: '{class: class}')}" title="{f:translate(key:'LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:new')}">
-                                                                       <core:icon identifier="actions-document-new" />
+                                                                       <core:icon identifier="actions-add" />
                                                                </a>
                                                        </span>
                                                </div>