You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
919 B
JavaScript
39 lines
919 B
JavaScript
import _Cart from './_Cart.js';
|
|
import BaseListItem from './BaseListItem.js';
|
|
|
|
var BaseBrowser = function(){
|
|
return {
|
|
view: function(){
|
|
var lenses = [];
|
|
return m('.base-listing', [
|
|
m('table.table.table-striped', [
|
|
m('thead', [
|
|
m('tr', [
|
|
m('th', 'Base'),
|
|
m('th', 'Add'),
|
|
m('th', 'Material'),
|
|
m('th', 'AR'),
|
|
m('th', 'Photochromatic'),
|
|
m('th', 'Price'),
|
|
m('th', 'Quantity')
|
|
])
|
|
]),
|
|
m('tbody', [
|
|
lenses.map(function(lens){
|
|
return m(BaseListItem, {lens: lens});
|
|
}),
|
|
m('tr', [
|
|
m('td.text-center', {colspan: 7}, [
|
|
m('button.btn.btn-primary.btn-lg.btn-block', [
|
|
m('i.icon.icon-plus')
|
|
])
|
|
])
|
|
])
|
|
])
|
|
])
|
|
]);
|
|
}
|
|
};
|
|
}
|
|
|
|
export default BaseBrowser; |