viplist.component.html 2.4 KB


<div class="container-fluid">

  <div class="row bg-primary text-white titlerow">
    <div class="col">Isäntä</div>
    <div class="col-3">Nimi</div>
    <div class="col">Kuvaus</div>
    <div class="col-4">Tuotteet</div>
    <div class="col">Muokkaa</div>
  </div>

  <div  *ngFor="let vip of vips | async" class="row contentrow">


      <div class="col">{{vip.host.firstname}}</div>
      <div class="col-3"><b>{{vip.shortdescr}}</b></div>
      <div class="col">{{vip.description}}</div>
      <div class="col-4">
        <div *ngFor="let p of vip.products" class="row">

          <div style="display: inline-block;">{{p.name}}</div>
          <div style="display: inline-block;">{{p.quantity}}</div>
          <div style="display: inline-block; flex: 1;"> </div>
          <div style="display: inline-block;"><button type="button" class="btn btn-default">Toimita</button></div>

        </div>
      </div>

      <div class="col">todo</div>

  </div>



  <div  *ngFor="let vip of vips | async" class="row contentrow">


    <div class="col">{{vip.host.firstname}}</div>
    <div class="col-3"><b>{{vip.shortdescr}}</b></div>
    <div class="col">{{vip.description}}</div>
    <div class="col-4">
      <div *ngFor="let p of vip.products" class="row">

        <div style="display: inline-block;">{{p.name}}</div>
        <div style="display: inline-block;">{{p.quantity}}</div>
        <div style="display: inline-block; flex: 1;"> </div>
        <div style="display: inline-block;"><button type="button" class="btn btn-default">Toimita</button></div>

      </div>
    </div>

    <div class="col">todo</div>

  </div>


</div>
<br /><br />
<br /><br />
<br /><br />

<!--

<table class="table table-striped">

  <thead>
  <tr class="bg-primary text-white">
    <th>Isäntä</th>
    <th>Nimi</th>
    <th>Kuvaus</th>
    <th>Tuotteet</th>
    <th>Muokkaa</th>
  </tr>
  </thead>
  <tbody>
    <tr  *ngFor="let vip of vips | async" >

      <td class="">Kekkonen kekkonen</td>
      <td class=""><b>{{vip.shortdescr}}</b></td>
      <td class="">{{vip.description}}</td>
      <td class="">
        <div *ngFor="let p of vip.products" class="productsRow">

          <div>{{p.name}}</div>
          <div>{{p.quantity}}</div>
          <div style="flex: 1;"> </div>
          <div><button type="button" class="btn btn-default">Toimita</button></div>

        </div>
      </td>

      <td class="">todo</td>

    </tr>

  </tbody>

</table>
-->