项目缺陷显示页面样式调整
This commit is contained in:
parent
33abbaffe1
commit
7577f4cbbc
|
@ -5,32 +5,37 @@
|
||||||
<ul class="fl" >
|
<ul class="fl" >
|
||||||
<li>
|
<li>
|
||||||
<% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
|
<% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
|
||||||
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true}, :onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')" %></p>
|
<%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}),
|
||||||
|
{ :onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')"}, :class => "w150" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p><label><%= l(:field_status) %></label> <%= h(@issue.status.name) %></p>
|
<p><label><%= l(:field_status) %></label> <%= h(@issue.status.name) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<li><label class="label" ><span class="c_red f12">*</span> 优先级 : </label>
|
<li>
|
||||||
<% if @issue.safe_attribute? 'priority_id' %>
|
<% if @issue.safe_attribute? 'priority_id' %>
|
||||||
<p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? %></p>
|
<%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf?, :class => "w150" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<li><% if @issue.safe_attribute? 'assigned_to_id' %>
|
<li><% if @issue.safe_attribute? 'assigned_to_id' %>
|
||||||
<p><%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to), :include_blank => true, :required => @issue.required_attribute?('assigned_to_id') %></p>
|
<%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to),
|
||||||
|
:include_blank => true, :required => @issue.required_attribute?('assigned_to_id'),
|
||||||
|
:class => "w150" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<li><% if @issue.safe_attribute?('fixed_version_id') && @issue.assignable_versions.any? %>
|
<li><% if @issue.safe_attribute?('fixed_version_id') && @issue.assignable_versions.any? %>
|
||||||
<p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true, :required => @issue.required_attribute?('fixed_version_id') %>
|
<%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true,
|
||||||
<%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
|
:required => @issue.required_attribute?('fixed_version_id'),
|
||||||
|
:class => "w150" %>
|
||||||
|
<%#= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
|
||||||
new_project_version_path(@issue.project),
|
new_project_version_path(@issue.project),
|
||||||
:remote => true,
|
:remote => true,
|
||||||
:method => 'get',
|
:method => 'get',
|
||||||
:title => l(:label_version_new),
|
:title => l(:label_version_new),
|
||||||
:tabindex => 200) if User.current.allowed_to?(:manage_versions, @issue.project) %>
|
:tabindex => 200) if User.current.allowed_to?(:manage_versions, @issue.project) %>
|
||||||
</p>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
@ -38,17 +43,27 @@
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="fl ml90">
|
<ul class="fl ml90">
|
||||||
<li><% if @issue.safe_attribute? 'start_date' %>
|
<li><% if @issue.safe_attribute? 'start_date' %>
|
||||||
<p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf?, :required => @issue.required_attribute?('start_date') %><%= calendar_for('issue_start_date','start_date') if @issue.leaf? %></p>
|
<p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf?,
|
||||||
|
:class => "w150",
|
||||||
|
:required => @issue.required_attribute?('start_date') %>
|
||||||
|
<%= calendar_for('issue_start_date','start_date') if @issue.leaf? %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<li><% if @issue.safe_attribute? 'due_date' %>
|
<li><% if @issue.safe_attribute? 'due_date' %>
|
||||||
<p><%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf?, :required => @issue.required_attribute?('due_date') %><%= calendar_for('issue_due_date','start_date') if @issue.leaf? %></p>
|
<p><%= f.text_field :due_date, :size => 10,
|
||||||
|
:class => "w150",
|
||||||
|
:disabled => !@issue.leaf?,
|
||||||
|
:required => @issue.required_attribute?('due_date') %>
|
||||||
|
<%= calendar_for('issue_due_date','start_date') if @issue.leaf? %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
<li><% if @issue.safe_attribute? 'estimated_hours' %>
|
<li><% if @issue.safe_attribute? 'estimated_hours' %>
|
||||||
<p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf?, :required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
|
<p><%= f.text_field :estimated_hours, :size => 3,
|
||||||
|
:disabled => !@issue.leaf?,
|
||||||
|
:class => "w150",
|
||||||
|
:required => @issue.required_attribute?('estimated_hours') %> <%= l(:field_hours) %></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
|
@ -6,55 +6,6 @@
|
||||||
//issue_project_id
|
//issue_project_id
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="newpro_box">
|
|
||||||
<ul >
|
|
||||||
<li ><label class="label" ><span class="c_red f12">*</span> 跟踪 : </label>
|
|
||||||
<select name="" class="w150">
|
|
||||||
<option value="0">缺陷</option>
|
|
||||||
<option value="0">功能</option>
|
|
||||||
<option value="0">支持</option>
|
|
||||||
<option value="0">任务</option>
|
|
||||||
</select>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li ><input class="ml30" type="checkbox" /><label class="fl ml5 mt3" >私有</label></li>
|
|
||||||
<div class="cl"></div>
|
|
||||||
<li><label class="label"><span class="c_red f12">*</span> 主题 : </label>
|
|
||||||
<input type="text" name="" class=" w583 " >
|
|
||||||
</li>
|
|
||||||
<div class="cl"></div>
|
|
||||||
<li><label class="label" ><span class="c_red f12">*</span> 描述 : </label>
|
|
||||||
<textarea name="" placeholder="最多3000个汉字(或6000个英文字符)" class=" w583 " ></textarea>
|
|
||||||
</li>
|
|
||||||
<div class="cl"></div>
|
|
||||||
<li><label class="label" ><span class="c_red f12">*</span> 文件 : </label>
|
|
||||||
<input type="file" class="c_grey w150 no_border"/>
|
|
||||||
<label class="c_grey">(最大文件大小: 50 MB)</label>
|
|
||||||
</li>
|
|
||||||
<div class="cl"></div>
|
|
||||||
</ul>
|
|
||||||
</div><!--newpro_box end-->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="newpro_box">
|
<div class="newpro_box">
|
||||||
|
|
Loading…
Reference in New Issue