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. 10
      app/views/work_packages/_edit.html.erb

@ -134,6 +134,14 @@ jQuery(document).ready(function ($) {
$.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) {

@ -165,6 +165,14 @@
margin-bottom: 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
border: 0
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? %>
<fieldset class="tabular">
<legend>
<legend class="change_properties">
<%= l(:label_change_properties) %>
<% if !work_package.new_record? && !work_package.errors.any? && edit_allowed %>
<small>
(<%= 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 %>
</legend>
<% if !work_package.new_record? && !work_package.errors.any? && edit_allowed %>
<%= 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' %>
<% end %>
<% edit_form = (edit_allowed ? 'form' : 'form_update') %>
<%= render :partial => edit_form,

Loading…
Cancel
Save