Merge pull request #948 from opf/fix/more_wp_properties_link_wp_show

pull/952/head
Hagen Schink 11 years ago
commit 7d0cd078c0
  1. 8
      app/assets/javascripts/application.js.erb
  2. 8
      app/assets/stylesheets/content/_forms.css.sass
  3. 8
      app/views/work_packages/_edit.html.erb

@ -134,6 +134,14 @@ jQuery(document).ready(function ($) {
$.datepicker.setDefaults(defaults); $.datepicker.setDefaults(defaults);
} }
$('#show_more_wp_properties').live('click', function(el){
$(this).find('.icon').toggleClass('icon-arrow-right6-3 icon-arrow-right6-1');
Effect.toggle("work_package_descr_fields", "appear", {duration:0.3});
enable_textarea_auto_completion(jQuery("#work_package_description"));
return false;
});
}); });
function checkAll (id, checked) { function checkAll (id, checked) {

@ -165,6 +165,14 @@
margin-bottom: 20px margin-bottom: 20px
padding: 30px 20px padding: 30px 20px
legend.change_properties
padding-right: 20px
#show_more_wp_properties
float: left
margin-left: 115px
margin-top: -48px
background-color: $content_form_bg_color
hr.form_separator hr.form_separator
border: 0 border: 0
border-bottom: 1px solid $content_form_separator_color border-bottom: 1px solid $content_form_separator_color

@ -40,14 +40,12 @@ See doc/COPYRIGHT.rdoc for more details.
<% if edit_allowed || !allowed_statuses.empty? %> <% if edit_allowed || !allowed_statuses.empty? %>
<fieldset class="tabular"> <fieldset class="tabular">
<legend> <legend class="change_properties">
<%= l(:label_change_properties) %> <%= l(:label_change_properties) %>
</legend>
<% if !work_package.new_record? && !work_package.errors.any? && edit_allowed %> <% if !work_package.new_record? && !work_package.errors.any? && edit_allowed %>
<small> <%= link_to icon_wrapper('icon icon-arrow-right6-3', l(:label_more)), {}, :title => l(:label_more), :class => 'no-decoration-on-hover', :id => 'show_more_wp_properties' %>
(<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("work_package_descr_fields", "appear", {duration:0.3}); enable_textarea_auto_completion(jQuery("#work_package_description")); return false;' %>)
</small>
<% end %> <% end %>
</legend>
<% edit_form = (edit_allowed ? 'form' : 'form_update') %> <% edit_form = (edit_allowed ? 'form' : 'form_update') %>
<%= render :partial => edit_form, <%= render :partial => edit_form,

Loading…
Cancel
Save