Merge pull request #76 from finnlabs/fix/accessibility_linearisation_of_work_package_show_form_2259

[FIX] Accessibility linearisation of work package show form 2259
pull/6827/head
Till Breuer 11 years ago
commit b763127542
  1. 6
      app/views/cost_objects/show.html.erb
  2. 8
      app/views/cost_types/index.html.erb
  3. 9
      app/views/costlog/index.html.erb
  4. 2
      doc/CHANGELOG.md

@ -19,14 +19,16 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
++#%>
<%= render :partial => 'shared/costs_header' %>
<div class="contextual">
<% content_for :action_menu_specific do %>
<%= link_to_if_authorized l(:button_update), {:controller => 'cost_objects', :action => 'edit', :id => @cost_object}, :onclick => 'showAndScrollTo("update", "cost_object_description"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
<%= link_to_if_authorized l(:button_copy), {:controller => 'cost_objects', :action => 'copy', :id => @cost_object }, :class => 'icon icon-copy' %>
<%= link_to_if_authorized l(:button_delete), {:controller => 'cost_objects', :action => 'destroy', :id => @cost_object}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-delete' %>
</div>
<% end %>
<h2><%= l(:label_cost_object_id, :id => @cost_object.id) %></h2>
<%= render :partial => 'layouts/action_menu_specific' %>
<div class="<%= @cost_object.css_classes %> details">
<h3><%=h @cost_object.subject %></h3>
<p class="author">

@ -19,12 +19,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
++#%>
<%= render :partial => 'shared/costs_header' %>
<div class="contextual">
<%= link_to l(:button_add_cost_type), new_cost_type_path, :class => 'icon icon-add' %>
</div>
<% content_for :action_menu_specific do %>
<%= link_to l(:button_add_cost_type), new_cost_type_path, :class => 'icon icon-add' %>
<% end %>
<h2><%= CostType.model_name.human(:count => 2) %></h2>
<%= render :partial => 'layouts/action_menu_specific' %>
<%= form_tag(cost_types_path, { :method => :get, :id => 'query_form' }) do %>
<fieldset id="filters">
<legend><%= l(:label_filter_plural) %></legend>

@ -19,14 +19,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
++#%>
<%= render :partial => 'shared/costs_header' %>
<div class="contextual">
<%= link_to_if_authorized l(:button_log_costs), {:controller => '/costlog', :action => 'new', :work_package_id => @work_package}, :class => 'icon-context icon-unit' %>
</div>
<% content_for :action_menu_specific do %>
<%= link_to_if_authorized l(:button_log_costs), {:controller => '/costlog', :action => 'new', :work_package_id => @work_package}, :class => 'icon-context icon-unit' %>
<% end %>
<%= render_costlog_breadcrumb %>
<h2><%= WorkPackage.human_attribute_name(:spent_costs) %></h2>
<%= render :partial => 'layouts/action_menu_specific' %>
<%= form_remote_tag( :url => {}, :method => :get, :update => 'content' ) do %>
<%= hidden_field_tag('project_id', params[:project_id]) if @project %>
<%= hidden_field_tag 'work_package_id', params[:work_package_id] if @work_package %>

@ -20,8 +20,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# Changelog
* `#3077` Public Release Costs plugin
* `#2259` [Accessibility] linearisation of issue show form (2)
## 5.0.1.pre11

Loading…
Cancel
Save