# HG changeset patch # User bsw # Date 1539877329 -7200 # Node ID 854d88aef250ac4371692a63f3bfbd686f088b3e # Parent 914611dc446b811ad48fd5702504d066619f622a Updated button design on admin unit and area diff -r 914611dc446b -r 854d88aef250 app/main/admin/area_show.lua --- a/app/main/admin/area_show.lua Thu Oct 18 17:41:02 2018 +0200 +++ b/app/main/admin/area_show.lua Thu Oct 18 17:42:09 2018 +0200 @@ -74,9 +74,15 @@ ui.field.text{ label = _"Admission qourum factor", name = "quorum_factor", value = hint and 2 or nil } slot.put("

") ui.field.boolean{ label = _"Active?", name = "active", value = hint and true or nil } - ui.submit{ text = _"update area" } + ui.submit{ + attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" }, + text = _"update area" + } slot.put(" ") - ui.link{ module = "admin", view = "index", content = _"cancel" } + ui.link{ + attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" }, + module = "admin", view = "index", content = _"cancel" + } end ) end ) end diff -r 914611dc446b -r 854d88aef250 app/main/admin/unit_edit.lua --- a/app/main/admin/unit_edit.lua Thu Oct 18 17:41:02 2018 +0200 +++ b/app/main/admin/unit_edit.lua Thu Oct 18 17:42:09 2018 +0200 @@ -50,9 +50,15 @@ ui.field.boolean{ label = _"Active?", name = "active", value = hint and true or nil } slot.put("
") - ui.submit{ text = _"update unit" } + ui.submit{ + attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" }, + text = _"update unit" + } slot.put(" ") - ui.link{ module = "admin", view = "index", content = _"cancel" } + ui.link{ + attr = { class = "mdl-button mdl-js-button" }, + module = "admin", view = "index", content = _"cancel" + } end ) end }