diff --git a/README.md b/README.md index 6b0d91d294..765c018d30 100644 --- a/README.md +++ b/README.md @@ -52,56 +52,37 @@ The Bootstrap grid system is used for defining columns. We've chosen the 'small' ## Forms -* Every form should have at least one 'panel' which contains the form fields. If certain fields can be grouped together, you can add multiple panels to a form. -* A field consists of an outer wrapper `.form-group` which contains a `label` and the `input` -* The submit button should be placed outside of the panels to prevent confusion (e.g., the save button saves the whole form and not just the last panel). -* Checkboxes are placed within a label (see example below). The wrapping div needs an additional `.checkbox` class -* Additional field descriptions can be placed in the `.help-block` `span` +After determining the proper layout for forms we decided to create wrappers in PHP to create all forms. This de-duplicates all of the current HTML, making this migration a bit harder but any future updates infinitely easier (since all forms can be updated centrally). This is what the form-code should look like: -An example (which omits everything but relevant Bootstrap classes): +```php +require('classes/Form.class.php'); +$form = new Form; -```html -
+print $form; ``` +Please make sure the referenced $_POST fields in the php-code above this code are also updated since they are automatically generated + ## Tables * Wrap your tables in a `