liquid_feedback_frontend

changeset 1470:854d88aef250

Updated button design on admin unit and area
author bsw
date Thu Oct 18 17:42:09 2018 +0200 (2018-10-18)
parents 914611dc446b
children 4665754cc5ab
files app/main/admin/area_show.lua app/main/admin/unit_edit.lua
line diff
     1.1 --- a/app/main/admin/area_show.lua	Thu Oct 18 17:41:02 2018 +0200
     1.2 +++ b/app/main/admin/area_show.lua	Thu Oct 18 17:42:09 2018 +0200
     1.3 @@ -74,9 +74,15 @@
     1.4                  ui.field.text{    label = _"Admission qourum factor", name = "quorum_factor", value = hint and 2 or nil }
     1.5                  slot.put("<br /><br />")
     1.6                  ui.field.boolean{ label = _"Active?",     name = "active", value = hint and true or nil }
     1.7 -                ui.submit{ text = _"update area" }
     1.8 +                ui.submit{
     1.9 +                  attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" },
    1.10 +                  text = _"update area"
    1.11 +                }
    1.12                  slot.put(" ")
    1.13 -                ui.link{ module = "admin", view = "index", content = _"cancel" }
    1.14 +                ui.link{
    1.15 +                  attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" },
    1.16 +                  module = "admin", view = "index", content = _"cancel"
    1.17 +                }
    1.18                end )
    1.19              end )
    1.20            end
     2.1 --- a/app/main/admin/unit_edit.lua	Thu Oct 18 17:41:02 2018 +0200
     2.2 +++ b/app/main/admin/unit_edit.lua	Thu Oct 18 17:42:09 2018 +0200
     2.3 @@ -50,9 +50,15 @@
     2.4                ui.field.boolean{  label = _"Active?",      name = "active", value = hint and true or nil }
     2.5  
     2.6                slot.put("<br />")
     2.7 -              ui.submit{         text  = _"update unit" }
     2.8 +              ui.submit{
     2.9 +                attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" },
    2.10 +                text  = _"update unit" 
    2.11 +              }
    2.12                slot.put(" ")
    2.13 -              ui.link{ module = "admin", view = "index", content = _"cancel" }
    2.14 +              ui.link{ 
    2.15 +                attr = { class = "mdl-button mdl-js-button" },
    2.16 +                module = "admin", view = "index", content = _"cancel"
    2.17 +              }
    2.18              end )
    2.19            end
    2.20          }

Impressum / About Us