Sha256: fdb9f44a2108dc649f359d8a5af3180b1de49687fcbe2e46f443dba13dc3270a

Contents?: true

Size: 821 Bytes

Versions: 5

Compression:

Stored size: 821 Bytes

Contents

= form_for message, :url => user_messages_path(user), :html => {:class => "MainForm"} do |f|

  -if message.reply_to
    =f.hidden_field :to
    =f.hidden_field :parent_id
  -else
    %label{:for => 'message_to'} 
      =:to.l
      %em= "(" + :type_a_username.l + ")"
    = text_field_tag 'message[to]', @message.to, {:autocomplete => "off", :size => 35, :id => "message_to"}
    .auto_complete#message_to_auto_complete
    -content_for :end_javascript do
      = auto_complete_field 'message_to', {:url => auto_complete_for_username_user_messages_path(@user), :tokens=>','}

  -if @reply  
    = f.hidden_field :subject  
  -else
    %label{:for => 'message_subject'}= :subject.l + ":"
    = f.text_field :subject

  %label{:for => "message_body"}= :message.l + ":"
  = f.text_area :body

  %p
    = submit_tag :send.l

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/messages/_form.html.haml
community_engine-2.3.1 app/views/messages/_form.html.haml
community_engine-2.3.0 app/views/messages/_form.html.haml
community_engine-2.1.0 app/views/messages/_form.html.haml
community_engine-2.0.0 app/views/messages/_form.html.haml