Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 66514fd368
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (38 sloc) 1.443 kB
<%= simple_form_for @topic, :wrapper => :inline do |f| %>
<fieldset>
<legend><%= @topic.new_record? ? t("topics.create_topic") : t("topics.edit_topic") %></legend>
<%= render "shared/error_messages", :target => @topic %>
<%= f.input :title do %>
<span class="span3">
<%= render_topic_node_select_tag(@topic) %>
</span>
<span class="span6">
<%= f.text_field :title %>
</span>
<% end %>
<div class="edit_tools input">
<%= render "editor_toolbar" %>
</div>
<%= f.input :body, :as => :text, :input_html => { :class => "topic_editor xxlarge", :style => "height:400px" }%>
<div class="actions">
<%= f.submit t("common.save"), :class => "btn primary", :disable_with => t("common.saving") %>
<%= link_to(t("common.cancel"), @topic.id.blank? ? root_path : topic_path(@topic), :class => "btn")%>
</div>
</fieldset>
<% end %>
<script type="text/javascript">
// not loaded jquery yet.
window.onload = function() {
// have loaed all js now.
Topics.onCloseWarning();
$('.actions>input[type=submit]').click(function(e){
Topics.offCloseWarning();
});
// onbeforeunload conflict with <a> element in IE!!!
// except a.href is not empty(such as #) or a.onclick return false
// "###" let <a> not be a anchor point
if ($.browser.msie) {
$('a[href^="javascript"]').attr('href','###');
}
}
</script>
Jump to Line
Something went wrong with that request. Please try again.