Sha256: 51554a86b5ba7d78d16ce119380e6d36f74a8d0ac2d46bde2a488325abc06549

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

#my_data
  ul
    = I18n.t('users.unsubscribes.title')
  ul
    li
      .bootstrap-form
      = semantic_form_for(@user, url: user_unsubscribes_path(user_id: @user.id), html:{ method: :post}) do |f|
        = f.inputs do
          = f.semantic_fields_for :unsubscribes, @subscribed_to_updates do |u|
            - u.object.created_at.nil? ? (checked = { checked: 'checked' }) : (checked = nil)
            #subscribed_check
              = u.input :subscribed, as: :boolean, input_html: checked, label: I18n.t('users.unsubscribes.updates')
          - if @unsubscribes
            = f.semantic_fields_for :unsubscribes, @unsubscribes do |u|
              = u.inputs do
                - u.object.created_at.nil? ? (checked = { checked: 'checked' }) : (checked = nil)
                .subscribed_projects
                  = u.input :subscribed, as: :boolean, input_html: checked, label: Project.find(u.object.project_id).name
                = u.input :project_id, as: :hidden
                = u.input :user_id, as: :hidden
                = u.input :notification_type_id, as: :hidden

        p= f.submit t('users.current_user_fields.update_social_info'), :class => 'btn', :id => "unsubscribe_submit"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_core-1.0.0.beta app/views/catarse/users/_unsubscribes.html.slim