Sha256: 5b47d7abbfd6a5e2119534b050b01dd389c7825957f03fa16d7066b4dc82d082
Contents?: true
Size: 836 Bytes
Versions: 3
Compression:
Stored size: 836 Bytes
Contents
- if section.profile_field_types.count == 1 = add_button( url_for( :controller => :profile_fields, :profileable_id => profileable.id, :profileable_type => profileable.class.name, :profile_field => {:type => section.profile_field_types.first}, :section => section.title), :method => 'post') - if section.profile_field_types.count > 1 %span.dropdown %a.btn.btn-default.dropdown-toggle.add_button.tool.show_only_in_edit_mode{data: {toggle: 'dropdown'}, href: '#'} = tool_icon('plus') + " " + t(:add) %span.caret %ul.dropdown-menu - section.profile_field_types.each do |type| %li = link_to_add_profile_field(profile_field_type: type, profileable: profileable, profile_section: section.title)
Version data entries
3 entries across 3 versions & 1 rubygems