<%= form_for @changeset, post_path(@conn, :create), fn f -> %>
  <dl>
    <dt>
      <%= label f, :title %>
      <%= error_tag f, :title %>
    </dt>
    <dd>
      <%= text_input f, :title, placeholder: "Enter title..." %>
    </dd>
  </dl>
  <dl>
    <dt>
      <%= label f, :body %>
      <%= error_tag f, :body %>
    </dt>
    <dd>
      <%= text_input f, :body, placeholder: "Enter body..." %>
    </dd>
    <dt>
      <%= label f, :channel_id, "Channel" %>
      <%= error_tag f, :channel_id %>
    </dt>
    <dd>
      <%= select f, :channel_id, @channels, prompt: "" %>
    </dd>
  </dl>
  <%= submit "Submit" %>
  <%= link("cancel", to: "/") %>
<% end %>

<%= form_for @changeset, post_path(@conn, :create), fn f -> %>
  <dl>
    <dt>
      <%= label f, :title %>
      <%= error_tag f, :title %>
    </dt>
    <dd>
      <%= text_input f, :title, placeholder: "Enter title..." %>
    </dd>
  </dl>
  <dl>
    <dt>
      <%= label f, :body %>
      <%= error_tag f, :body %>
    </dt>
    <dd>
      <%= textarea f, :body,
        placeholder: "Enter body...",
        class: "autosize",
        style: "overflow: hidden; word-wrap: break-word; height: 72px;"
      %>
    </dd>
    <dt>
      <%= label f, :channel_id, "Channel" %>
      <%= error_tag f, :channel_id %>
    </dt>
    <dd>
      <%= select f, :channel_id, @channels, prompt: "" %>
    </dd>
  </dl>
  <%= submit "Submit" %>
  <%= link("cancel", to: "/") %>
<% end %>

Convert text input to textarea
Convert text input to textarea
