<%= output_errors(t('muck.users.problem_with_status'), {:class => 'help-box'}, @activity) %> <% remote_form_for(:activity, :url => activities_path(:parent_id => activities_object, :parent_type => activities_object.type, :format => 'js'), :html => { :id => 'status_update_form', :class => 'clear', :action => activities_path(:parent_id => activities_object, :parent_type => activities_object.type) } ) do |f| -%>
<%= t("muck.activities.status_update_prompt") %> <%= f.text_field :content, :id => 'status_update' %> <%= f.submit t('muck.activities.post'), :id => 'submit_status', :class => "button" %>
<%= f.hidden_field :template, :value => 'status_update' %> <%= f.hidden_field :is_status_update, :value => true %> <% end %>
<% content_for :javascript do -%> jQuery(document).ready(function() { jQuery('#status_update').click(function(){ jQuery('#status-update-field').removeClass('status-update-dim'); jQuery('#status-update-field').addClass('status-update-lit'); }); jQuery("#status_update_form").submit(function() { jQuery("#status-update-field").hide(); jQuery("#submit_status").hide(); jQuery("#progress-bar").show(); }); }); <% end -%>