liquid_feedback_frontend
changeset 1742:9f96b7e6e5f2
Changed layout of survey
author | bsw |
---|---|
date | Mon Oct 11 10:39:23 2021 +0200 (2021-10-11) |
parents | 772c18d87b54 |
children | 3d61fa0d6474 |
files | app/main/survey/participate.lua static/lf4.css |
line diff
1.1 --- a/app/main/survey/participate.lua Mon Oct 11 10:38:04 2021 +0200 1.2 +++ b/app/main/survey/participate.lua Mon Oct 11 10:39:23 2021 +0200 1.3 @@ -25,21 +25,13 @@ 1.4 end 1.5 end 1.6 1.7 -ui.title(_"Survey") 1.8 +ui.title(survey.title) 1.9 ui.grid{ content = function() 1.10 ui.cell_main{ content = function() 1.11 1.12 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp survey" }, content = function() 1.13 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() 1.14 - ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = survey.title } 1.15 ---[[ 1.16 - ui.container{ 1.17 - content = _( 1.18 - "This survey closes in #{closing}.", 1.19 - { closing = format.interval_text(survey.time_left) } 1.20 - ) 1.21 - } 1.22 ---]] 1.23 + ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = question.question } 1.24 end } 1.25 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() 1.26 if survey_member.finished then 1.27 @@ -53,7 +45,6 @@ 1.28 } 1.29 return 1.30 else 1.31 - ui.heading{ level = 2, content = question.question } 1.32 if question.description then 1.33 ui.container{ content = question.description } 1.34 end
2.1 --- a/static/lf4.css Mon Oct 11 10:38:04 2021 +0200 2.2 +++ b/static/lf4.css Mon Oct 11 10:39:23 2021 +0200 2.3 @@ -741,11 +741,6 @@ 2.4 margin-top: 0; 2.5 } 2.6 2.7 -.survey h2 { 2.8 - font-size: 20px; 2.9 - line-height: 24px; 2.10 -} 2.11 - 2.12 .trace_list { 2.13 margin-left: 10px; 2.14 list-style-type: none;