Guest User

Untitled

a guest
Jan 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <template>
  2. <div class="container">
  3. <h1 class="text-center">List member</h1>
  4. <table class="table table-bordered">
  5. <thead>
  6. <tr>
  7. <th class="text-center">ID</th>
  8. <th class="text-center">Name</th>
  9. <th class="text-center">Birthday</th>
  10. <th class="text-center">Score</th>
  11. <th class="text-center">Action</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. <tr v-for="person in people">
  16. <td class="text-center">{{ person.id }}</td>
  17. <td class="text-center">{{ person.name }}</td>
  18. <td class="text-center">{{ person.birthday }}</td>
  19. <td class="text-center">{{ person.score }}</td>
  20. <td class="text-center">
  21. <b-btn v-b-modal.my-modal>Edit</b-btn>
  22. </td>
  23. </tr>
  24. </tbody>
  25. </table>
  26.  
  27. <!-- Modal Component -->
  28. <b-modal id="my-modal" ref="modal" title="Edit profile" @ok="handleOk"
  29. @shown="clearName">
  30. <form @submit.stop.prevent="handleSubmit">
  31. <b-form-input type="text">{{ person.name }}</b-form-input>
  32. <br>
  33. <b-form-input type="text"></b-form-input>
  34. <br>
  35. <b-form-input type="text"></b-form-input>
  36. </form>
  37. </b-modal>
  38. </div>
  39. </div>
  40. </template>
Add Comment
Please, Sign In to add comment