You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
788 B
14 lines
788 B
= @form.hidden_field(:id, { class: 'id' })
|
|
= @form.check_box(:_destroy, {:no_wrapper => true})
|
|
= @form.label(:_destroy, '×')
|
|
= @form.hidden_field(:user_id, { class: 'user-id'} )
|
|
- if @value && @value.id
|
|
= image_tag(@value.avatar.url :thumb)
|
|
.username=@value.username
|
|
- if @options[:relationship]
|
|
= @form.select(:relationship, options_for_select(UserOrganizationRelationship::AllRelationships, @options[:relationship]), {:no_wrapper => true}, {class: 'small'})
|
|
- else
|
|
- if @options[:relationship]
|
|
%a.select-user{href: '#'}=image_tag('http://placehold.it/120x120&text=%252B')
|
|
.username
|
|
= @form.select(:relationship, options_for_select(UserOrganizationRelationship::AllRelationships, UserOrganizationRelationship::DefaultRelationship), {:no_wrapper => true}, {class: 'small'})
|
|
|