card-actions.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. ---
  2. title: Card actions
  3. page-header: Card actions
  4. menu: base.cards.actions
  5. ---
  6. <div class="row row-cards">
  7. <div class="col-md-6">
  8. <div class="card">
  9. <div class="card-header">
  10. <h3 class="card-title">Sample card</h3>
  11. </div>
  12. {% include cards/body-placeholder.html %}
  13. </div>
  14. </div>
  15. <div class="col-md-6">
  16. <div class="card">
  17. <div class="card-header">
  18. <h3 class="card-title">Card with action</h3>
  19. <div class="card-actions">
  20. {% include ui/button.html color="primary" icon="plus" text="Add new" %}
  21. </div>
  22. </div>
  23. {% include cards/body-placeholder.html %}
  24. </div>
  25. </div>
  26. <div class="col-md-6">
  27. <div class="card">
  28. <div class="card-header">
  29. <h3 class="card-title">Cart title</h3>
  30. <div class="card-actions">
  31. {% include ui/button.html icon="phone" text="Phone" %}
  32. {% include ui/button.html icon="mail" text="Email" %}
  33. </div>
  34. </div>
  35. {% include cards/body-placeholder.html %}
  36. </div>
  37. </div>
  38. {% assign person = site.data.people[0] %}
  39. <div class="col-md-6">
  40. <div class="card">
  41. <div class="card-header">
  42. <div>
  43. <div class="row align-items-center">
  44. <div class="col-auto">
  45. {% include ui/avatar.html person=person %}
  46. </div>
  47. <div class="col">
  48. <div class="card-title">{{ person.full_name }}</div>
  49. <div class="card-subtitle">{{ person.job_title }}</div>
  50. </div>
  51. </div>
  52. </div>
  53. <div class="card-actions">
  54. {% include ui/button.html icon="phone" text="Phone" %}
  55. {% include ui/button.html icon="mail" text="Email" %}
  56. </div>
  57. </div>
  58. {% include cards/body-placeholder.html %}
  59. </div>
  60. </div>
  61. <div class="col-md-6">
  62. <div class="card">
  63. <div class="card-header">
  64. <div>
  65. <h3 class="card-title">
  66. With description
  67. </h3>
  68. <p class="card-subtitle">
  69. Lorem ipsum dolor sit amet consectetur adipisicing.
  70. </p>
  71. </div>
  72. </div>
  73. {% include cards/body-placeholder.html %}
  74. </div>
  75. </div>
  76. <div class="col-md-6">
  77. <div class="card">
  78. <div class="card-header">
  79. <div>
  80. <h3 class="card-title">
  81. With description and action
  82. </h3>
  83. <p class="card-subtitle">
  84. Lorem ipsum dolor sit amet consectetur adipisicing.
  85. </p>
  86. </div>
  87. <div class="card-actions">
  88. {% include ui/button.html color="primary" text="Create new job" %}
  89. </div>
  90. </div>
  91. {% include cards/body-placeholder.html %}
  92. </div>
  93. </div>
  94. {% assign person = site.data.people[3] %}
  95. <div class="col-md-6">
  96. <div class="card">
  97. <div class="card-header">
  98. <div>
  99. <div class="row align-items-center">
  100. <div class="col-auto">
  101. {% include ui/avatar.html person=person %}
  102. </div>
  103. <div class="col">
  104. <div class="card-title">{{ person.full_name }}</div>
  105. <div class="card-subtitle">{{ person.job_title }}</div>
  106. </div>
  107. </div>
  108. </div>
  109. <div class="card-actions">
  110. <div class="dropdown">
  111. <a href="#" class="btn-action dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{% include ui/icon.html icon="dots-vertical" %}</a>
  112. <div class="dropdown-menu dropdown-menu-end">
  113. <a class="dropdown-item" href="#">Edit user</a>
  114. <a class="dropdown-item" href="#">Change permissions</a>
  115. <a class="dropdown-item text-danger" href="#">Delete user</a>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. {% include cards/body-placeholder.html %}
  121. </div>
  122. </div>
  123. <div class="col-md-6">
  124. <div class="card">
  125. <div class="card-header">
  126. <h3 class="card-title">Card actions</h3>
  127. <div class="card-actions btn-actions">
  128. <a href="#" class="btn-action" >{% include ui/icon.html icon="refresh" %}</a>
  129. <a href="#" class="btn-action" >{% include ui/icon.html icon="chevron-up" %}</a>
  130. <a href="#" class="btn-action" >{% include ui/icon.html icon="dots-vertical" %}</a>
  131. <a href="#" class="btn-action" >{% include ui/icon.html icon="x" %}</a>
  132. </div>
  133. </div>
  134. {% include cards/body-placeholder.html %}
  135. </div>
  136. </div>
  137. </div>