Need user search view checkbox type as a list

Re: Need user search view checkbox type as a list

by William Lu -
Number of replies: 1
Picture of Particularly helpful Moodlers

Hi Mike,

I second Tracey, your CSS works for me as well. Thank you very much for sharing.

I simplified your CSS to 

.vertical input[type="checkbox"]+label {
display: inline-block;
width: 95%;
max-width: 600px; 
}

In the 'Advanced search template' simplified to:

<td class="template-token vertical">checkview</td>

It still works fine. I assume that the 

input[type="checkbox"]+label 

and

class="template-token

are key points to make the magic works. Am I right?

In reply to William Lu

Re: Need user search view checkbox type as a list

by Zabelle Motte -
Picture of Particularly helpful Moodlers

Hello,

We are using Moodle 2.9.4+ and ther is still a problem with database checkbox presentation, but only in search tab.

It seems the template associated with the add data form has been corrected while the search form hasn't been corrected.

Here is the working css for us :

td.template-token.cell.c1.lastcol input[type="checkbox"]+label {
display: inline-block;
width: 95%;
}
td.template-token.cell.c1.lastcol {
max-width: 600px;
}
.boxaligncenter td.template-token.cell.c1.lastcol input[type="checkbox"]+label {
display: inline;
}

The last command suppress the inline-block style in the new data form.

With great thanks to the database developpers team, that is my prefered Moodle activity wink


Kisses

Zabelle


Average of ratings: Useful (1)