/docs/sections/basics/content.html

https://gitlab.com/ricoru21/py_incidencia · HTML · 236 lines · 187 code · 31 blank · 18 comment · 0 complexity · 0fe612ea1760fe60fd3bc6e56f352aea MD5 · raw file

  1. <section>
  2. <h1 class="blue" data-id="#basics/content"><i class="ace-icon fa fa-desktop grey"></i> Content</h1>
  3. <div class="hr hr-double hr32"></div>
  4. <!-- #section:basics/content -->
  5. <div class="help-content">
  6. <h3 class="info-title smaller">1. Layout</h3>
  7. <div class="info-section">
  8. <ul class="info-list list-unstyled">
  9. <li>
  10. Default HTML layout used for content area is:
  11. <ol>
  12. <li>
  13. <b>breadcrumbs</b> and searchbox
  14. </li>
  15. <li>
  16. <b>page title</b> optional
  17. </li>
  18. <li>
  19. <b>page conent</b>
  20. </li>
  21. <li>
  22. <b>settings box</b> optional
  23. </li>
  24. </ol>
  25. <div class="space-4"></div>
  26. <pre data-language="html">
  27. <div class="main-container" id="main-container">
  28. <!-- sidebar here -->
  29. <div class="main-content">
  30. <div class="breadcrumbs" id="breadcrumbs">
  31. <!-- breadcrumbs here -->
  32. </div>
  33. <div class="page-content">
  34. <div class="ace-settings-container" id="ace-settings-container">
  35. <!-- settings box goes here -->
  36. </div>
  37. <div class="page-header">
  38. <!-- page header goes here -->
  39. </div>
  40. <div class="row">
  41. <div class="col-xs-12">
  42. <!-- page content goes here -->
  43. </div>
  44. </div>
  45. </div><!-- /.page-content -->
  46. </div><!-- /.main-content -->
  47. <a class="btn-scroll-up" id="btn-scroll-up">
  48. ...
  49. </a>
  50. </div><!-- /.main-container -->
  51. </pre>
  52. </li>
  53. <li>
  54. Starting with the following file you can find more details:
  55. <br />
  56. <code data-open-file="html" class="open-file"><span class="brief-show">mustache/app/views/layouts/</span>default.mustache</code>
  57. </li>
  58. </ul><!-- /.info-list -->
  59. </div><!-- /.info-section -->
  60. <h3 class="info-title smaller" data-id="#basics/content.breadcrumbs">2. Breadcrumbs</h3>
  61. <!-- #section:basics/content.breadcrumbs -->
  62. <div class="info-section">
  63. <ul class="info-list list-unstyled">
  64. <li>
  65. <code>.breadcrumbs</code> is inside <code>.main-content</code> and
  66. contains <code>ul.breadcrumb</code> and searchbox.
  67. <br />
  68. <pre data-language="html">
  69. <div id="breadcrumbs" class="breadcrumbs">
  70. <ul class="breadcrumb">
  71. <li><i class="fa fa-home home-icon"></i> <a href="#">Home</a></li>
  72. <li><a href="#">...</a></li>
  73. <li><a href="#">...</a></li>
  74. <li class="active">...</li>
  75. </ul><!-- /.breadcrumb -->
  76. <!-- searchbox -->
  77. </div>
  78. </pre>
  79. </li>
  80. <li>
  81. For an example on generating breadcrumbs list in your application,
  82. see <a href="#basics/sidebar.mark_active" class="help-more">sidebar active item</a> section.
  83. </li>
  84. </ul><!-- /.info-list -->
  85. </div><!-- /.info-section -->
  86. <!-- /section:basics/content.breadcrumbs -->
  87. <h3 class="info-title smaller" data-id="#basics/content.searchbox">3. Search box</h3>
  88. <!-- #section:basics/content.searchbox -->
  89. <div class="info-section">
  90. <ul class="info-list list-unstyled">
  91. <li>
  92. Search box is inside <code>.breadcrumbs</code>
  93. <br />
  94. You can also have a search box inside <a href="#basics/navbar.form" class="help-more">.navbar</a>
  95. </li>
  96. <li>
  97. <pre data-language="html">
  98. <div id="nav-search" class="nav-search">
  99. <form class="form-search">
  100. <span class="input-icon">
  101. <input type="text" class="nav-search-input" id="nav-search-input" autocomplete="off" placeholder="Search ..." />
  102. <i class="ace-icon fa fa-search nav-search-icon"></i>
  103. </span>
  104. </form>
  105. </div>
  106. </pre>
  107. </li>
  108. <li>
  109. Optional auto complete is powered by
  110. <a href="#plugins/bootstrap.typeahead" class="help-more">typeahead plugin</a> of Bootstrap 2,
  111. which has been removed in Bootstrap 3, but is lightweight and functional.
  112. <br />
  113. <pre data-language="javascript">
  114. //auto complete's data source is a static array
  115. $('#nav-search-input').typeahead({
  116. source: some_static_array,
  117. updater: function (item) {
  118. //when an item is selected from dropdown menu, focus back to input element
  119. $('#nav-search-input').focus();
  120. return item;
  121. }
  122. });
  123. </pre>
  124. You can also retrieve auto complete data from a remote database:
  125. <pre data-language="javascript">
  126. //auto complete's data is dynamically retrieved from server
  127. source: function(query, process) {
  128. $.ajax({url: 'source.php?q='+encodeURIComponent(query)}).done(function(result_items){
  129. process(result_items);
  130. })
  131. }
  132. </pre>
  133. </li>
  134. <li>
  135. Adding <code>.minimized</code> class to <code>.nav-search</code> makes it minimized by default:
  136. <pre data-language="html">
  137. <div id="nav-search" class="nav-search minimized">
  138. ...
  139. </div>
  140. </pre>
  141. </li>
  142. </ul><!-- /.info-list -->
  143. </div><!-- /.info-section -->
  144. <!-- /section:basics/content.searchbox -->
  145. <h3 class="info-title smaller" data-id="#basics/content.content">4. Page Title &amp; Content</h3>
  146. <!-- #section:basics/content.content -->
  147. <div class="info-section">
  148. <ul class="info-list list-unstyled">
  149. <li>
  150. <code>.page-content</code> should be after (optional) <code>.breadcrumbs</code>
  151. </li>
  152. <li>
  153. It contains optional settings box, optional header and the content area:
  154. <pre data-language="html">
  155. <div class="page-content">
  156. <div class="ace-settings-container" id="ace-settings-container">
  157. <!-- settings box goes here -->
  158. </div>
  159. <div class="page-header">
  160. <!-- page header goes here -->
  161. </div>
  162. <div class="row">
  163. <div class="col-xs-12">
  164. <!-- page content goes here -->
  165. </div>
  166. </div>
  167. </div><!-- /.page-content -->
  168. </pre>
  169. </li>
  170. <li>
  171. Optional page header consists of a heading text and smaller description:
  172. <pre data-language="html">
  173. <div class="page-header">
  174. <h1>
  175. Dashboard
  176. <small><i class="ace-icon fa fa-angle-double-right"></i> overview &amp; stats</small>
  177. </h1>
  178. </div>
  179. </pre>
  180. </li>
  181. <li>
  182. Please note that page content must be wrapped inside <code>.row</code> and <code>.col-xs-12</code>
  183. <pre data-language="html">
  184. <div class="row">
  185. <div class="col-xs-12">
  186. <!-- page content goes here -->
  187. </div>
  188. </div>
  189. </pre>
  190. </li>
  191. </ul><!-- /.info-list -->
  192. </div><!-- /.info-section -->
  193. <!-- /section:basics/content.content -->
  194. <h3 class="info-title smaller">5. Settings Box</h3>
  195. <div class="info-section">
  196. <ul class="info-list list-unstyled">
  197. <li>
  198. Settings box is optional.
  199. For more info please see <a href="#settings.box" class="help-more">settings box section</a>
  200. </li>
  201. </ul><!-- /.info-list -->
  202. </div><!-- /.info-section -->
  203. </div><!-- /.help-content -->
  204. <!-- /section:basics/content -->
  205. </section>