form.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!DOCTYPE html>
  2. <!--HTML5 doctype-->
  3. <html>
  4. <head>
  5. <title>Form Example Template</title>
  6. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui">
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  11. <link rel="stylesheet" type="text/css" href="../build/icons.css" />
  12. <link rel="stylesheet" type="text/css" href="../build/af.ui.css" />
  13. <script type="text/javascript" charset="utf-8" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  14. <script type="text/javascript" charset="utf-8" src="http://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.3/fastclick.min.js"></script>
  15. <script type="text/javascript" charset="utf-8" src="../build/appframework.ui.js"></script>
  16. </head>
  17. <body>
  18. <div id="splashscreen" class='ui-loader heavy'>
  19. App Framework - Form
  20. <br>
  21. <br>
  22. <span class='ui-icon ui-icon-loading spin'></span>
  23. <h1>Starting app</h1>
  24. </div>
  25. <div class="view" id="mainview">
  26. <header>
  27. <h1>Form Example</h1>
  28. </header>
  29. <div class="pages">
  30. <!--List of Form Elements-->
  31. <div class="panel" data-title="Form" id="list" data-selected="true">
  32. <div class="formGroupHead">Standard</div>
  33. <form>
  34. <input type="range">
  35. <input type="text" placeholder="test">
  36. <input type="search" placeholder="search">
  37. <textarea rows="6" placeholder="Enter your address"></textarea>
  38. </form>
  39. <div class="formGroupHead">Grouping</div>
  40. <form>
  41. <div class="input-group">
  42. <input type="text" placeholder="test">
  43. <input type="search" placeholder="search">
  44. <textarea rows="6" placeholder="Enter your address"></textarea>
  45. </div>
  46. </form>
  47. <div class="formGroupHead">Labeled</div>
  48. <form>
  49. <label for="test1">First Name</label>
  50. <input id="test1" type="text" placeholder="test">
  51. <label for="test2">Search</label>
  52. <input id="test2" type="search" placeholder="search">
  53. <label for="test3">Info Name</label>
  54. <textarea id="test3" rows="6" placeholder="Enter your address"></textarea>
  55. </form>
  56. <form>
  57. <div class="input-group">
  58. <label for="test1">First Name</label>
  59. <input id="test1" type="text" placeholder="test">
  60. <label for="test2">Search</label>
  61. <input id="test2" type="search" placeholder="search">
  62. <label for="test3">Info Name</label>
  63. <textarea id="test3" rows="6" placeholder="Enter your address"></textarea>
  64. <input type="submit" class="button" value="Submit" style='float:right;'>
  65. </div>
  66. </form>
  67. <div class="formGroupHead">Radios</div>
  68. <form>
  69. <div class="input-group">
  70. <label>Gender</label>
  71. <input id="aaaa" type="radio" name="test" value="1">
  72. <label for="aaaa">Male</label>
  73. <input id="bbbb" type="radio" name="test" value="2">
  74. <label for="bbbb">Female</label>
  75. <input id="cccc" type="radio" name="test" value="3">
  76. <label for="cccc">N/A</label>
  77. <br style="clear:both">
  78. <input type="submit" class="button" value="Submit" style='float:right;'>
  79. </div>
  80. </form>
  81. <div class="formGroupHead">Checkbox and Button</div>
  82. <form>
  83. <div class="input-group">
  84. <label>Gender</label>
  85. <input id="aaaaa" type="checkbox" name="test2" value="1">
  86. <label for="aaaaa">Male</label>
  87. <input id="bbbbb" type="checkbox" name="test2" value="2">
  88. <label for="bbbbb">Female</label>
  89. <input id="ccccc" type="checkbox" name="test2" value="3">
  90. <label for="ccccc">N/A</label>
  91. <br style="clear:both">
  92. <input type="submit" class="button" value="Submit" style='float:right;'>
  93. </div>
  94. </form>
  95. <div class="formGroupHead">Toggle Switches</div>
  96. <form>
  97. <div class="input-group">
  98. <label>Gender</label>
  99. <input id="toggle1" type="checkbox" name="toggle1" value="1" class="toggle">
  100. <label for="toggle1" data-on="On" data-off="Off"><span></span>
  101. </label>
  102. <input id="toggle2" type="radio" name="toggle2" value="1" class="toggle">
  103. <label for="toggle2" data-on="Yes" data-off="No"><span></span>
  104. </label>
  105. <input id="toggle3" type="radio" name="toggle2" value="1" class="toggle">
  106. <label for="toggle3" data-on="Yes" data-off="No"><span></span>
  107. </label>
  108. </div>
  109. </form>
  110. </div>
  111. <!--Detail View Pages for each list item-->
  112. <div class="panel" data-title="Item 1" id="item1" data-footer="none">
  113. <p>This is detail view for Item 1</p>
  114. </div>
  115. <div class="panel" data-title="Item 2" id="item2" data-footer="none">
  116. <p>This is detail view for Item 2</p>
  117. </div>
  118. <div class="panel" data-title="Item 3" id="item3" data-footer="none">
  119. <p>This is detail view for Item 3</p>
  120. </div>
  121. <div class="panel" data-title="Item 4" id="item4" data-footer="none">
  122. <p>This is detail view for Item 4</p>
  123. </div>
  124. <div class="panel" data-title="Item 5" id="item5" data-footer="none">
  125. <p>This is detail view for Item 5</p>
  126. </div>
  127. <div class="panel" data-title="Item 6" id="item6" data-footer="none">
  128. <p>This is detail view for Item 6</p>
  129. </div>
  130. <div class="panel" data-title="Item 7" id="item7" data-footer="none">
  131. <p>This is detail view for Item 7</p>
  132. </div>
  133. <div class="panel" data-title="Item 8" id="item8" data-footer="none">
  134. <p>This is detail view for Item 8</p>
  135. </div>
  136. <div class="panel" data-title="Item 9" id="item9" data-footer="none">
  137. <p>This is detail view for Item 9</p>
  138. </div>
  139. <div class="panel" data-title="Item 10" id="item10" data-footer="none">
  140. <p>This is detail view for Item 10</p>
  141. </div>
  142. <div class="panel" data-title="Item 11" id="item11" data-footer="none">
  143. <p>This is detail view for Item 11</p>
  144. </div>
  145. <div class="panel" data-title="Item 12" id="item12" data-footer="none">
  146. <p>This is detail view for Item 12</p>
  147. </div>
  148. </div>
  149. </div>
  150. </body>
  151. </html>