<%= t('cheesecake.form.editing')%>
New sector
<%= t('cheesecake.form.fields.name')%>:
<%= t('cheesecake.form.fields.color')%>:
<% for i in 0..3 do %>
<%= t('cheesecake.form.fields.subsector')%>
New subsector <%= i %>
>
<%= t('cheesecake.form.fields.name')%>:
<%= t('cheesecake.form.fields.permissions')%>:
<% default_permissions.each_with_index do |p, i| %>
class="checkboxPermissionOptionLeft">
<% end %>
<% end %>
<%= javascript_tag do %> $(function(){ $(".subsector .title").off("click.toggle"); $(".subsector .title").on("click.toggle",function(){ if(!$(this).parent().find(".content").is(':visible')){ $(".subsector .content").each(function(){ if($(this).parent().find(".content").is(':visible')){ $(this).slideToggle(); } }); $(this).parent().find(".content").slideToggle(); } }) }); $(".permissions_field").each(function(){ $(this).tipsy({ delayIn: 500, delayOut: 0, gravity: 'e', offset: 100, opacity: 1, className: 'permissions_explanation_tipsy_menu', html: true, hoverable: true, title: function(){ return $(this).parent().find('.permissions_explanation').html(); } }); }); <% end %>