|
102 | 102 | </nav> |
103 | 103 |
|
104 | 104 |
|
105 | | -<div class="container padding-fifty"> |
| 105 | +<div id="app-container" class="container padding-fifty"> |
| 106 | + |
| 107 | + <div id="addb-main-view"> |
106 | 108 |
|
107 | 109 | <div class="row padding-twenty"> |
108 | 110 | <div class="col-sm-12"> |
|
122 | 124 | class="btn btn-primary pull-right disabled">Run |
123 | 125 | Query |
124 | 126 | </button> |
| 127 | + <a id="open-ui-customization" href="?view=customize" class="btn btn-default btn-sm pull-right addb-customize-link"> |
| 128 | + <span class="glyphicon glyphicon-cog" aria-hidden="true"></span> |
| 129 | + Customize UI |
| 130 | + </a> |
125 | 131 | </div> |
126 | 132 | </div> |
127 | 133 |
|
|
151 | 157 | </div> |
152 | 158 | </div> |
153 | 159 |
|
| 160 | + </div> |
| 161 | + |
| 162 | + <div id="addb-customize-view" class="display-none"> |
| 163 | + <div class="row padding-twenty"> |
| 164 | + <div class="col-sm-12"> |
| 165 | + <div class="panel panel-info"> |
| 166 | + <div class="panel-heading addb-customize-heading"> |
| 167 | + <span>UI Customization</span> |
| 168 | + <a id="addb-customize-back" href="index.html" class="btn btn-link pull-right addb-customize-back"> |
| 169 | + Back to Data |
| 170 | + </a> |
| 171 | + </div> |
| 172 | + <div class="panel-body"> |
| 173 | + <p class="addb-customize-summary"> |
| 174 | + These settings only affect how data is displayed in your browser. Clearing browser storage resets to defaults. |
| 175 | + </p> |
| 176 | + |
| 177 | + <div class="row"> |
| 178 | + <div class="col-sm-3"> |
| 179 | + <div id="addb-customize-categories" class="list-group"> |
| 180 | + <a href="#" class="list-group-item active" data-category="layout">Layout</a> |
| 181 | + <a href="#" class="list-group-item" data-category="text">Text & JSON</a> |
| 182 | + <a href="#" class="list-group-item" data-category="paging">Paging</a> |
| 183 | + </div> |
| 184 | + </div> |
| 185 | + <div class="col-sm-9"> |
| 186 | + <form id="addb-customize-form"> |
| 187 | + <div class="addb-customize-category" data-category="layout"> |
| 188 | + <div class="form-group"> |
| 189 | + <label>Table width</label> |
| 190 | + <div class="radio"> |
| 191 | + <label><input type="radio" name="addb-table-width" value="fixed"> Fixed (default)</label> |
| 192 | + </div> |
| 193 | + <div class="radio"> |
| 194 | + <label><input type="radio" name="addb-table-width" value="full"> Full width</label> |
| 195 | + </div> |
| 196 | + <div class="radio"> |
| 197 | + <label><input type="radio" name="addb-table-width" value="fluid"> Fluid (max width)</label> |
| 198 | + </div> |
| 199 | + <p class="help-block">Controls how much horizontal space the UI uses.</p> |
| 200 | + </div> |
| 201 | + |
| 202 | + <div class="form-group"> |
| 203 | + <label>Row density</label> |
| 204 | + <div class="radio"> |
| 205 | + <label><input type="radio" name="addb-row-density" value="compact"> Compact</label> |
| 206 | + </div> |
| 207 | + <div class="radio"> |
| 208 | + <label><input type="radio" name="addb-row-density" value="normal"> Normal (default)</label> |
| 209 | + </div> |
| 210 | + <div class="radio"> |
| 211 | + <label><input type="radio" name="addb-row-density" value="comfortable"> Comfortable</label> |
| 212 | + </div> |
| 213 | + <p class="help-block">Adjusts row height and padding to fit more (or fewer) rows on screen.</p> |
| 214 | + </div> |
| 215 | + |
| 216 | + <div class="checkbox"> |
| 217 | + <label> |
| 218 | + <input type="checkbox" id="addb-sticky-header"> |
| 219 | + Sticky header |
| 220 | + </label> |
| 221 | + <p class="help-block">Keep the table header visible while scrolling.</p> |
| 222 | + </div> |
| 223 | + </div> |
| 224 | + |
| 225 | + <div class="addb-customize-category display-none" data-category="text"> |
| 226 | + <div class="checkbox"> |
| 227 | + <label> |
| 228 | + <input type="checkbox" id="addb-wrap-long-text"> |
| 229 | + Wrap long text |
| 230 | + </label> |
| 231 | + <p class="help-block">Wraps cell contents instead of forcing horizontal scrolling.</p> |
| 232 | + </div> |
| 233 | + |
| 234 | + <div class="form-group"> |
| 235 | + <label for="addb-max-column-width">Max column width (px)</label> |
| 236 | + <div class="input-group addb-max-width-input"> |
| 237 | + <input type="number" class="form-control" id="addb-max-column-width" placeholder="e.g. 480" min="120" max="2000" step="10"> |
| 238 | + <span class="input-group-addon">px</span> |
| 239 | + </div> |
| 240 | + <p class="help-block">Applies when wrapping (or JSON formatting) is enabled. Helps keep wide columns manageable.</p> |
| 241 | + </div> |
| 242 | + |
| 243 | + <div class="form-group"> |
| 244 | + <label for="addb-json-mode">JSON display mode</label> |
| 245 | + <select id="addb-json-mode" class="form-control"> |
| 246 | + <option value="raw">Raw (default)</option> |
| 247 | + <option value="wrapped">Wrapped</option> |
| 248 | + <option value="pretty">Pretty-printed</option> |
| 249 | + </select> |
| 250 | + <p class="help-block">Applies to cells that contain valid JSON objects/arrays.</p> |
| 251 | + </div> |
| 252 | + </div> |
| 253 | + |
| 254 | + <div class="addb-customize-category display-none" data-category="paging"> |
| 255 | + <div class="form-group"> |
| 256 | + <label for="addb-page-length">Rows per page</label> |
| 257 | + <select id="addb-page-length" class="form-control"> |
| 258 | + <option value="10">10</option> |
| 259 | + <option value="25">25</option> |
| 260 | + <option value="50">50</option> |
| 261 | + <option value="100">100</option> |
| 262 | + </select> |
| 263 | + <p class="help-block">Controls how many rows are shown per page in the data table.</p> |
| 264 | + </div> |
| 265 | + </div> |
| 266 | + |
| 267 | + <hr> |
| 268 | + |
| 269 | + <button type="button" id="addb-ui-apply" class="btn btn-primary">Apply</button> |
| 270 | + <button type="button" id="addb-ui-reset" class="btn btn-default">Reset to defaults</button> |
| 271 | + </form> |
| 272 | + </div> |
| 273 | + </div> |
| 274 | + </div> |
| 275 | + </div> |
| 276 | + </div> |
| 277 | + </div> |
| 278 | + </div> |
| 279 | + |
154 | 280 | <div id="snackbar">Data Updated Successfully</div> |
155 | 281 |
|
156 | 282 | </div> |
157 | 283 |
|
| 284 | +<script src="ui-customization.js"></script> |
158 | 285 | <script src="app.js"></script> |
159 | 286 | </body> |
160 | 287 | </html> |
0 commit comments