ui_tabs_accordions.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <!-- start: PAGE TITLE -->
  2. <section id="page-title">
  3. <div class="row">
  4. <div class="col-sm-8">
  5. <h1 class="mainTitle" translate="sidebar.nav.element.TABS">{{ mainTitle }}</h1>
  6. <span class="mainDescription">Allow user to view multiple contents inside "tabbed" sections of the page
  7. </div>
  8. <div ncy-breadcrumb></div>
  9. </div>
  10. </section>
  11. <!-- end: PAGE TITLE -->
  12. <!-- start: TABS -->
  13. <!-- /// controller: 'TabsDemoCtrl' - localtion: assets/js/controllers/bootstrapCtrl.js /// -->
  14. <div ng-controller="TabsDemoCtrl">
  15. <div class="container-fluid container-fullw bg-white">
  16. <div class="row">
  17. <div class="col-md-12">
  18. <h5 class="over-title margin-bottom-15">Togglable <span class="text-bold">Tabs</span></h5>
  19. <p>
  20. Add quick, dynamic tab functionality to transition through panes of content, even via dropdown menus.
  21. </p>
  22. <tabset class="tabbable">
  23. <tab heading="Static title">
  24. <h4>Static content</h4>
  25. <p>
  26. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent.
  27. </p>
  28. <p>
  29. Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
  30. </p>
  31. </tab>
  32. <tab ng-repeat="tab in tabs" heading="{{tab.title}}" active="tab.active" disabled="tab.disabled">
  33. {{tab.content}}
  34. </tab>
  35. <tab select="alertMe()">
  36. <tab-heading>
  37. <i class="glyphicon glyphicon-bell"></i> Alert!
  38. </tab-heading>
  39. I've got an HTML heading, and a select callback. Pretty cool!
  40. </tab>
  41. </tabset>
  42. <p>
  43. <a class="btn btn-primary btn-o" href ng-click="tabs[0].active = true">
  44. Go to tab 2
  45. </a>
  46. <a class="btn btn-primary btn-o" href ng-click="tabs[1].active = true">
  47. Go to tab 3
  48. </a>
  49. <a class="btn btn-default" ng-click="tabs[1].disabled = ! tabs[1].disabled">
  50. Enable / Disable third tab
  51. </a>
  52. </p>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="container-fluid container-fullw">
  57. <div class="row">
  58. <div class="col-lg-6">
  59. <h5 class="over-title margin-bottom-15">Justified <span class="text-bold">Tabs</span></h5>
  60. <p>
  61. Easily make tabs or pills equal widths of their parent. On smaller screens, the nav links are stacked.
  62. </p>
  63. <tabset justified="true" class="tabbable">
  64. <tab heading="Justified">
  65. Justified content
  66. </tab>
  67. <tab heading="SJ">
  68. Short Labeled Justified content
  69. </tab>
  70. <tab heading="Long Justified">
  71. Long Labeled Justified content
  72. </tab>
  73. </tabset>
  74. </div>
  75. <div class="col-lg-6">
  76. <h5 class="over-title margin-bottom-15"><span class="text-bold">Pills</span></h5>
  77. <p>
  78. Take that same HTML, but use <code>type="pills"</code> attribute:
  79. </p>
  80. <tabset class="tabbable" type="pills">
  81. <tab heading="Pill title">
  82. Pill content
  83. </tab>
  84. <tab heading="Pill title 2">
  85. Pill content 2
  86. </tab>
  87. <tab heading="Pill title 3">
  88. Pill content 3
  89. </tab>
  90. </tabset>
  91. </div>
  92. </div>
  93. </div>
  94. <div class="container-fluid container-fullw bg-white">
  95. <div class="row">
  96. <div class="col-lg-6">
  97. <h5 class="over-title margin-bottom-15">Left <span class="text-bold">Tabs</span></h5>
  98. <p>
  99. Add class <code>tabs-left</code> to <code>&lt;tabset&gt;</code>.
  100. </p>
  101. <tabset class="tabbable tabs-left">
  102. <tab>
  103. <tab-heading>
  104. Tab 1
  105. </tab-heading>
  106. <p>
  107. Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth.
  108. </p>
  109. <p>
  110. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
  111. </p>
  112. </tab>
  113. <tab>
  114. <tab-heading>
  115. Tab 2
  116. </tab-heading>
  117. <p>
  118. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est.
  119. </p>
  120. <p>
  121. Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth.
  122. </p>
  123. </tab>
  124. <tab>
  125. <tab-heading>
  126. Tab 3
  127. </tab-heading>
  128. <p>
  129. Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin.
  130. </p>
  131. <p>
  132. Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth.
  133. </p>
  134. </tab>
  135. </tabset>
  136. </div>
  137. <div class="col-lg-6">
  138. <h5 class="over-title margin-bottom-15">Right <span class="text-bold">Tabs</span></h5>
  139. <p>
  140. Add class <code>tabs-right</code> to <code>&lt;tabset&gt;</code>.
  141. </p>
  142. <tabset class="tabbable tabs-right">
  143. <tab>
  144. <tab-heading>
  145. Tab 1
  146. </tab-heading>
  147. <p>
  148. Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth.
  149. </p>
  150. <p>
  151. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.
  152. </p>
  153. </tab>
  154. <tab>
  155. <tab-heading>
  156. Tab 2
  157. </tab-heading>
  158. <p>
  159. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est.
  160. </p>
  161. <p>
  162. Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth.
  163. </p>
  164. </tab>
  165. <tab>
  166. <tab-heading>
  167. Tab 3
  168. </tab-heading>
  169. <p>
  170. Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin.
  171. </p>
  172. <p>
  173. Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth.
  174. </p>
  175. </tab>
  176. </tabset>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <!-- end: TABS -->
  182. <!-- start: UI BOOTSTRAP ACCORDION -->
  183. <!-- /// controller: 'AccordionDemoCtrl' - localtion: assets/js/controllers/bootstrapCtrl.js /// -->
  184. <div ng-controller="AccordionDemoCtrl">
  185. <div class="container-fluid container-fullw">
  186. <div class="row">
  187. <div class="col-lg-12">
  188. <h5 class="over-title margin-bottom-15"><span class="text-bold">Ui Bootsrap Accordions</span></h5>
  189. <p>
  190. The accordion directive builds on top of the collapse directive to provide a list of items, with collapsible bodies that are collapsed or expanded by clicking on the item's header.
  191. </p>
  192. <p>
  193. <button class="btn btn-primary btn-sm" ng-click="status.open = !status.open">
  194. Toggle last panel
  195. </button>
  196. <button class="btn btn-primary btn-sm" ng-click="status.isFirstDisabled = ! status.isFirstDisabled">
  197. Enable / Disable first panel
  198. </button>
  199. </p>
  200. <div class="checkbox clip-check check-primary">
  201. <input type="checkbox" id="ng-model="oneAtATime"" ng-model="oneAtATime">
  202. <label for="ng-model="oneAtATime"">
  203. Open only one at a time
  204. </label>
  205. </div>
  206. <accordion close-others="oneAtATime" class="accordion">
  207. <accordion-group heading="Static Header, initially expanded" is-open="status.isFirstOpen" is-disabled="status.isFirstDisabled">
  208. This content is straight in the template.
  209. </accordion-group>
  210. <accordion-group heading="{{group.title}}" ng-repeat="group in groups">
  211. {{group.content}}
  212. </accordion-group>
  213. <accordion-group heading="Dynamic Body Content">
  214. <p>
  215. The body of the accordion group grows to fit the contents
  216. </p>
  217. <button class="btn btn-default btn-sm" ng-click="addItem()">
  218. Add Item
  219. </button>
  220. <div ng-repeat="item in items">
  221. {{item}}
  222. </div>
  223. </accordion-group>
  224. <accordion-group is-open="status.open">
  225. <accordion-heading>
  226. I can have markup, too! <i class="pull-right fa" ng-class="{'fa-angle-down ': status.open, 'fa-angle-right': !status.open}"></i>
  227. </accordion-heading>
  228. This is just some content to illustrate fancy headings.
  229. </accordion-group>
  230. </accordion>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. <!-- end: UI BOOTSTRAP ACCORDION -->
  236. <!-- start: VACCORDION -->
  237. <div class="container-fluid container-fullw bg-white">
  238. <div class="row">
  239. <div class="col-lg-12">
  240. <h5 class="over-title margin-bottom-15"><span class="text-bold">vAccordion</span></h5>
  241. <p>
  242. AngularJS multi-level accordion component.
  243. </p>
  244. </div>
  245. <!-- /// controller: 'vAccordionCtrl' - localtion: assets/js/controllers/vAccordionCtrl.js /// -->
  246. <div ng-controller="vAccordionCtrl">
  247. <div class="col-md-6">
  248. <div class="panel panel-transparent">
  249. <div class="panel-heading">
  250. <h4 class="panel-title">Works with (or without) ng-repeat</h4>
  251. </div>
  252. <div class="panel-body">
  253. <v-accordion control="firstAccordionControl">
  254. <v-pane ng-repeat="pane in panes" expanded="$last">
  255. <v-pane-header>
  256. <h5>{{ pane.header }}</h5>
  257. </v-pane-header>
  258. <v-pane-content>
  259. <p>
  260. {{ pane.content }}
  261. </p>
  262. <v-accordion ng-if="pane.subpanes">
  263. <v-pane ng-repeat="subpane in pane.subpanes">
  264. <v-pane-header>
  265. <h5>{{ subpane.header }}</h5>
  266. </v-pane-header>
  267. <v-pane-content>
  268. <p>
  269. {{ subpane.content }}
  270. </p>
  271. </v-pane-content>
  272. </v-pane>
  273. </v-accordion>
  274. </v-pane-content>
  275. </v-pane>
  276. </v-accordion>
  277. </div>
  278. </div>
  279. </div>
  280. <div class="col-md-6">
  281. <div class="panel panel-transparent">
  282. <div class="panel-heading">
  283. <h4 class="panel-title">Allows multiple sections open at once</h4>
  284. </div>
  285. <div class="panel-body">
  286. <v-accordion allow-multiple control="secondAccordionControl">
  287. <v-pane ng-repeat="pane in panes" expanded="$first">
  288. <v-pane-header>
  289. <h5>{{ pane.header }}</h5>
  290. </v-pane-header>
  291. <v-pane-content>
  292. <p>
  293. {{ pane.content }}
  294. </p>
  295. <v-accordion allow-multiple ng-if="pane.subpanes">
  296. <v-pane ng-repeat="subpane in pane.subpanes">
  297. <v-pane-header>
  298. <h5>{{ subpane.header }}</h5>
  299. </v-pane-header>
  300. <v-pane-content>
  301. <p>
  302. {{ subpane.content }}
  303. </p>
  304. </v-pane-content>
  305. </v-pane>
  306. </v-accordion>
  307. </v-pane-content>
  308. </v-pane>
  309. </v-accordion>
  310. </div>
  311. </div>
  312. </div>
  313. </div>
  314. </div>
  315. </div>
  316. <!-- end: VACCORDION -->