@@ -2,11 +2,7 | |||||
2 | <%= error_messages_for 'issue', 'time_entry' %> |
|
2 | <%= error_messages_for 'issue', 'time_entry' %> | |
3 | <div class="box"> |
|
3 | <div class="box"> | |
4 | <% if @edit_allowed || !@allowed_statuses.empty? %> |
|
4 | <% if @edit_allowed || !@allowed_statuses.empty? %> | |
5 | <fieldset class="tabular"><legend><%= l(:label_change_properties) %> |
|
5 | <fieldset class="tabular"><legend><%= l(:label_change_properties) %></legend> | |
6 | <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %> |
|
|||
7 | <small>(<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>)</small> |
|
|||
8 | <% end %> |
|
|||
9 | </legend> |
|
|||
10 | <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %> |
|
6 | <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %> | |
11 | </fieldset> |
|
7 | </fieldset> | |
12 | <% end %> |
|
8 | <% end %> |
@@ -1,6 +1,5 | |||||
1 | <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> |
|
1 | <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> | |
2 |
|
2 | |||
3 | <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>> |
|
|||
4 | <% if @issue.safe_attribute_names.include?('is_private') %> |
|
3 | <% if @issue.safe_attribute_names.include?('is_private') %> | |
5 | <p style="float:right; margin-right:1em;"> |
|
4 | <p style="float:right; margin-right:1em;"> | |
6 | <label class="inline" for="issue_is_private" id="issue_is_private_label"><%= f.check_box :is_private, :no_label => true %> <%= l(:field_is_private) %></label> |
|
5 | <label class="inline" for="issue_is_private" id="issue_is_private_label"><%= f.check_box :is_private, :no_label => true %> <%= l(:field_is_private) %></label> | |
@@ -12,12 +11,19 | |||||
12 | :with => "Form.serialize('issue-form')" %> |
|
11 | :with => "Form.serialize('issue-form')" %> | |
13 |
|
12 | |||
14 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> |
|
13 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> | |
15 | <p><%= f.text_area :description, |
|
14 | <p> | |
|
15 | <label><%= l(:field_description) %></label> | |||
|
16 | <%= link_to_function image_tag('edit.png'), | |||
|
17 | 'Element.hide(this); Effect.toggle("issue_description_and_toolbar", "appear", {duration:0.3})' unless @issue.new_record? %> | |||
|
18 | <% content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %> | |||
|
19 | <%= f.text_area :description, | |||
16 | :cols => 60, |
|
20 | :cols => 60, | |
17 | :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), |
|
21 | :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), | |
18 | :accesskey => accesskey(:edit), |
|
22 | :accesskey => accesskey(:edit), | |
19 |
:class => 'wiki-edit' |
|
23 | :class => 'wiki-edit', | |
20 | </div> |
|
24 | :no_label => true %> | |
|
25 | <% end %> | |||
|
26 | </p> | |||
21 |
|
27 | |||
22 | <div id="attributes" class="attributes"> |
|
28 | <div id="attributes" class="attributes"> | |
23 | <%= render :partial => 'issues/attributes' %> |
|
29 | <%= render :partial => 'issues/attributes' %> |
@@ -405,7 +405,7 p.pagination {margin-top:8px;} | |||||
405 | margin: 0; |
|
405 | margin: 0; | |
406 | padding: 3px 0 3px 0; |
|
406 | padding: 3px 0 3px 0; | |
407 | padding-left: 180px; /* width of left column containing the label elements */ |
|
407 | padding-left: 180px; /* width of left column containing the label elements */ | |
408 |
height: 1 |
|
408 | min-height: 1.8em; | |
409 | clear:left; |
|
409 | clear:left; | |
410 | } |
|
410 | } | |
411 |
|
411 |
General Comments 0
You need to be logged in to leave comments.
Login now