liquid_feedback_frontend

diff app/main/initiative/history.lua @ 1489:3ab878ba277e

Accessibility improvements part 1
author bsw
date Mon Feb 18 19:46:36 2019 +0100 (2019-02-18)
parents 32cc544d5a5b
children 294437b78505
line diff
     1.1 --- a/app/main/initiative/history.lua	Mon Jan 07 19:16:30 2019 +0100
     1.2 +++ b/app/main/initiative/history.lua	Mon Feb 18 19:46:36 2019 +0100
     1.3 @@ -37,27 +37,29 @@
     1.4                
     1.5                  local columns = {
     1.6                    {
     1.7 -                    label = _"draft ID",
     1.8                      content = function(record)
     1.9 -                      ui.tag { content = record.id }
    1.10 -                    end
    1.11 -                  },
    1.12 -                  {
    1.13 -                    label = _"published at",
    1.14 -                    content = function(record)
    1.15 +                      slot.put('<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="old_draft_id_' .. record.id .. '"><input type="radio" class="mdl-radio__button" id="old_draft_id_' .. record.id .. '" name="old_draft_id" value="' .. tostring(record.id) .. '">') 
    1.16 +                      ui.tag { content = "compare" }
    1.17 +                      slot.put(" ")
    1.18                        ui.link{
    1.19                          attr = { class = "action" },
    1.20                          module = "draft", view = "show", id = record.id,
    1.21                          text = format.timestamp(record.created)
    1.22                        }
    1.23 +                      slot.put("</label>")
    1.24                      end
    1.25                    },
    1.26                    {
    1.27 -                    label = _"compare",
    1.28                      content = function(record)
    1.29 -                      slot.put('<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="old_draft_id_' .. record.id .. '"><input type="radio" class="mdl-radio__button" id="old_draft_id_' .. record.id .. '" name="old_draft_id" value="' .. tostring(record.id) .. '"></label>')
    1.30 -                      slot.put('<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="new_draft_id_' .. record.id .. '"><input type="radio" class="mdl-radio__button" id="new_draft_id_' .. record.id .. '" name="new_draft_id" value="' .. tostring(record.id) .. '"></label>')
    1.31 -                      --lot.put('<input type="radio" name="new_draft_id" value="' .. tostring(record.id) .. '">')
    1.32 +                      slot.put('<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="new_draft_id_' .. record.id .. '"><input type="radio" class="mdl-radio__button" id="new_draft_id_' .. record.id .. '" name="new_draft_id" value="' .. tostring(record.id) .. '">')
    1.33 +                      ui.tag { content = _"with" }
    1.34 +                      slot.put(" ")
    1.35 +                      ui.link{
    1.36 +                        attr = { class = "action" },
    1.37 +                        module = "draft", view = "show", id = record.id,
    1.38 +                        text = format.timestamp(record.created)
    1.39 +                      }
    1.40 +                      slot.put("</label>")
    1.41                      end
    1.42                    }
    1.43                  }

Impressum / About Us