How to get beautiful tableless templates ?

How to get beautiful tableless templates ?

از Philip Siwinski در
Number of replies: 3

Hi,

I'm wondering why, in 2013, Database forms / templates are ugly and still built using tables...

I wish to build nice forms using Bootstrap framework or any other css solution but I'm not a developer.

If I add the bootstrap in <head> using 'Additionnal HTML' Moodle setting, the whole theme will be affected.

How to include the bootstrap css only for the Database templates ?

 

میانگین امتیازات:  -
In reply to Philip Siwinski

Re: How to get beautiful tableless templates ?

از AL Rachels در
عکس Core developers عکس Particularly helpful Moodlers عکس Plugin developers عکس Testers

Hi Philippe,

Which version of Moodle are you using? My Moodles (1.9.19+, 2.3.4+, and 2.4.1+) all let me create forms without using tables. The default tables just make it a little easier to line things up and add various colored backgrounds. Even though I haven't used it, Moodle 2.3 and 2.4 also include a CSS template with the capability to define local CSS styles for the other templates. It is one of the the options when you click on the Templates tab. There is also a Javascript template available.

If you use Itamar Tzadok's Dataform, he even includes a drag and drop area for the CSS template.

HTH,

AL

In reply to AL Rachels

Re: How to get beautiful tableless templates ?

از Philip Siwinski در

Hi AL,

I'm using Moodle 2.4.1+ and I understand that I could create a template to replace the default one in the database activity but I wonder if there is an easy way to do it.

I wonder if there are already made CSS or js templates we could use...?

Is the Dataform activity meant to replace the Database activity ?

I dont understand how to use it within the Database activity...

Thanks a lot for helping لبخند

Philippe

In reply to Philip Siwinski

Re: How to get beautiful tableless templates ?

از AL Rachels در
عکس Core developers عکس Particularly helpful Moodlers عکس Plugin developers عکس Testers

Hi Pilippe,

I don't think Dataform is meant to replace the Database activity. Instead it can do everything Database can plus a whole lot more because of the extra field types included in it. When you install Dataform, it is totally separate from the DB activity.

As for already made CSS or js templates, I don't know if there are any available and I personaly have not tried any in the DB activity yet. I just don't have that many database activities in use and I just never seem to find the time to experiment with it. I would suggest making a simple DB activity, and then try playing around with the CSS template and see what you can come up with.

The documentation for Moodle 2.4 for the CSS template doesn't have any examples but the Javascript template does. Check it here.

AL