47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
<div class="box" id="story_box">
|
|
<div class="legend">
|
|
<%= t('.submit') %>
|
|
</div>
|
|
|
|
<div id="story_holder">
|
|
<%= form_for @story do |f| %>
|
|
<%= render :partial => "stories/form", :locals => { :story => @story,
|
|
:f => f } %>
|
|
|
|
<p></p>
|
|
|
|
<div class="box">
|
|
<div class="boxline actions markdown_help_toggler">
|
|
<div class="markdown_help_label">
|
|
<%= t('.markdown') %>
|
|
</div>
|
|
|
|
<%= submit_tag t('.submitbutton') %>
|
|
|
|
|
|
<button type="button" class="story-preview"><%= t('.preview') %></button>
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
<%= render :partial => "global/markdownhelp",
|
|
:locals => { :allow_images => true } %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="story_preview">
|
|
<% if @story.previewing && @story.valid? %>
|
|
<%= render :template => "stories/show" %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
<% if !@story.previewing %>
|
|
$("#story_url").focus();
|
|
<% end %>
|
|
});
|
|
</script>
|