Sha256: 9a8b375cc2b76ae199ab349878d8e8bb398ba03254fbf800ff8a27842307813c
Contents?: true
Size: 1.6 KB
Versions: 7
Compression:
Stored size: 1.6 KB
Contents
<!-- HACK: empty line must be here for split_form_for to work properly --> <fieldset> <div class="col"> <%= hidden_field_tag 'cl', Article.locale %> <p> <%= f.text_field :title, :class => 'big', :label => "Title", style: "float: none" %> </p> <p id="article_excerpt_wrapper" style="<%= @article.has_excerpt? ? "" : "display:none" %>"> <label for="article_excerpt"> <%= t(:'adva.articles.attributes.excerpt') %> <span class="inline" id="hide_excerpt_hint">(<%= link_to t(:'adva.common.hide'), '#', :id => 'hide_excerpt' %>)</span> </label> <%= f.text_area :excerpt, :class => 'wysiwyg' %> </p> <p> <label for="article_body" style="display: inline">Body</label> <span id="add_excerpt_hint">(<%= link_to t(:'adva.articles.excerpt_add'), '#', :id => 'add_excerpt' %>)</span> </p> <%= f.text_area :body, :class => editor_class_for(@article) %> </div> </fieldset> <%= render :partial => 'options', :locals => { :f => f } %> <%= content_for :sidebar do %> <%= f.label :draft, t(:'adva.articles.question_save_as_draft') %> <%= f.check_box :draft?, :id => 'toggle_draft', :label => :'adva.articles.confirm_save_as_draft' %> <p id="publish_date_wrapper" style="<%= @article.draft? ? "display:none" : "" %>"> <%= f.label :published_at, t(:'adva.articles.publish_on_date') %> <%= f.datetime_select :published_at, :start_year => (@article.published_at || Time.zone.now).year-1, :end_year => (Time.zone.now.year + 5), :order => [:month, :day, :year] %> </p> <% end %>
Version data entries
7 entries across 7 versions & 2 rubygems