add reusable babycode editor
This commit is contained in:
16
views/common/babycode-editor.etlua
Normal file
16
views/common/babycode-editor.etlua
Normal file
@ -0,0 +1,16 @@
|
||||
<%
|
||||
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}) %>
|
||||
<span>
|
||||
<input type=submit value="<%= save_button_text %>">
|
||||
<% if cancel_url then %>
|
||||
<a class="linkbutton warn" href="<%= cancel_url %>">Cancel</a>
|
||||
<% end %>
|
||||
</span>
|
||||
<% render("views.common.bbcode_help") %>
|
||||
</form>
|
Reference in New Issue
Block a user