<%  @calendar_view_disable=1    %>
<div class="settings_common_container" style="width:800px;left:calc(50% - 400px)">

	<div class="settings_common_header">
		
		<%= link_to t(:cancel), settings_filters_path, class:"href_delete_button", style:"float:left" %>
		<div class="settings_common_header_text"><div onclick="settings_filters_create_new_filter('update_filter')" style="width:160px;position:relative" class="button"><%= t('.edit_filter') %></div></div>
	</div>
	<%= render partial: "shared/filter_template" , locals: {} %>
		
		</table>
	</div>
</div>

<script>
//window.onload = function(){
	document.getElementById('settings_filters_new_filter_name').value='<%= CustomFilter.find(params[:id]).name %>'
	settings_filters_operation_array=<%= raw Operation.joins(:operation_type,:operation_source).select(:id,:name,:color,:short_name,'"operation_types"."name" as type_name').where(:id => OperationFilter.where(:custom_filter_id => params[:id]).select(:operation_id)).to_json %>
	settings_filters_login_array=<%= raw Login.select(:id).login_name('name').where(:id => LoginFilter.where(:custom_filter_id => params[:id]).select(:login_id)).to_json %>
	settings_filters_build_operations()
	settings_filters_build_logins()
//}
</script>


