liquid_feedback_frontend
changeset 1461:22a1a6711154
Updated button design on admin member edit view
author | bsw |
---|---|
date | Thu Oct 18 17:31:19 2018 +0200 (2018-10-18) |
parents | 637fc7b37964 |
children | 6929d3ced007 |
files | app/main/admin/member_edit.lua |
line diff
1.1 --- a/app/main/admin/member_edit.lua Thu Oct 18 17:28:35 2018 +0200 1.2 +++ b/app/main/admin/member_edit.lua Thu Oct 18 17:31:19 2018 +0200 1.3 @@ -41,12 +41,6 @@ 1.4 }, 1.5 content = function() 1.6 1.7 - if member and member.identification then 1.8 - ui.heading { level = 3, content = member.identification } 1.9 - else 1.10 - ui.heading { level = 3, content = _"New member" } 1.11 - end 1.12 - 1.13 ui.field.text{ label = _"Identification", name = "identification" } 1.14 ui.field.text{ label = _"Notification email (confirmed)", name = "notify_email" } 1.15 ui.field.text{ label = _"Notification email (unconfirmed)", name = "notify_email_unconfirmed" } 1.16 @@ -93,13 +87,22 @@ 1.17 slot.put("<br />") 1.18 ui.field.boolean{ label = _"Admin?", name = "admin" } 1.19 slot.put("<br />") 1.20 - ui.submit{ text = _"update member" } 1.21 + ui.submit{ 1.22 + attr = { class = "mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" }, 1.23 + text = _"update member" 1.24 + } 1.25 slot.put(" ") 1.26 if member then 1.27 - ui.link { module = "admin", view = "member_deactivate", content = _"Deactivate member", id = member.id } 1.28 + ui.link { 1.29 + attr = { class = "mdl-button mdl-js-button mdl-button--raised" }, 1.30 + module = "admin", view = "member_deactivate", content = _"Deactivate member", id = member.id 1.31 + } 1.32 slot.put(" ") 1.33 end 1.34 - ui.link { module = "admin", view = "index", content = _"cancel" } 1.35 + ui.link { 1.36 + attr = { class = "mdl-button mdl-js-button" }, 1.37 + module = "admin", view = "index", content = _"cancel" 1.38 + } 1.39 1.40 end 1.41 }