<%#
  This file is a part of RedmineX UX Upgrade plugin
  for Redmine

  Copyright 2020-2022 RedmineX. All Rights Reserved.
  https://www.redmine-x.com

  Licensed under GPL v2 (http://www.gnu.org/licenses/gpl-2.0.html)
  Created by Ondřej Svejkovský
%>

<h2><%=l(:label_news_new)%></h2>

<%= labelled_form_for @news, :url => (@project ? project_news_index_path(@project) : news_index_path),
                                           :html => { :id => 'news-form', :multipart => true } do |f| %>
  <%= render :partial => 'news/form', :locals => { :f => f } %>
  <div class="projectino-controls">
  <%= submit_tag l(:button_create) %>
  </div>
<% end %>
