Sha256: 2de76a3c4c28eafa7d51b1a3830968f9685d8c07ca79f4cbbe89ecf9358cada5

Contents?: true

Size: 429 Bytes

Versions: 10

Compression:

Stored size: 429 Bytes

Contents

/* Required parameters:
 *   name: ''
 *   radios: [{ id: '', value: '', text: '' }]
 */

- name = local_assigns[:name] ? name : ''
- radios = local_assigns[:radios] ? radios : []

- radios.each_with_index do |radio, i|
  = radio_button_tag name,
    radio[:value],
    radio[:checked],
    class: 'radio-col-cyan',
    id: radio[:id],
    disabled: radio[:disabled],
    data: radio[:opts]
  label for=radio[:id] = radio[:text]

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_material_admin-0.1.9 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.8 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.7 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.6 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.5 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.4 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.3 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.2 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.1 app/views/shared/_radio_box.html.slim
rails_material_admin-0.1.0 app/views/shared/_radio_box.html.slim