方诺官网改正版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

227 lines
8.0 KiB

  1. <template>
  2. <div>
  3. <h2 class="intro-y text-lg font-medium mt-10">Data List Layout</h2>
  4. <div class="grid grid-cols-12 gap-6 mt-5">
  5. <div
  6. class="intro-y col-span-12 flex flex-wrap sm:flex-no-wrap items-center mt-2"
  7. >
  8. <button class="button text-white bg-theme-1 shadow-md mr-2">
  9. Add New Product
  10. </button>
  11. <div class="dropdown">
  12. <button
  13. class="dropdown-toggle button px-2 box text-gray-700"
  14. >
  15. <span class="w-5 h-5 flex items-center justify-center">
  16. <PlusIcon class="w-4 h-4" />
  17. </span>
  18. </button>
  19. <div class="dropdown-box w-40">
  20. <div class="dropdown-box__content box p-2">
  21. <a
  22. href=""
  23. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  24. >
  25. <PrinterIcon class="w-4 h-4 mr-2" /> Print
  26. </a>
  27. <a
  28. href=""
  29. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  30. >
  31. <FileTextIcon class="w-4 h-4 mr-2" /> Export to Excel
  32. </a>
  33. <a
  34. href=""
  35. class="flex items-center block p-2 transition duration-300 ease-in-out bg-white hover:bg-gray-200:bg-dark-2 rounded-md"
  36. >
  37. <FileTextIcon class="w-4 h-4 mr-2" /> Export to PDF
  38. </a>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="hidden md:block mx-auto text-gray-600">
  43. Showing 1 to 10 of 150 entries
  44. </div>
  45. <div class="w-full sm:w-auto mt-3 sm:mt-0 sm:ml-auto md:ml-0">
  46. <div class="w-56 relative text-gray-700">
  47. <input
  48. type="text"
  49. class="input w-56 box pr-10 placeholder-theme-13"
  50. placeholder="Search..."
  51. />
  52. <SearchIcon
  53. class="w-4 h-4 absolute my-auto inset-y-0 mr-3 right-0"
  54. />
  55. </div>
  56. </div>
  57. </div>
  58. <!-- BEGIN: Data List -->
  59. <div class="intro-y col-span-12 overflow-auto lg:overflow-visible">
  60. <table class="table table-report -mt-2">
  61. <thead>
  62. <tr>
  63. <th class="whitespace-no-wrap">IMAGES</th>
  64. <th class="whitespace-no-wrap">PRODUCT NAME</th>
  65. <th class="text-center whitespace-no-wrap">STOCK</th>
  66. <th class="text-center whitespace-no-wrap">STATUS</th>
  67. <th class="text-center whitespace-no-wrap">ACTIONS</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. <tr
  72. v-for="(faker, fakerKey) in $_.take($f(), 9)"
  73. :key="fakerKey"
  74. class="intro-x"
  75. >
  76. <td class="w-40">
  77. <div class="flex">
  78. <div class="w-10 h-10 image-fit zoom-in">
  79. <Tippy
  80. tag="img"
  81. alt=""
  82. class="rounded-full"
  83. :src="require(`@/assets/images/${faker.images[0]}`)"
  84. :content="`Uploaded at ${faker.dates[0]}`"
  85. />
  86. </div>
  87. <div class="w-10 h-10 image-fit zoom-in -ml-5">
  88. <Tippy
  89. tag="img"
  90. alt=""
  91. class="rounded-full"
  92. :src="require(`@/assets/images/${faker.images[1]}`)"
  93. :content="`Uploaded at ${faker.dates[0]}`"
  94. />
  95. </div>
  96. <div class="w-10 h-10 image-fit zoom-in -ml-5">
  97. <Tippy
  98. tag="img"
  99. alt=""
  100. class="rounded-full"
  101. :src="require(`@/assets/images/${faker.images[2]}`)"
  102. :content="`Uploaded at ${faker.dates[0]}`"
  103. />
  104. </div>
  105. </div>
  106. </td>
  107. <td>
  108. <a href="" class="font-medium whitespace-no-wrap">{{
  109. faker.products[0].name
  110. }}</a>
  111. <div class="text-gray-600 text-xs whitespace-no-wrap">
  112. {{ faker.products[0].category }}
  113. </div>
  114. </td>
  115. <td class="text-center">{{ faker.stocks[0] }}</td>
  116. <td class="w-40">
  117. <div
  118. class="flex items-center justify-center"
  119. :class="{
  120. 'text-theme-9': faker.true_false[0],
  121. 'text-theme-6': !faker.true_false[0]
  122. }"
  123. >
  124. <CheckSquareIcon class="w-4 h-4 mr-2" />
  125. {{ faker.true_false[0] ? "Active" : "Inactive" }}
  126. </div>
  127. </td>
  128. <td class="table-report__action w-56">
  129. <div class="flex justify-center items-center">
  130. <a class="flex items-center mr-3" href="javascript:;">
  131. <CheckSquareIcon class="w-4 h-4 mr-1" />
  132. Edit
  133. </a>
  134. <a
  135. class="flex items-center text-theme-6"
  136. href="javascript:;"
  137. data-toggle="modal"
  138. data-target="#delete-confirmation-modal"
  139. >
  140. <Trash2Icon class="w-4 h-4 mr-1" /> Delete
  141. </a>
  142. </div>
  143. </td>
  144. </tr>
  145. </tbody>
  146. </table>
  147. </div>
  148. <!-- END: Data List -->
  149. <!-- BEGIN: Pagination -->
  150. <div
  151. class="intro-y col-span-12 flex flex-wrap sm:flex-row sm:flex-no-wrap items-center"
  152. >
  153. <ul class="pagination">
  154. <li>
  155. <a class="pagination__link" href="">
  156. <ChevronsLeftIcon class="w-4 h-4" />
  157. </a>
  158. </li>
  159. <li>
  160. <a class="pagination__link" href="">
  161. <ChevronLeftIcon class="w-4 h-4" />
  162. </a>
  163. </li>
  164. <li>
  165. <a class="pagination__link" href="">...</a>
  166. </li>
  167. <li>
  168. <a class="pagination__link" href="">1</a>
  169. </li>
  170. <li>
  171. <a class="pagination__link pagination__link--active" href="">2</a>
  172. </li>
  173. <li>
  174. <a class="pagination__link" href="">3</a>
  175. </li>
  176. <li>
  177. <a class="pagination__link" href="">...</a>
  178. </li>
  179. <li>
  180. <a class="pagination__link" href="">
  181. <ChevronRightIcon class="w-4 h-4" />
  182. </a>
  183. </li>
  184. <li>
  185. <a class="pagination__link" href="">
  186. <ChevronsRightIcon class="w-4 h-4" />
  187. </a>
  188. </li>
  189. </ul>
  190. <select class="w-20 input box mt-3 sm:mt-0">
  191. <option>10</option>
  192. <option>25</option>
  193. <option>35</option>
  194. <option>50</option>
  195. </select>
  196. </div>
  197. <!-- END: Pagination -->
  198. </div>
  199. <!-- BEGIN: Delete Confirmation Modal -->
  200. <div id="delete-confirmation-modal" class="modal">
  201. <div class="modal__content">
  202. <div class="p-5 text-center">
  203. <xCircleIcon class="w-16 h-16 text-theme-6 mx-auto mt-3" />
  204. <div class="text-3xl mt-5">Are you sure?</div>
  205. <div class="text-gray-600 mt-2">
  206. Do you really want to delete these records? This process cannot be
  207. undone.
  208. </div>
  209. </div>
  210. <div class="px-5 pb-8 text-center">
  211. <button
  212. type="button"
  213. data-dismiss="modal"
  214. class="button w-24 border text-gray-700 mr-1"
  215. >
  216. Cancel
  217. </button>
  218. <button type="button" class="button w-24 bg-theme-6 text-white">
  219. Delete
  220. </button>
  221. </div>
  222. </div>
  223. </div>
  224. <!-- END: Delete Confirmation Modal -->
  225. </div>
  226. </template>