wip, added a form to add aspect to the contact list added files typo render the partial remote friend specifying the provider for the route refactored local person person friend finder functionality to use the partial typo trying to use the stream
31 lines
1.3 KiB
Text
31 lines
1.3 KiB
Text
-# Copyright (c) 2010, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
.aspect_list#aspects_list
|
|
%ul
|
|
- for aspect in aspects_with_person
|
|
= render :partial => 'aspects/aspect_list_item',
|
|
:locals => {:aspect => aspect, :person => person,
|
|
:contact => contact}
|
|
|
|
- for aspect in aspects_without_person
|
|
= render :partial => 'aspects/aspect_list_item',
|
|
:locals => {:aspect => aspect, :person => person,
|
|
:contact => contact}
|
|
|
|
.add_aspect
|
|
= t('users.getting_started.step_3.aspect_name')
|
|
= form_for(Aspect.new, :remote => true) do |aspect|
|
|
= aspect.error_messages
|
|
= aspect.hidden_field :person_id, :value => person.id if person
|
|
= aspect.hidden_field :contact_id, :value => contact.id if contact
|
|
= aspect.hidden_field :share_with, :value => true
|
|
= aspect.text_field :name, :id => "step-3-aspect-name", :style => "display:inline;"
|
|
%p.checkbox_select
|
|
= aspect.label :contacts_visible, t('aspects.edit.make_aspect_list_visible')
|
|
= aspect.check_box :contacts_visible, :default => true
|
|
.right
|
|
= aspect.submit :src => '/images/icons/monotone_add_plus.png', :type => "image", :value => "", :class => 'button'
|
|
|
|
|