Guest User

Untitled

a guest
Feb 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. <div
  2. class="product-payment-manager col-md-12 no-left-right-padding"
  3. ng-controller="ProductPaymentManagerController"
  4. >
  5. <div
  6. ng-if="addPaymentMode"
  7. class="add-product-payment product-payment-panel"
  8. data-ng-include="'/modules/product/views/product-payment-manager-add-view.html'"
  9. >
  10. </div>
  11.  
  12. <div
  13. class="product-payment-list product-payment-panel"
  14. ng-class="{
  15. 'edit-mode': editPaymentMode
  16. }"
  17. >
  18. <div
  19. class="header"
  20. ng-if="
  21. !addPaymentMode
  22. "
  23. >
  24. Payment List
  25. </div>
  26. <div
  27. class="body"
  28. ng-if="
  29. !addPaymentMode
  30. "
  31. >
  32. <ul
  33. ng-if="
  34. !hasProductPayment( )
  35. "
  36. >
  37. <li>
  38. <div
  39. class="detail-summary-panel"
  40. >
  41. <div
  42. class="product-payment-detail"
  43. >
  44. <h4
  45. style="
  46. text-transform: capitalize;
  47. "
  48. >
  49. No payment available
  50. </h4>
  51. </div>
  52. </div>
  53. </li>
  54. </ul>
  55.  
  56. <ul
  57. ng-if="
  58. hasProductPayment( )
  59. "
  60. >
  61. <li
  62. ng-class="{
  63. 'view-mode': payment._viewMode,
  64. 'edit-mode': payment._editMode
  65. }"
  66. >
  67. <div
  68. class="detail-summary-panel"
  69. >
  70. <div
  71. class="product-payment-detail"
  72. >
  73. <h4
  74. style="
  75. text-transform: capitalize;
  76. "
  77. >
  78. {{
  79. payment.title
  80. }}
  81. </h4>
  82. <p>
  83. {{
  84. payment.description
  85. }}
  86. </p>
  87. </div>
  88. <div
  89. class="product-payment-detail-summary-control"
  90. >
  91. <span
  92. class="material-icons"
  93. ng-show="
  94. !payment._viewMode
  95. "
  96. ng-click="
  97. toggleViewMode( payment )
  98. "
  99. >
  100. expand_more
  101. </span>
  102. <span
  103. class="material-icons"
  104. ng-show="
  105. payment._viewMode
  106. "
  107. ng-click="
  108. toggleViewMode( payment )
  109. "
  110. >
  111. expand_less
  112. </span>
  113. </div>
  114. </div>
  115. <div
  116. class="detail-panel"
  117. ng-if="
  118. payment._viewMode
  119. "
  120. ng-class="{
  121. 'edit-mode': payment._editMode
  122. }"
  123. data-ng-include="'/modules/product/views/product-payment-manager-detail-view.html'"
  124. >
  125. </div>
  126. <div
  127. class="detail-control-panel"
  128. ng-if="
  129. payment._viewMode
  130. "
  131. >
  132. <div
  133. class="control-panel"
  134. ng-if="
  135. !payment._editMode
  136. "
  137. >
  138. <button
  139. class="btn btn-primary"
  140. ng-click="
  141. activateEditMode( payment )
  142. "
  143. >
  144. Edit
  145. </button>
  146. </div>
  147. <div
  148. class="control-panel"
  149. ng-if="
  150. payment._editMode
  151. "
  152. >
  153. <button
  154. class="btn btn-primary"
  155. ng-click="
  156. savePayment( payment )
  157. "
  158. >
  159. Save
  160. </button>
  161. <button
  162. class="btn btn-default"
  163. style="
  164. float:right;
  165. "
  166. ng-click="
  167. deactivateEditMode( payment )
  168. "
  169. >
  170. Cancel
  171. </button>
  172. </div>
  173. </div>
  174. </li>
  175. </ul>
  176. </div>
  177. </div>
  178. <hr />
  179.  
  180. <div
  181. class="product-payment-control"
  182. ng-if="
  183. !hasProductPayment( )
  184. "
  185. >
  186. <div
  187. class="col-md-12 no-left-right-padding control-group"
  188. ng-if="
  189. !editPaymentMode
  190. && !addPaymentMode
  191. "
  192. >
  193. <button
  194. class="btn btn-primary"
  195. ng-click="
  196. activateAddMode( )
  197. "
  198. >
  199. Add
  200. </button>
  201. </div>
  202. <div
  203. class="col-md-12 no-left-right-padding control-group"
  204. ng-if="
  205. !editPaymentMode
  206. && addPaymentMode
  207. "
  208. >
  209. <button
  210. class="btn btn-primary"
  211. ng-click="
  212. addPayment( payment )
  213. "
  214. >
  215. Save
  216. </button>
  217. <button
  218. class="btn btn-default"
  219. style="
  220. float:right;
  221. "
  222. ng-click="
  223. deactivateAddMode( )
  224. "
  225. >
  226. Cancel
  227. </button>
  228. </div>
  229. </div>
  230. </div>
Add Comment
Please, Sign In to add comment