From 12285e8d1b99632657f80d7381f74014e99bad1b Mon Sep 17 00:00:00 2001
From: Alex Coles
Date: Tue, 13 Jan 2015 18:23:45 +0100
Subject: [PATCH] Fix layout of add relation fields on legacy wp view
Signed-off-by: Alex Coles
---
.../work_package_relations/_form.html.erb | 33 ++++++++++++-------
1 file changed, 21 insertions(+), 12 deletions(-)
diff --git a/app/views/work_package_relations/_form.html.erb b/app/views/work_package_relations/_form.html.erb
index d3ef6888ec..4fc295938f 100644
--- a/app/views/work_package_relations/_form.html.erb
+++ b/app/views/work_package_relations/_form.html.erb
@@ -29,16 +29,25 @@ See doc/COPYRIGHT.rdoc for more details.
<%= error_messages_for 'relation' %>
-
- <%= f.select :relation_type, collection_for_relation_type_select, {}, :onchange => "setPredecessorFieldsVisibility();" %>
- <%= WorkPackage.model_name.human %> #<%= f.text_field :to_id, :size => 10 %>
-
- <%= javascript_tag "observeRelatedIssueField('#{work_packages_auto_complete_path(:id => controller.work_package, :project_id => @project, :escape => false) }')" %>
-
- <%= Relation.human_attribute_name(:delay) %>: <%= f.text_field :delay, :size => 3 %> <%= l(:label_day_plural) %>
-
- <%= submit_tag l(:button_add), class: 'button -highlight' %>
- <%= toggle_link l(:button_cancel), 'new-relation-form', {}, class: 'button' %>
-
-
+
+
+
+ <%= f.select :relation_type, collection_for_relation_type_select, {},
+ :onchange => "setPredecessorFieldsVisibility();",
+ class: 'form--select' %>
+ <%= WorkPackage.model_name.human %> #
+ <%= f.text_field :to_id, :size => 10, class: 'form--text-field'%>
+
+
+ <%= Relation.human_attribute_name(:delay) %>:
+ <%= f.text_field :delay, :size => 3, class: 'form--text-field' %>
+ <%= l(:label_day_plural) %>
+
+ <%= submit_tag l(:button_add), class: 'button -highlight' %>
+ <%= toggle_link l(:button_cancel), 'new-relation-form', {}, class: 'button' %>
+
+
+
+
+<%= javascript_tag "observeRelatedIssueField('#{work_packages_auto_complete_path(:id => controller.work_package, :project_id => @project, :escape => false) }')" %>
<%= javascript_tag "setPredecessorFieldsVisibility();" %>