<% _.each(controls, function (control) { %>
<% if(control.type === 'password') { %> readonly <%}%> required> <% } else { %> readonly <%}%> required> <% } %>
<% }); %>
<% if(storeViews && Object.keys(storeViews).length) { %>
<%- _.__("Store view Mappings") %>

<%- _.__('magento2.currency_setup_info') %>

<%- _.__('magento2.setup.common_currency_info') %>

<%- _.__('magento2.setup.different_currency_info') %>

<% var websitesIds = []; %> <% if('undefined' !== typeof(storeMapping['allStoreView']) && 'undefined' !== typeof(storeMapping['allStoreView']['locale']) && storeMapping['allStoreView']['locale']) { selectedVal = storeMapping['allStoreView']['locale']; } else { selectedVal = null; } %> <% _.each(storeViews, function(mapping, key) { if(mapping.website_id) { %> <% if(!_.contains(websitesIds, mapping.website_id)) { var storesCount = _.countBy(storeViews, function(storeView) { return storeView.website_id == mapping.website_id ? "count" : 'uncount'; }); %> <% websitesIds.push(mapping.website_id) %> <% } %> <% if('undefined' !== typeof(storeMapping[mapping.code]) && 'undefined' !== typeof(storeMapping[mapping.code]['locale']) && storeMapping[mapping.code]['locale']) { selectedVal = storeMapping[mapping.code]['locale']; } else { selectedVal = null; } %> <% } }); %>
<%- _.__('magento2.website_ids') %> <%- _.__('magento2.select.store_view') %> <%- _.__('magento2.channel') %> <%- _.__('magento2.locale') %> <%- _.__('Currencies') %>
All Store View** All Store View <% if('undefined' !== typeof(storeMapping['allStoreView']) && 'undefined' !== typeof(storeMapping['allStoreView']['channel']) && storeMapping['allStoreView']['channel']) { selectedChannelVal = storeMapping['allStoreView']['channel']; } else { selectedChannelVal = null; } %> <% if('undefined' !== typeof(storeMapping['allStoreView']) && 'undefined' !== typeof(storeMapping['allStoreView']['currency']) && storeMapping['allStoreView']['currency']) { selectedVal = storeMapping['allStoreView']['currency']; } else { selectedVal = null; } %>
<%- 'Website Id : ' + mapping.website_id %> <%- mapping.name %> <% if('undefined' !== typeof(storeMapping[mapping.code]) && 'undefined' !== typeof(storeMapping[mapping.code]['channel']) && storeMapping[mapping.code]['channel']) { selectedChannelVal = storeMapping[mapping.code]['channel']; } else { selectedChannelVal = null; } %> <% if('undefined' !== typeof(storeMapping[mapping.code]) && 'undefined' !== typeof(storeMapping[mapping.code]['currency']) && storeMapping[mapping.code]['currency']) { selectedVal = storeMapping[mapping.code]['currency']; } else { selectedVal = null; } %>
<% } else { %>
<%- _.__('Save credentials first !!') %>
<% } %>