Sha256: c3f33c37529cc6d1dbfa779e7a0ad1a44be28e1c1dc2cd542463b5634761e4d1

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

<%= form.inputs do %>
  <%= form.input :account, :collection => current_user.memberships.admin.collect(&:account) %>
  <%= form.input :name, :hint => project_url(form.object).html_safe %>
  <%= form.input :keyword, :wrapper_html => { :style => 'display: none' } %>
  <% if form.object.persisted? -%>
    <%= form.input :archived, :hint => t('project.archived.hint', :default => "Archived project don't count against your project total. You cannot create or edit stories or discussions.") %>
  <% end -%>
  <%= form.input :users, :label        => "Admins",
                         :as           => :check_boxes,
                         :collection   => form.object.account.admins,
                         :wrapper_html => { :id => "project_admins_input" },
                         :input_html   => { :disabled => true } %>
  <% if form.object.account.non_admins.any? -%>
    <%= form.input :users, :as => :check_boxes, :collection => form.object.account.non_admins %>
  <% end -%>
<% end %>

<%= content_for :javascript do -%>
  <%= javascript_tag do %>
    $(function() {
      $('#project_account_id').change(function() {
        if($('#project_account_id').val() != "") {
          console.log(window.location);
          window.location.href = window.location.pathname + '?project[account_id]=' + $('#project_account_id').val();
          return false;
        }
      });
    });
  <% end %>
<% end -%>

<%= render :partial => "shared/saucy_javascript" %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
saucy-0.7.1 app/views/projects/_form.html.erb