Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div className="row clearfix">
- <div className="col-lg-2 col-md-2 col-sm-4 col-xs-5 form-control-label">
- <label>Detail Paket </label>
- </div>
- <br/>
- <div className="col-lg-6 col-md-6 col-sm-6 col-xs-6">
- <p>Untuk Menghapus Produk dari paket, Ketik 0 di kolom jumlah</p>
- </div>
- <div className="col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <div className="body table-responsive">
- <table className="table">
- <thead>
- <tr>
- <th>Nama Produk</th>
- <th>Jumlah</th>
- {/* <th>Unset Jumlah</th> */}
- <th>Harga Jual</th>
- <th>Harga Keseluruhan</th>
- </tr>
- </thead>
- <tbody>
- {
- this.state.detailProducts.map((item,i) =>
- <tr key={i}>
- <td>{item.name}</td>
- <td>
- {item.jumlah}
- {/* <input type="text" name="jumlah" value={item.jumlah} id="jumlah" className="form-control" required/> */}
- </td>
- {/* <td>
- <input type="number" name="jumlah" id="jumlah" className="form-control" required/>
- </td> */}
- <td>{formatterPrice(item.harga_jual)}</td>
- <td>{formatterPrice(item.jumlah * item.harga_jual)}</td>
- </tr>
- )
- }
- {/* {
- this.state.detailProducts.map((item,i) =>
- <li key={i}>{ item.name } jumlah { item.jumlah }</li>
- )
- } */}
- </tbody>
- </table>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement