[TASK] Improve styling of sys_action "Create Backend User" 46/30646/3
authorLorenz Ulrich <lorenz.ulrich@visol.ch>
Tue, 10 Jun 2014 15:38:51 +0000 (17:38 +0200)
committerXavier Perseguers <xavier@typo3.org>
Wed, 11 Jun 2014 09:26:47 +0000 (11:26 +0200)
The styling of sys_action "Create Backend User" is outdated
and should be slightly improved to enhance usability of
this module.

Releases: 6.2
Resolves: #59338
Change-Id: Ifaba21a78687589af9ba0decad8bc2b9fdc4d29d
Reviewed-on: https://review.typo3.org/30646
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/sys_action/Classes/ActionTask.php
typo3/sysext/sys_action/locallang.xlf
typo3/sysext/taskcenter/res/mod_styles.css

index 2bfac5d..8dff0d4 100644 (file)
@@ -286,7 +286,7 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
                $loadDB->start($vars['db_mountpoints'], 'pages');
                $content .= '<form action="" method="post" enctype="multipart/form-data">
                                                <fieldset class="fields">
-                                                       <legend>General fields</legend>
+                                                       <legend>' . $GLOBALS['LANG']->getLL('action_t1_legend_generalFields') . '</legend>
                                                        <div class="row">
                                                                <label for="field_disable">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_general.xlf:LGL.disable') . '</label>
                                                                <input type="checkbox" id="field_disable" name="data[disable]" value="1" class="checkbox" ' . ($vars['disable'] == 1 ? ' checked="checked" ' : '') . ' />
@@ -309,7 +309,7 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
                                                        </div>
                                                </fieldset>
                                                <fieldset class="fields">
-                                                       <legend>Configuration</legend>
+                                                       <legend>' . $GLOBALS['LANG']->getLL('action_t1_legend_configuration') . '</legend>
 
                                                        <div class="row">
                                                                <label for="field_usergroup">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_tca.xlf:be_users.usergroup') . '</label>
@@ -414,9 +414,9 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
                // Link to delete the user record
                $onClick = ' onClick="return confirm(' . GeneralUtility::quoteJSvalue($GLOBALS['LANG']->getLL('lDelete_warning')) . ');"';
                $link .= '
-                               <a href="' . htmlspecialchars(($href . '&delete=1')) . '" ' . $onClick . '>
-                                       <img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/delete_record.gif') . ' alt="" />
-                               </a>';
+                               <a href="' . htmlspecialchars(($href . '&delete=1')) . '" ' . $onClick . '>'
+                                       . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-edit-delete') .
+                               '</a>';
                return $link;
        }
 
index 3cc82c9..33f3f2f 100644 (file)
                        <trans-unit id="action_t1_listOfUsers" xml:space="preserve">
                                <source>List of backend users</source>
                        </trans-unit>
+                       <trans-unit id="action_t1_legend_generalFields">
+                               <source>General fields</source>
+                       </trans-unit>
+                       <trans-unit id="action_t1_legend_configuration">
+                               <source>Configuration</source>
+                       </trans-unit>
                        <trans-unit id="action_BEu_db_mount" xml:space="preserve">
                                <source>Pagetree starting points</source>
                        </trans-unit>
index bc8cebd..b3b1570 100644 (file)
@@ -65,6 +65,7 @@ body#ext-taskcenter-task-index-php h3 {
        height: 23px;
        width: 23px;
 }
+
 #taskcenter-menu .image img {
        margin: 3px 0 0 1px;
 }
@@ -92,7 +93,6 @@ body#ext-taskcenter-task-index-php h3 {
        cursor: move;
 }
 
-
 #taskcenter-menu .link {
        border: 1px solid #adadad;
        border-width: 1px 1px 0;
@@ -100,7 +100,7 @@ body#ext-taskcenter-task-index-php h3 {
        display: block;
 }
 
-#taskcenter-menu .t3-row-header a{
+#taskcenter-menu .t3-row-header a {
        float: none;
 }
 
@@ -129,7 +129,6 @@ body#ext-taskcenter-task-index-php h3 {
        border: 0;
 }
 
-
 #taskcenter-menu .content ul li a {
        display: block;
        line-height: 16px;
@@ -148,10 +147,12 @@ body#ext-taskcenter-task-index-php h3 {
        background-image: url(list-item-act.gif);
 }
 
-
-
 /* ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- */
 /* content section */
+#taskcenter-item {
+       margin-bottom: 20px;
+}
+
 #taskcenter-item ul {
        padding: 5px 0 5px 5px;
        margin: 0;
@@ -193,14 +194,21 @@ body#ext-taskcenter-task-index-php h3 {
        margin-top: 2px;
 }
 
-
 /* ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- */
 /* forms */
+#taskcenter-item fieldset {
+       padding: 0;
+}
+
 #taskcenter-item fieldset.fields legend {
        font-weight: bold;
        border-bottom: 1px solid #ccc;
        width: 100%;
-       padding: 0 0 2px 20px;
+       padding: 0 0 2px 0;
+}
+
+#taskcenter-item form {
+       padding: 0;
 }
 
 #taskcenter-item fieldset.fields {
@@ -208,22 +216,34 @@ body#ext-taskcenter-task-index-php h3 {
 }
 
 #taskcenter-item fieldset.fields .row {
-       width: 350px;
+       width: 420px;
        clear: both;
        padding: 5px 0;
 }
 
 #taskcenter-item fieldset.fields label {
-       width: 120px;
+       width: 150px;
        display: block;
        float: left;
 }
 
 #taskcenter-item fieldset.fields select {
-       width: 170px;
+       width: 215px;
+       height: 120px;
+       margin-right: 5px;
+       resize: both;
+}
+
+#taskcenter-item fieldset.fields input {
+       width: 200px;
 }
 
 #taskcenter-item fieldset.fields input[type=checkbox] {
        width: 16px;
        text-align: left;
 }
+
+#taskcenter-item fieldset.fields input[type=submit] {
+       margin-left: 150px;
+       width: 215px;
+}