diaspora/app/views/requests/_new_request.haml

30 lines
897 B
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
.span-12.last
.modal_title_bar
%h4
=t('.add_a_new_friend_to')
%i= aspect.name
- if @friends_not_in_aspect
= render('shared/add_friend_dropdown', :aspect => aspect, :friends => @friends_not_in_aspect)
= form_for Request.new do |fr_request|
= fr_request.error_messages
=t('.enter_a_diaspora_username')
%br
%i= t '.your_diaspora_username_is', :diaspora_handle => current_user.diaspora_handle
%p
= fr_request.label :destination_url, t(".friends_username")
= fr_request.text_field :destination_url
= fr_request.hidden_field :aspect_id, :value => aspect.id
- if defined?(getting_started)
= hidden_field_tag :getting_started, getting_started
= fr_request.submit