Sha256: 747bf224163c6716e324289cb5add8f2a4bcf88bcf59208fdb412880a2a54f1a

Contents?: true

Size: 1.57 KB

Versions: 28

Compression:

Stored size: 1.57 KB

Contents

<%= form.inputs do %>
  <% if current_user.memberships.admin.size > 1 -%>
    <%= form.input :account, :collection => current_user.memberships.admin.collect(&:account) %>
  <% else %>
    <%= form.input :account, :as => :hidden, :value => current_account.id %>
  <% end -%>
  <%= 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 content.") %>
  <% 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

28 entries across 28 versions & 1 rubygems

Version Path
saucy-0.15.2 app/views/projects/_form.html.erb
saucy-0.15.1 app/views/projects/_form.html.erb
saucy-0.15.0 app/views/projects/_form.html.erb
saucy-0.14.5 app/views/projects/_form.html.erb
saucy-0.14.3 app/views/projects/_form.html.erb
saucy-0.10.10 app/views/projects/_form.html.erb
saucy-0.14.2 app/views/projects/_form.html.erb
saucy-0.14.1 app/views/projects/_form.html.erb
saucy-0.14.0 app/views/projects/_form.html.erb
saucy-0.13.3 app/views/projects/_form.html.erb
saucy-0.13.2 app/views/projects/_form.html.erb
saucy-0.10.9 app/views/projects/_form.html.erb
saucy-0.10.8 app/views/projects/_form.html.erb
saucy-0.13.1 app/views/projects/_form.html.erb
saucy-0.13.0 app/views/projects/_form.html.erb
saucy-0.12.5 app/views/projects/_form.html.erb
saucy-0.12.4 app/views/projects/_form.html.erb
saucy-0.12.3 app/views/projects/_form.html.erb
saucy-0.12.2 app/views/projects/_form.html.erb
saucy-0.12.1 app/views/projects/_form.html.erb