use new markup in reportings forms

pull/2612/head
Florian Kraft 10 years ago
parent 7e1e7d0374
commit d3fdbefcaa
  1. 22
      app/views/reportings/edit.html.erb
  2. 10
      app/views/reportings/new.html.erb

@ -44,7 +44,7 @@ See doc/COPYRIGHT.rdoc for more details.
:title => link_to_project(@reporting.reporting_to_project)).html_safe %>
</h2>
<%= form_for :reporting,
<%= labelled_tabular_form_for :reporting,
:url => project_reporting_path(@project, @reporting),
:html => {:method => 'put'} do |f| %>
@ -52,8 +52,7 @@ See doc/COPYRIGHT.rdoc for more details.
<fieldset class="timelines-reporting-properties">
<legend><%= l('timelines.properties') %></legend>
<p>
<div class="form--field -required">
<label for="reporting_reported_project_status_id">
<%= Reporting.human_attribute_name(:reported_project_status_id) %>:
</label>
@ -61,24 +60,21 @@ See doc/COPYRIGHT.rdoc for more details.
@reporting.possible_reported_project_statuses.map { |s|
[s.name, s.id]
}.unshift(["-",""]) %>
</p>
</div>
<p>
<div class="form--field">
<label for="reporting_reported_project_status_comment">
<%= Reporting.human_attribute_name(:reported_project_status_comment) %>:
</label><br/>
<%= f.text_area(:reported_project_status_comment, :class => 'wiki-edit', :rows => 10,
:'data-wp_autocomplete_url' => work_packages_auto_complete_path(:project_id => @project, :format => :json),
:'ng-non-bindable' => '') %>
<%= wikitoolbar_for 'reporting_reported_project_status_comment' %>
</p>
</div>
<%= wikitoolbar_for 'reporting_reported_project_status_comment' %>
</fieldset>
<br/>
<p>
<%= f.submit l(:button_save), :name => nil, class: 'button -highlight' %>
<%= link_to l(:button_cancel), project_reportings_path(@project), class: 'button' %>
</p>
<hr>
<%= f.submit l(:button_save), :name => nil, class: 'button -highlight' %>
<%= link_to l(:button_cancel), project_reportings_path(@project), class: 'button' %>
<% end %>

@ -39,7 +39,7 @@ See doc/COPYRIGHT.rdoc for more details.
<h2><%= l('timelines.new_reporting').tap { |t| html_title t } %></h2>
<%= form_for :reporting,
<%= labelled_tabular_form_for :reporting,
:url => project_reportings_path(@project),
:html => {:method => 'post'} do |f| %>
@ -69,11 +69,9 @@ See doc/COPYRIGHT.rdoc for more details.
</span>
</fieldset>
<br/>
<p>
<%= f.submit l(:button_create), :name => nil, class: 'button -highlight' %>
<%= link_to l(:button_cancel), project_reportings_path(@project), class: 'button' %>
</p>
<hr>
<%= f.submit l(:button_create), :name => nil, class: 'button -highlight' %>
<%= link_to l(:button_cancel), project_reportings_path(@project), class: 'button' %>
<% end %>
<% content_for :header_tags do %>

Loading…
Cancel
Save