<%
  add_body_class "new_invite"
  @page_title = t("invite.new_invite")
%>

<h2 class="section">
  <%= link_to t("invites.invites"), invites_path %>
  &raquo;
  <%= link_to t("new"), new_invite_path %>
</h2>

<%= form_for @invite, builder: Sugar::FormBuilder do |f| %>
  <%= f.labelled_text_field :email, size: 60 %>
  <%= f.labelled_text_area(:message,
                           cols: 60,
                           rows: 10,
                           description: t("invite.message_description")) %>
  <p>
    <button type="submit">
      <%= t("invite.send_invite") %>
    </button>
  </p>
<% end %>

<%
  add_body_class "new_invite"
  @page_title = t("invite.new_invite")
%>

<h2 class="section">
  <%= link_to t("invites.invites"), invites_path %>
  &raquo;
  <%= link_to t("new"), new_invite_path %>
</h2>

<%= form_for @invite, builder: Sugar::FormBuilder do |f| %>
  <%= f.labelled_text_field :email, size: 60, type: 'email' %>
  <%= f.labelled_text_area(:message,
                           cols: 60,
                           rows: 10,
                           description: t("invite.message_description")) %>
  <p>
    <button type="submit">
      <%= t("invite.send_invite") %>
    </button>
  </p>
<% end %>

Set invitation email field to type "email".
Set invitation email field to type "email".
