diff --git a/main/css/base.css b/main/css/base.css
index 39fe787804..a274be0729 100644
--- a/main/css/base.css
+++ b/main/css/base.css
@@ -2662,12 +2662,8 @@ div.admin_section h4 {
.question_no_answer {
background-color: #FFF7C0;
- padding: 5px 0px 5px 0px;
- margin: 5px 0px 5px 0px;
-}
-
-.exercise_reminder_container {
-
+ /* padding: 5px 0px 5px 0px; */
+ margin: 10px 0px 5px 0px;
}
.question_answer {
@@ -2687,26 +2683,16 @@ div.admin_section h4 {
width: 88%;
}
-.exercise_actions {
- background: #f5f5f5;
- margin-top: 18px;
- margin-bottom: 18px;
- padding: 17px 20px 18px 50px;
- border-top: 1px solid #ddd;
- -webkit-border-radius: 0 0 3px 3px;
- -moz-border-radius: 0 0 3px 3px;
- border-radius: 0 0 3px 3px;
-}
-
.exercise_save_now_button img {
position: relative;
- top: 4px;
+ top: 4px;
}
-.exercise_actions a, .exercise_actions div {
- margin-right:10px;
+
+.exercise_save_now_button {
+ margin-top:10px;
}
.exercise_save_now_button, .exercise_button{
- /* padding:10px; */
+ /* padding:5px; */
}
.red_alert {
@@ -2715,7 +2701,6 @@ div.admin_section h4 {
color:red;
}
-
#question_feedback {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php
index bd95a15acc..f5aa28f9ee 100644
--- a/main/exercice/exercise.class.php
+++ b/main/exercice/exercise.class.php
@@ -1570,65 +1570,50 @@ class Exercise {
$all_button = '';
if ($this->selectFeedbackType() == EXERCISE_FEEDBACK_TYPE_DIRECT && $this->type == ONE_PER_PAGE) {
- $html .='';
$html .='';
$html .= get_lang('ValidateAnswer').'';
- $html .='
';
-
+ $html .='
';
} else {
//User
if (api_is_allowed_to_session_edit()) {
if ($this->type == ALL_ON_ONE_PAGE || $nbrQuestions == $questionNum) {
if ($this->review_answers) {
$label = get_lang('ReviewQuestions');
- $class = 'a_button blue medium';
+ $class = 'btn btn-primary';
} else {
$label = get_lang('ValidateAnswers');
- $class = 'a_button green';
+ $class = 'btn btn-sucess';
}
} else {
$label = get_lang('NextQuestion');
- $class = 'a_button blue medium';
+ $class = 'btn btn-primary';
}
if ($this->type == ONE_PER_PAGE) {
if ($questionNum != 1) {
$prev_question = $questionNum - 2;
- $all_button .= ''.get_lang('PreviousQuestion').'';
+ $all_button .= ''.get_lang('PreviousQuestion').'';
}
//Next question
- $all_button .= ''.$label.'';
-
- //$all_button .= ' ';
+ $all_button .= ' '.$label.'';
$all_button .= ' ';
-
-
$html .= $all_button;
} else {
if ($this->review_answers) {
$all_label = get_lang('ReviewQuestions');
- $class = 'a_button blue medium';
+ $class = 'btn btn-primary';
} else {
$all_label = get_lang('ValidateAnswers');
- $class = 'a_button green';
+ $class = 'btn btn-sucess';
}
- $all_button = ''.$all_label.'';
- $all_button .= ' ';
-
+ $all_button = ' '.$all_label.'';
+ $all_button .= ' ';
$html .= $all_button;
- }
-
+ }
}
}
-
- $html = Display::span($html, array('class'=>'exercise_button'));
- return $html;
-
+ return $html;
}
/**
diff --git a/main/exercice/exercise_reminder.php b/main/exercice/exercise_reminder.php
index 0615db902d..c600dc2723 100644
--- a/main/exercice/exercise_reminder.php
+++ b/main/exercice/exercise_reminder.php
@@ -207,12 +207,12 @@ foreach ($question_list as $questionId) {
$attributes['checked'] = 1;
}
$label_attributes = array();
- $label_attributes['class'] = '';
+ $label_attributes['class'] = 'checkbox';
$label_attributes['for'] = $check_id;
//Check if the question doesn't have an answer
if (!in_array($questionId, $exercise_result)) {
- $label_attributes['class'] = "question_no_answer";
+ $label_attributes['class'] = "checkbox question_no_answer";
}
$checkbox = Display::input('checkbox', 'remind_list['.$questionId.']', '', $attributes);
@@ -225,20 +225,19 @@ foreach ($question_list as $questionId) {
} else {
$question_title = $counter.'. '.cut($objQuestionTmp->selectTitle(), 40);
}
- $question_title = Display::tag('label', $question_title, $label_attributes);
- $table .= Display::div($checkbox.$question_title, array('class'=>'exercise_reminder_item'));
+ $question_title = Display::tag('label', $checkbox.$question_title, $label_attributes);
+ $table .= Display::div($question_title, array('class'=>'exercise_reminder_item'));
} // end foreach() block that loops over all questions
-echo Display::div($table, array('class'=>'exercise_reminder_container'));
+echo Display::div($table, array('class'=>'span10'));
-$exercise_actions = Display::url(get_lang('ValidateAnswers'), 'javascript://', array('onclick'=>'final_submit();', 'class'=>'a_button green'));
-$exercise_actions .= Display::url(get_lang('ReviewQuestions'), 'javascript://', array('onclick'=>'review_questions();','class'=>'a_button white medium '));
+$exercise_actions = Display::url(get_lang('ValidateAnswers'), 'javascript://', array('onclick'=>'final_submit();', 'class'=>'btn btn-success'));
+$exercise_actions .= ' '.Display::url(get_lang('ReviewQuestions'), 'javascript://', array('onclick'=>'review_questions();','class'=>'btn'));
echo Display::div('', array('class'=>'clear'));
-
-echo Display::div($exercise_actions, array('class'=>'exercise_actions'));
+echo Display::div($exercise_actions, array('class'=>'form-actions'));
if ($origin != 'learnpath') {
diff --git a/main/exercice/exercise_submit.php b/main/exercice/exercise_submit.php
index be2ac52be1..c6c3f0a574 100644
--- a/main/exercice/exercise_submit.php
+++ b/main/exercice/exercise_submit.php
@@ -1012,17 +1012,14 @@ if (!empty($error)) {
if ($objExercise->type == ALL_ON_ONE_PAGE) {
$button = ''.get_lang('SaveForNow').'';
$button .= ' ';
- $exercise_actions .= Display::span($button, array('class'=>'exercise_save_now_button'));
+ $exercise_actions .= Display::div($button, array('class'=>'exercise_save_now_button'));
}
- if ($objExercise->review_answers) {
- $remind_question_div = Display::input('checkbox', 'remind_list['.$questionId.']', '', $attributes);
- $remind_question_div .= Display::tag('label', get_lang('ReviewQuestionLater'), array('for' =>'remind_list['.$questionId.']'));
- $exercise_actions .= Display::span($remind_question_div, array('class'=>'exercise_save_now_button'));
- }
-
- echo Display::div($exercise_actions, array('class'=>'exercise_actions'));
-
+ if ($objExercise->review_answers) {
+ $remind_question_div .= Display::tag('label', Display::input('checkbox', 'remind_list['.$questionId.']', '', $attributes).get_lang('ReviewQuestionLater'), array('class' => 'checkbox', 'for' =>'remind_list['.$questionId.']'));
+ $exercise_actions .= Display::div($remind_question_div, array('class'=>'exercise_save_now_button'));
+ }
+ echo Display::div($exercise_actions, array('class'=>'form-actions'));
echo '';
$i++;
diff --git a/main/exercice/overview.php b/main/exercice/overview.php
index 4bc5b58856..ef9a2c89d4 100644
--- a/main/exercice/overview.php
+++ b/main/exercice/overview.php
@@ -93,7 +93,7 @@ if (isset($exercise_stat_info['exe_id'])) {
$attempt_list = get_all_exercise_event_by_exe_id($exercise_stat_info['exe_id']);
}
-$exercise_url_button = Display::url($label, $exercise_url, array('class'=>'a_button blue bigger round'));
+$exercise_url_button = Display::url($label, $exercise_url, array('class'=>'btn btn-primary btn-large'));
$visible_return = $objExercise->is_visible($learnpath_id, $learnpath_item_id, null, false);