fix sub role attribute fields
run: Role.any_in(:key=>['department_admin','administrator']).destroy_all for deleting old role data to complete this code.
This commit is contained in:
		
							parent
							
								
									31b583228d
								
							
						
					
					
						commit
						84929f9b4c
					
				|  | @ -1,12 +1,20 @@ | |||
| <div class="map-block back"> | ||||
|   <h4><span><%= role.title %></span></h4> | ||||
|   <div class="form-horizontal"> | ||||
|        | ||||
|     <% role.attribute_fields.each  do |af|%> | ||||
| 
 | ||||
| 
 | ||||
|   <% role.sub_roles.each do |sub_role| %>   | ||||
|       <div id="le"> | ||||
|       <legend><button class="onoff pull-right">ON</button><%= sub_role.title %></legend> | ||||
| 
 | ||||
|     <% sub_role.attribute_fields.each  do |af|%> | ||||
|         <%= af.block_helper(@user,@form_index)%> | ||||
|         <% @form_index = @form_index +1 %> | ||||
|     <% end %> | ||||
|     </div> | ||||
| 
 | ||||
|   <% end %> | ||||
| 
 | ||||
|      | ||||
|   </div> | ||||
| </div> | ||||
		Loading…
	
		Reference in New Issue