Sha256: da7d20f8c119e042063526c65e332ca25da400245e8aa766454c30a86d9a7daa

Contents?: true

Size: 1.61 KB

Versions: 10

Compression:

Stored size: 1.61 KB

Contents

<div id="status-update">
  <%= 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| -%>
    <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

10 entries across 10 versions & 2 rubygems

Version Path
muck-activities-0.1.8 app/views/activities/_status_update.html.erb
muck-activities-0.1.9 app/views/activities/_status_update.html.erb
muck-activities-0.1.10 app/views/activities/_status_update.html.erb
muck-activities-0.1.11 app/views/activities/_status_update.html.erb
muck-activities-0.1.12 app/views/activities/_status_update.html.erb
muck-activities-0.1.13 app/views/activities/_status_update.html.erb
muck-activities-0.1.14 app/views/activities/_status_update.html.erb
muck-activities-0.1.7 app/views/activities/_status_update.html.erb
muck-activity-0.1.5 app/views/activities/_status_update.html.erb
muck-activity-0.1.6 app/views/activities/_status_update.html.erb