clacks/lib/clacks_web/templates/frontend/_post_form.html.eex

20 lines
744 B
Elixir
Raw Normal View History

<%= 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 %>
2020-05-25 23:34:58 +00:00
<% placeholder = assigns[:placeholder] || "What's up?" %>
<% content = assigns[:content] || "" %>
<textarea id="content" name="content" rows="5" placeholder="<%= placeholder %>"><%= content %></textarea>
2020-05-25 23:34:58 +00:00
<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 %>