2012-07-01 02:43:16 +02:00
|
|
|
<div class="box" id="story_box">
|
2013-12-24 00:15:58 +01:00
|
|
|
<div class="legend">
|
2016-11-10 12:10:21 +01:00
|
|
|
<%= t('.edit') %>
|
2013-12-24 00:15:58 +01:00
|
|
|
</div>
|
2012-06-30 18:18:36 +02:00
|
|
|
|
2015-01-03 00:02:55 +01:00
|
|
|
<%= form_for @story, :url => story_path(@story.short_id),
|
2014-02-12 20:14:25 +01:00
|
|
|
:method => :put, :html => { :id => "edit_story" } do |f| %>
|
2013-12-24 00:15:58 +01:00
|
|
|
<%= render :partial => "stories/form", :locals => { :story => @story,
|
2012-06-30 18:18:36 +02:00
|
|
|
:f => f } %>
|
|
|
|
|
2014-05-01 18:33:16 +02:00
|
|
|
<% if @user.is_moderator? %>
|
2015-07-31 00:15:48 +02:00
|
|
|
<br />
|
2012-09-02 16:50:07 +02:00
|
|
|
<div class="box">
|
2014-04-09 00:51:12 +02:00
|
|
|
<div class="boxline">
|
2016-11-10 12:10:21 +01:00
|
|
|
<%= f.label :merge_story_short_id, t('.merge'),
|
2014-04-09 00:51:12 +02:00
|
|
|
:class => "required" %>
|
|
|
|
<%= f.text_field :merge_story_short_id, :autocomplete => "off",
|
2016-11-10 12:10:21 +01:00
|
|
|
:placeholder => t('.shortid') %>
|
2014-04-09 00:51:12 +02:00
|
|
|
</div>
|
2015-01-06 21:22:18 +01:00
|
|
|
<div class="boxline">
|
2016-11-10 12:10:21 +01:00
|
|
|
<%= f.label :unavailable_at, t('.unavailable'),
|
2015-01-06 21:22:18 +01:00
|
|
|
:class => "required" %>
|
|
|
|
<%= f.check_box :is_unavailable %>
|
2016-11-10 12:10:21 +01:00
|
|
|
<%= f.label :unavailable_at, t('.unavailableat'), :class => "normal" %>
|
2015-01-06 21:22:18 +01:00
|
|
|
</div>
|
2014-05-01 18:33:16 +02:00
|
|
|
<% if @story.user_id != @user.id %>
|
|
|
|
<div class="boxline">
|
2016-11-10 12:10:21 +01:00
|
|
|
<%= f.label :moderation_reason, t('.modreason'),
|
2014-05-01 18:33:16 +02:00
|
|
|
:class => "required" %>
|
|
|
|
<%= f.text_field :moderation_reason, :autocomplete => "off" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2012-09-02 16:50:07 +02:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2012-06-30 18:18:36 +02:00
|
|
|
<p></p>
|
2013-02-14 01:50:51 +01:00
|
|
|
|
2012-06-30 18:18:36 +02:00
|
|
|
<div class="box">
|
2015-10-15 03:32:24 +02:00
|
|
|
<div class="boxline actions markdown_help_toggler">
|
2012-07-01 02:43:16 +02:00
|
|
|
<div class="markdown_help_label">
|
2016-11-24 14:45:39 +01:00
|
|
|
<%= t '.markdown' %>
|
2012-07-01 02:43:16 +02:00
|
|
|
</div>
|
|
|
|
|
2016-11-10 12:10:21 +01:00
|
|
|
<%= submit_tag t('.save') %>
|
|
|
|
or <a href="<%= story_path(@story.short_id) %>"><%= t('.cancel') %></a>
|
2012-07-01 02:43:16 +02:00
|
|
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
|
2012-09-17 20:24:29 +02:00
|
|
|
<%= render :partial => "global/markdownhelp",
|
|
|
|
:locals => { :allow_images => true } %>
|
2012-07-01 02:43:16 +02:00
|
|
|
</div>
|
2012-06-30 18:18:36 +02:00
|
|
|
</div>
|
2013-12-24 00:15:58 +01:00
|
|
|
<% end %>
|
2012-06-30 18:18:36 +02:00
|
|
|
</div>
|