Sha256: bd5b8b263eae08618b91a2f05653e8a7f3963d71fa8fd343ba82ec0d64828503

Contents?: true

Size: 1.79 KB

Versions: 2

Compression:

Stored size: 1.79 KB

Contents

<div id="status-update">
  <%= output_errors(t('muck.users.problem_with_status'), {:class => 'help-box'}, @activity) %>
  
  <div id="activity-icon"><%= icon activities_object %></div>
  <div id="current-status"><%= render :partial => 'activities/current_status', :locals => {:activities_object => activities_object} %></div>
  <% remote_form_for(:activity, 
                     :url => activities_path(:parent_id => activities_object, :parent_type => activities_object.type, :format => 'js'), 
                     :html => { :id => 'status_update_form', 
                                :action => activities_path(:parent_id => activities_object, :parent_type => activities_object.type) } ) do |f| -%>
    <div id="progress-bar" style="display:none;">
      <h3><%= t('muck.activities.updating_status_message') %></h3>
      <img src="/images/loading.gif" alt="progress bar">
    </div>
    <div id="status-update-field" class="status-update-dim">
      <%= t("muck.activities.status_update_prompt") %>
      <%= f.text_field :content, :id => 'status_update' %>
      <span id="status-update-button">
        <%= f.submit t('muck.activities.post'), :id => 'submit_status', :class=>"button" %>
      </span>
    </div>
    <%= f.hidden_field :template, :value => 'status_update' %>
    <%= f.hidden_field :is_status_update, :value => true %>
  <% end %>
</div>
<% 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 -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
muck-activity-0.1.1 app/views/activities/_status_update.html.erb
muck-activity-0.1.2 app/views/activities/_status_update.html.erb