Sha256: c32790e675ad023ce6f2a2a0608561729440cf5bd55e539cbc2487991261376d

Contents?: true

Size: 789 Bytes

Versions: 3

Compression:

Stored size: 789 Bytes

Contents

- if profile_field.postal_address?
  - flagged = true
  - css_class = 'flagged'
- else
  - flagged = false
  - css_class = 'unflagged'

- if can? :update, profile_field
  - css_class += ' do_not_show_in_edit_mode'
  %span{ :class => "postal_address show_only_in_edit_mode profile_field_#{profile_field.id}",
         :data => { profile_field_id: profile_field.id, update_json_url: profile_field_path(profile_field, format: :json) } }
    %span.label.label-info
      %label.radio
        - if flagged
          %input(type="radio" name="postal_address" checked)
        - else
          %input(type="radio" name="postal_address")
        = t :postal_address
%span{ :class => "postal_address #{css_class} profile_field_#{profile_field.id}" }
  %span.label.label-info
    =t :postal_address

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
your_platform-1.0.1 app/views/profile_fields/_postal_address_flag_switch.html.haml
your_platform-1.0.0 app/views/profile_fields/_postal_address_flag_switch.html.haml
your_platform-0.0.2 app/views/profile_fields/_postal_address_flag_switch.html.haml