Browse Source

add icons and text help introduction course CT#7614

aragonc 9 years ago
parent
commit
8f0f09b8c0

+ 13 - 0
app/Resources/public/css/base.css

@@ -6143,6 +6143,19 @@ div#chat-remote-video video {
   margin: 20px 0px 20px;
   border-bottom: 1px solid #CCCCCC;
 }
+.help-course{
+  background-color: #EEEEEE;
+  color: #666;
+  border: 1px dashed #B0B0B0;
+  border-radius: 5px;
+  -moz-border-radius: 5px;
+  -webkit-border-radius: 5px;
+  padding: 1em;
+  margin-bottom: 1em;
+  margin-right: 5%;
+  margin-left: 5%;
+  text-align: center;
+}
 /* CSS NEW TOP ******************************************************************************/
 /* CSS Responsive */
 @media (min-width: 1025px) and (max-width: 1200px) {

+ 13 - 7
main/inc/introductionSection.inc.php

@@ -294,10 +294,10 @@ if ($intro_dispCommand) {
         // Displays "Add intro" commands
         $toolbar =  '<div class="btn-group pull-right" rol="group">';
         if (!empty ($GLOBALS['_cid'])) {
-            $toolbar .=  '<a class="btn btn-default" title="' . get_lang('AddIntro') . '" href="'.api_get_self().'?' . api_get_cidreq().'&amp;intro_cmdAdd=1">';
-            $toolbar .=   '<i class="fa fa-file-text"></i> ';
-            $toolbar .=  "</a>";
-            $toolbar .= $editIconButton;
+            $textIntro  =  '<a class="btn btn-default" title="' . get_lang('AddIntro') . '" href="'.api_get_self().'?' . api_get_cidreq().'&amp;intro_cmdAdd=1">';
+            $textIntro .=   '<i class="fa fa-file-text"></i> ';
+            $textIntro .=  "</a>";
+            $toolbar .= $textIntro . $editIconButton;
         } else {
             $toolbar .= '<a class="btn btn-default" href="' . api_get_self() . '?intro_cmdAdd=1">"' . get_lang('AddIntro') . '</a>';
             $toolbar .= $editIconButton;
@@ -306,7 +306,7 @@ if ($intro_dispCommand) {
 
     } else {
         // Displays "edit intro && delete intro" commands
-        $toolbar .=  '<div class="btn-group" rol="group">';
+        $toolbar .=  '<div class="btn-group pull-right" rol="group">';
         if (!empty ($GLOBALS['_cid'])) {
             $toolbar .=
                 '<a  class="btn btn-default" href="'.api_get_self().'?'.api_get_cidreq().'&amp;intro_cmdEdit=1" title="'.get_lang('Modify').'">
@@ -337,14 +337,20 @@ if ($intro_dispCommand) {
     }
 }
 
-$introduction_section .=  '<div class="col-md-12"><div class="page-course">';
+$introduction_section .=  '<div class="col-md-12">';
 
 if ($intro_dispDefault) {
     if (!empty($intro_content)) {
+        $introduction_section .='<div class="page-course">';
         $introduction_section .=  $intro_content;
+        $introduction_section .= '</div>';
+    }else{
+        $introduction_section .= '<div class="help-course">';
+        $introduction_section .= get_lang('AddCustomCourse').' ' . $textIntro ;
+        $introduction_section .= '</div>';
     }
 }
-$introduction_section .= '</div>';
+
 $introduction_section .= $toolbar;
 $introduction_section .= '</div>';
 

File diff suppressed because it is too large
+ 56 - 56
main/lang/spanish/trad4all.inc.php


Some files were not shown because too many files changed in this diff