Project

General

Profile

Defect #41714 » 0002-Replaces-legacy-magnifier-icon-with-SVG-icon-in-issue-edit.patch

Takenori TAKAKI, 2024-11-19 07:41

View differences:

app/assets/stylesheets/application.css
586 586
.splitcontentright {flex: 1; margin-left: 5px;}
587 587
.splitcontenttop {flex: 2; flex-basis: 100%;}
588 588

  
589
.splitcontent .quick-search {margin:0px; display: inline-flex; align-items: center;}
590
.splitcontent .quick-search svg {margin-left: 5px; position: absolute;}
591
.splitcontent .quick-search input.autocomplete {background: #fff; padding-left: 24px !important;}
592

  
589 593
form {display: inline;}
590 594
input, select, button {vertical-align: middle; margin-top: 1px; margin-bottom: 1px; height: 24px; padding: 0 7px;}
591 595
input, select, textarea, button { color: #333; background-color: #fff; border:1px solid #ccc; border-radius:3px; box-sizing: border-box;}
app/views/issues/_attributes.html.erb
63 63

  
64 64
<div class="splitcontentright">
65 65
<% if @issue.safe_attribute? 'parent_issue_id' %>
66
<p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10,
67
                                      :required => @issue.required_attribute?('parent_issue_id'),
68
                                      :onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p>
66
<p id="parent_issue">
67
<%= label_tag 'issue_parent_issue_id', l(:field_parent_issue) %>
68
<%= content_tag 'span', :class => 'quick-search' do %>
69
<%= sprite_icon('search', :icon_only => true) %>
70
<%= text_field :issue, :parent_issue_id, :size => 10,
71
                       :required => @issue.required_attribute?('parent_issue_id'),
72
                       :onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p>
73
<% end %>
69 74
<%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript(auto_complete_issues_path(:project_id => @issue.project, :scope => Setting.cross_project_subtasks, :status => @issue.closed? ? 'c' : 'o', :issue_id => @issue.id))}')" %>
70 75
<% end %>
71 76

  
(3-3/5)