<% _.each(controls, function (control) { %> <% if(control.show){ %>
<% if(control.name==='jobType' ) { %> <%- _.__(control.label) %> <%} else { %> <%- _.__(control.label) %>
(<%- _.__('pim_enrich.form.required') %>)
<% } %>
<% if(control.type==='select' ) { %> <% if(control.name==='intervelday' ){ var interveltime='interveltime' } %>
<% selectVal=typeof(model) !=='undefined' && typeof(model[control.name]) !=='undefined' ? model[control.name] : '' %>
<%- _.__('select') %>
<% var options=eval(control.options); %> <% _.each(options, function(option, key){ %>
selected="selected" <% }%> > <%- option %>
<% });%>
<% } 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' ) { %> <% } %>
<% } %> <% }); %>