32 lines
1.6 KiB
Text
32 lines
1.6 KiB
Text
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
#aspect_edit_pane
|
|
#facebox_header{:data=>{:guid=>@aspect.id}}
|
|
%h3#aspect_name_title
|
|
%span.name= @aspect
|
|
%span.tiny_text
|
|
= link_to t('.rename'), '#', :id => 'rename_aspect_link'
|
|
|
|
#aspect_name_edit.hidden
|
|
= form_for @aspect, :remote => true do |aspect|
|
|
= aspect.text_field :name, :maxlength => 20
|
|
= aspect.submit t('.update'), 'data-disable-with' => t('.updating'), :class => 'button'
|
|
|
|
- if @contacts.count > 0
|
|
= render 'shared/contact_list', :aspect => @aspect, :contacts => @contacts
|
|
|
|
%br
|
|
.bottom_submit_section
|
|
= button_to t('delete'), @aspect, :method => "delete", :data => { :confirm => t('.confirm_remove_aspect') }, :class => 'button delete'
|
|
- if @aspect.contacts_visible
|
|
= link_to content_tag(:div, nil, :class => 'icons-padlock-open', :id => "contact_visibility_padlock", :title => t('.aspect_list_is_visible')),
|
|
aspect_toggle_contact_visibility_path(@aspect), :class => 'contact_visibility_link', :method => :put, :remote => true
|
|
|
|
- else
|
|
= link_to content_tag(:div, nil, :class => 'icons-padlock-closed', :id => "contact_visibility_padlock", :title => t('.aspect_list_is_not_visible')),
|
|
aspect_toggle_contact_visibility_path(@aspect), :class => 'contact_visibility_link', :method => :put, :remote => true
|
|
|
|
= submit_tag t('.done'), :class => 'button creation', :rel => 'close'
|
|
|