Fix cancel front payment.
[openemr.git] / interface / themes / README.md
blob20fadab5b3e33d73ede55a7fe65fa321b6a61074
1 OpenEMR Bootstrap Project
2 =====
3 Goal is to standardize user interface elements. The project is using bootstrap as base. This document will hopefully
4 make things easier for developers by attempting to standardize code elements.
6 Themes
7 -----
8 There are currently 3 different theme categories in OpenEMR. The `light` theme is the default modern theme. The `manila`
9 theme is a combination of OpenEMR's legacy themes (which have all been removed) with some modern elements. And then all
10 the other themes are basically the same theme with different color palettes.
12 Buttons at bottom of form
13 -----
14 Sample code for buttons at the bottom of form:
16 ```php
17 <div class="form-group clearfix">
18     <div class="col-sm-12 col-sm-offset-1 position-override">
19         <div class="btn-group oe-opt-btn-group-pinch" role="group">
20             <button type='submit' onclick='top.restoreSession()' class="btn btn-default btn-save"><?php echo xlt('Save'); ?></button>
21             <button type="button" class="btn btn-link btn-cancel oe-opt-btn-separate-left" onclick="top.restoreSession(); location.href='<?php echo "$rootdir/patient_file/encounter/$returnurl";?>';"><?php echo xlt('Cancel');?></button>
22         </div>
23     </div>
24 </div>
25 ```
26 #### Classes
27 When adding buttons to the bottom of forms, will be important to incorporate following classes.
29 `position-override` gives a hook for style to change placement of buttons. In light/manila style this is ignored and buttons go to left positioned under data entry field. Whereas in the other styles this is used to center the buttons.
31 `oe-opt-btn-group-pinch` gives a hook for style to pinch the buttons (i think make them more rounded). Not used in light/manila, but used in other styles.
33 `oe-opt-btn-separate-left` gives a hook to place a space between the buttons. Not used in light/manila, but used in other styles.
35 #### Miscellaneous
37 (note there is also flexibility in how the Cancel links are shown. For example, in light, it's simple a link (not a button). And in Manila and other styles , some neat work was done to make it a button, but less accented than the Save buttons.)