Commit 09c3a61b authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "split lists into columns in upload csv - Bug #1465107"

parents 3fb14ccd 1ca9ae6d
......@@ -363,7 +363,7 @@ $editroles .= "<div class=cl></div></ul>\n";
$grouptypes .= get_string('uploadgroupcsveditrolesdescription', 'admin', get_help_icon('core', 'groups', 'editgroup', 'editroles'), $editroles);
$fields = "<ul class=fieldslist>\n";
$fields = "<ul class='fieldslist column-list'>\n";
foreach ($ALLOWEDKEYS as $type) {
$helplink = '';
if ($type == 'public' || $type == 'usersautoadded') {
......
......@@ -621,7 +621,7 @@ function uploadcsv_submit(Pieform $form, $values) {
// Get a list of all profile fields, to inform the user on what fields they can
// put in their file.
natsort($ALLOWEDKEYS);
$fields = "<ul class=fieldslist>\n";
$fields = "<ul class='fieldslist column-list'>\n";
foreach ($ALLOWEDKEYS as $type) {
if ($type == 'firstname' || $type == 'lastname' || $type == 'email' || $type == 'username' || $type == 'password') {
continue;
......
......@@ -184,3 +184,30 @@ h4.list-group-item-heading {
}
}
}
.column-list {
-moz-column-count: 3;
-moz-column-gap: 20px;
-webkit-column-count: 3;
-webkit-column-gap: 20px;
column-count: 3;
column-gap: 20px;
@media (max-width: $screen-sm-min) {
-moz-column-count: 2;
-moz-column-gap: 20px;
-webkit-column-count: 2;
-webkit-column-gap: 20px;
column-count: 2;
column-gap: 20px;
}
}
.column-list li {
list-style-position: inside;
span.help {
font-size: inherit;
.icon {
font-size: 16px;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment