|
| 1 | +<!DOCTYPE html> |
| 2 | +<html ng-app="formTest"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title>Simple Forms</title> |
| 6 | + |
| 7 | + <!-- Sets initial viewport load and disables zooming --> |
| 8 | + <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> |
| 9 | + <link rel="stylesheet" href="../../../../dist/css/ionic.css"> |
| 10 | + <script src="../../../../dist/js/ionic.bundle.js"></script> |
| 11 | + </head> |
| 12 | + <body> |
| 13 | + <ion-content> |
| 14 | + <form> |
| 15 | + <ion-list> |
| 16 | + <label class="item item-input"> |
| 17 | + <input type="text" placeholder="First Name"> |
| 18 | + </label> |
| 19 | + <label class="item item-input"> |
| 20 | + <textarea placeholder="Comments"></textarea> |
| 21 | + </label> |
| 22 | + <label class="item item-input"> |
| 23 | + <span class="input-label">Username</span> |
| 24 | + <input type="text"> |
| 25 | + </label> |
| 26 | + <label class="item item-input item-stacked-label"> |
| 27 | + <span class="input-label">First Name</span> |
| 28 | + <input type="text" placeholder="John"> |
| 29 | + </label> |
| 30 | + <label class="item item-input item-floating-label"> |
| 31 | + <span class="input-label">First Name</span> |
| 32 | + <input type="text" placeholder="First Name"> |
| 33 | + </label> |
| 34 | + <li class="item item-toggle"> |
| 35 | + HTML5 |
| 36 | + <label class="toggle toggle-assertive"> |
| 37 | + <input type="checkbox"> |
| 38 | + <div class="track"> |
| 39 | + <div class="handle"></div> |
| 40 | + </div> |
| 41 | + </label> |
| 42 | + </li> |
| 43 | + <li class="item item-checkbox"> |
| 44 | + <label class="checkbox"> |
| 45 | + <input type="checkbox"> |
| 46 | + </label> |
| 47 | + Flux Capacitor |
| 48 | + </li> |
| 49 | + <label class="item item-radio"> |
| 50 | + <input type="radio" name="group"> |
| 51 | + <div class="item-content"> |
| 52 | + Go |
| 53 | + </div> |
| 54 | + <i class="radio-icon ion-checkmark"></i> |
| 55 | + </label> |
| 56 | + <div class="range"> |
| 57 | + <i class="icon ion-volume-low"></i> |
| 58 | + <input type="range" name="volume"> |
| 59 | + <i class="icon ion-volume-high"></i> |
| 60 | + </div> |
| 61 | + <label class="item item-input item-select"> |
| 62 | + <div class="input-label"> |
| 63 | + Lightsaber |
| 64 | + </div> |
| 65 | + <select> |
| 66 | + <option>Blue</option> |
| 67 | + <option selected>Green</option> |
| 68 | + <option>Red</option> |
| 69 | + </select> |
| 70 | + </label> |
| 71 | + <ion-checkbox ng-model="isChecked">Checkbox Label</ion-checkbox> |
| 72 | + <ion-radio ng-model="choice" ng-value="'A'">Choose A</ion-radio> |
| 73 | + <ion-radio ng-model="choice" ng-value="'B'">Choose B</ion-radio> |
| 74 | + <ion-radio ng-model="choice" ng-value="'C'">Choose C</ion-radio> |
| 75 | + <ion-toggle ng-model="airplaneMode" toggle-class="toggle-calm">Airplane Mode</ion-toggle> |
| 76 | + </ion-list> |
| 77 | + <ion-list type="list-inset"> |
| 78 | + <label class="item item-input"> |
| 79 | + <input type="text" placeholder="First Name"> |
| 80 | + </label> |
| 81 | + <label class="item item-input"> |
| 82 | + <textarea placeholder="Comments"></textarea> |
| 83 | + </label> |
| 84 | + <label class="item item-input"> |
| 85 | + <span class="input-label">Username</span> |
| 86 | + <input type="text"> |
| 87 | + </label> |
| 88 | + <label class="item item-input item-stacked-label"> |
| 89 | + <span class="input-label">First Name</span> |
| 90 | + <input type="text" placeholder="John"> |
| 91 | + </label> |
| 92 | + <label class="item item-input item-floating-label"> |
| 93 | + <span class="input-label">First Name</span> |
| 94 | + <input type="text" placeholder="First Name"> |
| 95 | + </label> |
| 96 | + <li class="item item-toggle"> |
| 97 | + HTML5 |
| 98 | + <label class="toggle toggle-assertive"> |
| 99 | + <input type="checkbox"> |
| 100 | + <div class="track"> |
| 101 | + <div class="handle"></div> |
| 102 | + </div> |
| 103 | + </label> |
| 104 | + </li> |
| 105 | + <li class="item item-checkbox"> |
| 106 | + <label class="checkbox"> |
| 107 | + <input type="checkbox"> |
| 108 | + </label> |
| 109 | + Flux Capacitor |
| 110 | + </li> |
| 111 | + <label class="item item-radio"> |
| 112 | + <input type="radio" name="group"> |
| 113 | + <div class="item-content"> |
| 114 | + Go |
| 115 | + </div> |
| 116 | + <i class="radio-icon ion-checkmark"></i> |
| 117 | + </label> |
| 118 | + <div class="range"> |
| 119 | + <i class="icon ion-volume-low"></i> |
| 120 | + <input type="range" name="volume"> |
| 121 | + <i class="icon ion-volume-high"></i> |
| 122 | + </div> |
| 123 | + <label class="item item-input item-select"> |
| 124 | + <div class="input-label"> |
| 125 | + Lightsaber |
| 126 | + </div> |
| 127 | + <select> |
| 128 | + <option>Blue</option> |
| 129 | + <option selected>Green</option> |
| 130 | + <option>Red</option> |
| 131 | + </select> |
| 132 | + </label> |
| 133 | + <ion-checkbox ng-model="isChecked">Checkbox Label</ion-checkbox> |
| 134 | + <ion-radio ng-model="choice" ng-value="'A'">Choose A</ion-radio> |
| 135 | + <ion-radio ng-model="choice" ng-value="'B'">Choose B</ion-radio> |
| 136 | + <ion-radio ng-model="choice" ng-value="'C'">Choose C</ion-radio> |
| 137 | + <ion-toggle ng-model="airplaneMode" toggle-class="toggle-calm">Airplane Mode</ion-toggle> |
| 138 | + </ion-list> |
| 139 | + </form> |
| 140 | + </ion-content> |
| 141 | + <div id="margin-line" style="position: fixed; left: 15px; height: 100%; background-color: red; width: 1px; z-index: 1000"></div> |
| 142 | + <div id="margin-line" style="position: fixed; left: 26px; height: 100%; background-color: blue; width: 1px; z-index: 1000"></div> |
| 143 | + <script> |
| 144 | + angular.module('formTest', ['ionic']); |
| 145 | + </script> |
| 146 | + </body> |
| 147 | +</html> |
0 commit comments