View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 07334 | Bug reports | Survey editing | public | 2013-02-26 10:53 | 2018-02-16 15:53 |
| Reporter | ottigerb | Assigned To | |||
| Priority | normal | Severity | partial_block | ||
| Status | closed | Resolution | fixed | ||
| Summary | 07334: redesign - template engine: {TAGS} | ||||
| Description | Hi, your Head of Support (Marcel M.) told me, that you are planning to redesign the template engine. In this scenario I would recommend the following: Current: In the current templates we are using a lot of {TAGS} like {NAVIGATOR}, {SAVE}, {SURVEYDESCRIPTION} and so on. Those {TAGS} contains some HTML/CSS Code too. From a template perspective – the template is unable to customize this specific code without touching system files. Problem: I have tried to make a bootstrap theme optimized for mobiles. This template does look incomplete with the lack described above. Hope you will find a nice solution! Keep on going! Hope to have a nice bootstrapped mobile template soon. If I can help you – give sing! | ||||
| Tags | No tags attached. | ||||
| Bug heat | 12 | ||||
| Complete LimeSurvey version number (& build) | 130219 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | - | ||||
| Server OS (if known) | - | ||||
| Webserver software & version (if known) | - | ||||
| PHP Version | - | ||||
| Git branch / Pull Request URL | |||||
|
Sam, this ticket was created to discuss how to best deal with these placeholders when overworking the template engine. So please share your thoughts. |
|
|
Hi ottiger, The template engine we will be using is Twig. (It has already been implemented in the 2.2 branch). Since Twig supports logical expressions, we are moving all rendering decisions to the template itself. This will allow you to change almost any output created by limesurvey to suit your needs. In the future, question objects will also use twig templates to render themselves and you will be able to overwrite these twig templates with your custom ones allowying you to change the appearance of individual questions at the most detailed level possible! |
|
|
LimeSurvey is not bootsrap ready. Not for the css, it's not the problme (for this: just copy/paste/adapt some css from bootstrap : apply it to LS included class). But for js: bootsrap use .on, included in jquery 1.7. Update to 1.8 fix this problem. For 1.9 : need some fix in admin part actually. For template issue, what is needed, for example submit button: survey-template/submit.pstl |
|
|
We are currently on jquery 1.9 |
|
|
Great, thank you sammousa :) It's a discusion topic (for 2.1or2.2 i think) then: Think we have to have a "global default twig" for all part, and replaced by plugin or user template . Did you think it can be done and it's a good idea ? |
|
|
jquery 1.9 - sounds great! Will try to tweak the template again - to make it as bootstrapped as possible! Any progress on this: redesign - template engine? |
|
|
a lot of progress indeed: |
|
|
Twigged |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-02-26 10:53 | ottigerb | New Issue | |
| 2013-02-26 11:43 | Mazi | Assigned To | => sammousa |
| 2013-02-26 11:43 | Mazi | Status | new => assigned |
| 2013-02-26 11:43 | Mazi | Note Added: 24287 | |
| 2013-02-26 11:44 | Mazi | Issue Monitored: c_schmitz | |
| 2013-02-26 11:44 | Mazi | Issue Monitored: DenisChenu | |
| 2013-02-26 12:13 | sammousa | Note Added: 24288 | |
| 2013-02-26 14:33 | DenisChenu | Note Added: 24289 | |
| 2013-03-05 11:18 | c_schmitz | Project | Bug reports => @10@ |
| 2013-03-18 10:29 | sammousa | Note Added: 24759 | |
| 2013-03-18 10:54 | DenisChenu | Note Added: 24762 | |
| 2013-05-28 11:04 | ottigerb | Note Added: 25401 | |
| 2017-01-18 14:53 | c_schmitz | Assigned To | sammousa => LouisGac |
| 2017-01-18 14:53 | c_schmitz | Product Version | 2.00+ => |
| 2017-01-18 15:18 |
|
Note Added: 42753 | |
| 2017-01-18 15:26 | DenisChenu | Issue End Monitor: DenisChenu | |
| 2017-04-25 11:51 |
|
Status | assigned => resolved |
| 2017-04-25 11:51 |
|
Resolution | open => fixed |
| 2017-04-25 11:51 |
|
Note Added: 43443 | |
| 2018-02-16 15:53 | c_schmitz | Status | resolved => closed |
| 2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |