Skip to content

Commit dc24b81

Browse files
author
David Monllao
committed
Merge branch 'MDL-61056-34-feedbackresponsenav' of git://github.com/mudrd8mz/moodle into MOODLE_34_STABLE
2 parents cff1f19 + 40e430e commit dc24b81

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

mod/feedback/show_entries.php

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,24 @@
119119
$anonresponsestable->get_reponse_navigation_links($completedrecord);
120120

121121
echo html_writer::start_div('response_navigation');
122-
echo $prevresponseurl ? html_writer::link($prevresponseurl, get_string('prev'), ['class' => 'prev_response']) : '';
123-
echo html_writer::link($returnurl, get_string('back'), ['class' => 'back_to_list']);
124-
echo $nextresponseurl ? html_writer::link($nextresponseurl, get_string('next'), ['class' => 'next_response']) : '';
122+
123+
$responsenavigation = [
124+
'col1content' => '',
125+
'col2content' => html_writer::link($returnurl, get_string('back'), ['class' => 'back_to_list']),
126+
'col3content' => '',
127+
];
128+
129+
if ($prevresponseurl) {
130+
$responsenavigation['col1content'] = html_writer::link($prevresponseurl, get_string('prev'), ['class' => 'prev_response']);
131+
}
132+
133+
if ($nextresponseurl) {
134+
$responsenavigation['col3content'] = html_writer::link($nextresponseurl, get_string('next'), ['class' => 'next_response']);
135+
}
136+
137+
echo $OUTPUT->render_from_template('core/columns-1to1to1', $responsenavigation);
125138
echo html_writer::end_div();
139+
126140
} else {
127141
// Print the list of responses.
128142
$courseselectform->display();

mod/feedback/styles.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,11 @@
8686
}
8787

8888
.path-mod-feedback .response_navigation a {
89-
display: inline-block;
89+
display: block;
9090
}
9191

9292
.path-mod-feedback .response_navigation a.back_to_list {
93-
margin: auto;
94-
float: right;
95-
left: -50%;
96-
position: relative;
93+
text-align: center;
9794
}
9895

9996
.path-mod-feedback .response_navigation .prev_response:before {
@@ -113,9 +110,9 @@
113110
}
114111

115112
.path-mod-feedback .response_navigation .next_response {
116-
float: right;
113+
text-align: right;
117114
}
118115

119116
.path-mod-feedback .response_navigation .prev_response {
120-
float: left;
117+
text-align: left;
121118
}

mod/feedback/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
$plugin->version = 2017111300; // The current module version (Date: YYYYMMDDXX)
27+
$plugin->version = 2017111301; // The current module version (Date: YYYYMMDDXX)
2828
$plugin->requires = 2017110800; // Requires this Moodle version
2929
$plugin->component = 'mod_feedback'; // Full name of the plugin (used for diagnostics)
3030
$plugin->cron = 0;

0 commit comments

Comments
 (0)