<% _.each(controls, function (control) { %> <% if(control.show){ %>
<% if(control.type==='select' ) { %> <% if(control.name==='intervelday' ){ var interveltime='interveltime' } %> <% } else if(control.type==='checkbox' ){%> <% checkVal=typeof(model) !=='undefined' && typeof(model[control.name]) !=='undefined' ? model[control.name] : '' %> <% checkVal=checkVal==='true' ? 'checked' : '' %>
>
<%} else { %> <% val=typeof(model) !=='undefined' && typeof(model[control.name]) !=='undefined' ? model[control.name] : '' %> <% placeholder='' %> <% if(control.name==='custom_cron' ) { %> <% placeholder=typeof(model) !=='undefined' && typeof(model[control.name]) !=='undefined' ? model[control.name] : (typeof(control.defaultdata) !=='undefined' ? control.defaultdata : '' ) %> <% } %> <% } %>
<% if(control.name==='custom_cron' ) { %> <% } %> <% if(typeof(errors)!='undefined' && typeof(errors[control.name]) !='undefined' ) { %> <% } %>
<% } %> <% }); %>