Sha256: bf13f9f1850a85eb959a5da834ed5686f74911c44622c43b9eedcbd779485bab

Contents?: true

Size: 547 Bytes

Versions: 6

Compression:

Stored size: 547 Bytes

Contents

module UcbRailsUser
  module UsersHelper

    def link_to_new_user
      text = 'New User'
      # text = image_tag('ucb_rails/glyphicons_006_user_add.png', size: '14x14')
      button(text, :primary,
        class: 'ldap-person-search',
        data: {
          search_url: "",
          result_link_url: new_admin_user_path,
          result_link_http_method: 'post',
        }
      )
    end

    def checkmark(bool, true_string="✔".html_safe, false_string=' '.html_safe)
      bool ? true_string : false_string
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ucb_rails_user-3.0.0 app/helpers/ucb_rails_user/users_helper.rb
ucb_rails_user-2.0.1 app/helpers/ucb_rails_user/users_helper.rb
ucb_rails_user-2.0.0 app/helpers/ucb_rails_user/users_helper.rb
ucb_rails_user-1.1.3 app/helpers/ucb_rails_user/users_helper.rb
ucb_rails_user-1.1.2 app/helpers/ucb_rails_user/users_helper.rb
ucb_rails_user-1.1.1 app/helpers/ucb_rails_user/users_helper.rb