10 lines
466 B
Elixir
10 lines
466 B
Elixir
|
<%= 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>
|
||
|
<%= submit "Post" %>
|
||
|
<% end %>
|