22 lines
705 B
Plaintext
22 lines
705 B
Plaintext
<%
|
|
local save_button_text = "Post reply"
|
|
if cancel_url then
|
|
save_button_text = "Save"
|
|
end
|
|
%>
|
|
<form class="post-edit-form" method="post" action="<%= url or "" %>">
|
|
<% render ("views.common.babycode-editor-component", {ta_name = ta_name, prefill = prefill}) %>
|
|
<% if not cancel_url then %>
|
|
<span>
|
|
<input type="checkbox" id="subscribe" name="subscribe" <%= session.subscribe_by_default and "checked" or "" %>>
|
|
<label for="subscribe">Subscribe to thread</label>
|
|
</span>
|
|
<% end %>
|
|
<span>
|
|
<input type=submit value="<%= save_button_text %>">
|
|
<% if cancel_url then %>
|
|
<a class="linkbutton warn" href="<%= cancel_url %>">Cancel</a>
|
|
<% end %>
|
|
</span>
|
|
</form>
|