Fixing LP view due recent changes with Twig + imrproving buttons style

skala
Julio Montoya 14 years ago
parent 4713aeb855
commit 7a150d5ef7
  1. 26
      main/css/base.css
  2. 25
      main/css/base_chamilo.css
  3. 14
      main/newscorm/learnpath.class.php
  4. 2
      main/template/default/layout/show_header.tpl

@ -3635,4 +3635,30 @@ a.forum_group_link {
#main_content .course_item {
padding: 5px 0px 5px 0px;
}
/* actions */
.actions_lp {
background:#F8F8F8;
height: 40px;
padding-left: -17px;
margin: 5px 2px 1px 12px;
vertical-align:middle;
width: 90%;
}
.actions_lp .btn-group {
margin-left: 25px;
}
.actions_lp img {
vertical-align:middle;
}
.actions_lp a {
}
.actions_lp span {
margin-right: 10px;
vertical-align:middle;
}
.actions_lp form {
margin-right: 10px;
vertical-align:middle;
}

@ -1500,30 +1500,7 @@ Document title
width: 75%;
float:left;
}
/* actions */
.actions_lp {
background:#F8F8F8;
height: 40px;
padding-left: -17px;
margin: 5px 2px 1px 12px;
vertical-align:middle;
width: 90%;
}
.actions_lp img {
vertical-align:middle;
}
.actions_lp a {
margin-right: 10px;
vertical-align:middle;
}
.actions_lp span {
margin-right: 10px;
vertical-align:middle;
}
.actions_lp form {
margin-right: 10px;
vertical-align:middle;
}
.actions {
background:#efefef;
border:1px solid #ccc;

@ -2685,18 +2685,18 @@ class learnpath {
if ($this->get_lp_session_id() == api_get_session_id()) {
$html .= '<div id="actions_lp" class="actions_lp">';
if ($display_action_links_with_icons) {
$html .= '<div style = "text-align:center;">';
$html .= '<div class = "btn-group">';
$html .= "<a href='lp_controller.php?" . api_get_cidreq() . "&amp;action=build&amp;lp_id=" . $this->lp_id . "' target='_parent'>" . Display :: return_icon('build_learnpath.png', get_lang('Build'),'',ICON_SIZE_MEDIUM)."</a>";
$html .= "<a href='lp_controller.php?" . api_get_cidreq() . "&amp;action=admin_view&amp;lp_id=" . $this->lp_id . "' target='_parent'>" . Display :: return_icon('move_learnpath.png', get_lang('BasicOverview'),'',ICON_SIZE_MEDIUM)."</a>";
$html .= '<span>' . Display :: return_icon('view_remove_na.png', get_lang('Display'),'',ICON_SIZE_MEDIUM).'</span><br />';
//$html .= '<span>' . Display :: return_icon('view_remove_na.png', get_lang('Display'),'',ICON_SIZE_MEDIUM).'</span><br />';
$html .= '<a href="lp_controller.php?' . api_get_cidreq() . '">'. get_lang('ReturnToLPList') . '</a>';
$html .= '</div>';
} else {
$html .= '<div style = "text-align:center;">';
$html .= "<a href='lp_controller.php?" . api_get_cidreq() . "&amp;gradebook=$gradebook&amp;action=build&amp;lp_id=" . $this->lp_id . "' target='_parent'>" . get_lang('Build') . "</a>";
$html .= "<a href='lp_controller.php?" . api_get_cidreq() . "&amp;action=admin_view&amp;lp_id=" . $this->lp_id . "' target='_parent'>" . get_lang('BasicOverview') . "</a>";
$html .= '<span><b>' . get_lang('Display') . '</b></span><br />';
$html .= '<a href="lp_controller.php?' . api_get_cidreq() . '">'. get_lang('ReturnToLPList') . '</a>';
$html .= '<div class="btn-group">';
$html .= "<a class='btn' href='lp_controller.php?" . api_get_cidreq() . "&amp;gradebook=$gradebook&amp;action=build&amp;lp_id=" . $this->lp_id . "' target='_parent'>" . get_lang('Build') . "</a>";
$html .= "<a class='btn' href='lp_controller.php?" . api_get_cidreq() . "&amp;action=admin_view&amp;lp_id=" . $this->lp_id . "' target='_parent'>" . get_lang('BasicOverview') . "</a>";
//$html .= '<span><b>' . get_lang('Display') . '</b></span><br />';
$html .= '<a class="btn" href="lp_controller.php?'.api_get_cidreq().'">'.get_lang('Back').'</a>';
$html .= '</div>';
}
$html .= '</div>';

@ -3,7 +3,7 @@
for backward compatibility we suppose that the default layout is one column which means using a div with class span12
#}
{% include "default/layout/main_header.tpl" %}
{% if show_header is not null%}
{% if show_header == 1 %}
{% if plugin_content_top is not null %}
<div id="plugin_content_top" class="span12">
{{ plugin_content_top }}

Loading…
Cancel
Save