<%= form_tag Routes.frontend_path(@conn, :post_status), method: :post, class: "compose-status" do %> <%= if assigns[:in_reply_to] do %> <input type="hidden" name="in_reply_to" value="<%= @in_reply_to %>"> <% end %> <% placeholder = assigns[:placeholder] || "What's up?" %> <% content = assigns[:content] || "" %> <textarea id="content" name="content" rows="5" placeholder="<%= placeholder %>"><%= content %></textarea> <div class="compose-status-options"> <select name="content_type"> <option value="text/plain">Plain</option> <option value="text/markdown">Markdown</option> <option value="text/html">HTML</option> </select> <div class="spacer"></div> <%= submit "Post" %> </div> <% end %>