Sha256: 4fdd8050086ffa7325d3cb684a5ddc9abeca6766bfa38798692587fe0ae6ac41

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

<h2>
  <%= t('mailbox.message.new') %>
</h2>

<%= form_tag messages_path, :method => :post , :class => "new_message" do %>
  <% if @receipt and @receipt.errors.any? %>
    <div class="error">
      <h2>
        <%= pluralize(@receipt.errors.count, "error") %> prohibited this message from being sent:
      </h2>
      <ul>
        <% @receipt.errors.full_messages.each do |msg| %>
          <li>
          <%= msg %>
          </li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <%= label_tag t('mailboxer.form.recipients') %>

  <%= hidden_field_tag :_recipients, @recipient.try(:id), "data-path" => contacts_path(format: :json), "data-recipient-name" => @recipient.try(:name) %>

  <%= label_tag t('mailboxer.form.subject') %>

  <%= text_field_tag :subject,nil %>

  <%= label_tag t('mailboxer.form.body') %>

  <div id="ck_editor" >
    <%= text_area_tag :body, nil,:rows =>6, :cols=> 53, :maxlength => 5000 %>
  </div>

  <%= submit_tag t('mailboxer.send'), :name => :send_message, :class => "btn pull-right" %>

<% end %>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
social_stream-2.0.0.beta1 base/app/views/messages/_form.html.erb
social_stream-base-2.0.0.beta1 app/views/messages/_form.html.erb