Sha256: 3cfb8e2c16a1fdb144380989a9e0f594e67748cd95a81d16b11bd36990bcc8a7
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 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 => account_project_url(account, project).html_safe %> <%= form.input :keyword, :wrapper_html => { :style => 'display: none' } %> <% if project.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 => project.account.admins, :wrapper_html => { :id => "project_admins_input" }, :input_html => { :disabled => true } %> <% if account.non_admins.any? -%> <%= form.input :users, :as => :check_boxes, :collection => 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
saucy-0.16.1 | app/views/projects/_form.html.erb |
saucy-0.16.0 | app/views/projects/_form.html.erb |