update tpl and css newscorm

1.10.x
aragonc 10 years ago
parent 3bf3fae061
commit 1517b6a84c
  1. 10
      main/css/base.css
  2. 2
      main/newscorm/learnpath.class.php
  3. 17
      main/newscorm/lp_edit.php

@ -5170,7 +5170,7 @@ i.size-32.icon-new-work{
font-size: 16px;
font-weight: normal;
}
/* Open Badges */
/* CSS BASE BOOSTRAP 3 */
.openbadges-introduction{
line-height: 30px;
margin-bottom: 30px;
@ -5466,4 +5466,12 @@ i.size-32.icon-new-work{
line-height: 18px;
font-size: 12px;
color: #666;
}
.menu-column .nav li a{
padding: 5px;
font-size: 12px;
}
.menu-column .nav li a img{
vertical-align: bottom;
margin-right: 5px;
}

@ -8402,7 +8402,7 @@ class learnpath
ORDER BY display_order ";
$rs = Database::query($sql);
$return = '';
$return .= '<select name="prerequisites" >';
$return .= '<select name="prerequisites" class="form-control">';
$return .= '<option value="0">'.get_lang('None').'</option>';
if (Database::num_rows($rs) > 0) {
while ($row = Database::fetch_array($rs)) {

@ -161,8 +161,12 @@ $expired_on = $_SESSION['oLP'] ->expired_on;
$publicated_on = $_SESSION['oLP'] ->publicated_on;
// Prerequisites
$form->addElement('html', '<div class="control-group"><label class="control-label">'.get_lang('LearnpathPrerequisites').'</label>
<div class="controls">'.$_SESSION['oLP']->display_lp_prerequisites_list().' <span class="help-block">'.get_lang('LpPrerequisiteDescription').'</span></div></div>');
$form->addElement('html','<div class="form-group">');
$items = $_SESSION['oLP']->display_lp_prerequisites_list();
$form->addElement('html','<label class="col-md-2">'.get_lang('LearnpathPrerequisites').'</label>');
$form->addElement('html','<div class="col-md-10">');
$form->addElement('html',$items);
$form->addElement('html', '<div class="help-block">'.get_lang('LpPrerequisiteDescription').'</div></div></div>');
//Start date
$form->addElement('checkbox', 'activate_start_date_check', null,get_lang('EnableStartTime'), array('onclick' => 'activate_start_date()'));
@ -201,7 +205,8 @@ if ($enableLpExtraFields) {
}
//Submit button
$form->addElement('style_submit_button', 'Submit',get_lang('SaveLPSettings'),'class="save"');
//$form->addElement('style_submit_button', 'Submit',get_lang('SaveLPSettings'),'class="save"');
$form->addButtonSave(get_lang('SaveLPSettings'));
// Hidden fields
$form->addElement('hidden', 'action', 'update_lp');
@ -230,14 +235,14 @@ echo $_SESSION['oLP']->build_action_menu();
echo '<div class="row">';
if ($_SESSION['oLP']->get_hide_toc_frame() == 1) {
echo '<div class="span12">';
echo '<div class="col-md-12">';
$form -> display();
echo '</div>';
} else{
echo '<div class="span6">';
echo '<div class="col-md-8">';
$form -> display();
echo '</div>';
echo '<div class="span6" align="center">';
echo '<div class="col-md-4" align="center">';
echo '<img src="../img/course_setting_layout.png" />';
echo '</div>';
}

Loading…
Cancel
Save