README.md in unirer-bootstrap-0.10 vs README.md in unirer-bootstrap-0.11

- old
+ new

@@ -4,10 +4,18 @@ [![Gem Version](https://badge.fury.io/rb/unirer-bootstrap.svg)](https://badge.fury.io/rb/unirer-bootstrap) Unirer (UNIfied Resource Representation) is a series of resource representation engines. The Bootstrap resource representation engine includes Bootstrap-based resource representation templates & snippets. Unirer (统一资源表现)是一系列的资源表现引擎。Bootstrap 资源表现引擎包括基于Bootstrap的资源表现模版和片段。 + + +## Recent Update +Check out the [Road Map](ROADMAP.md) to find out what's the next. +Check out the [Change Log](CHANGELOG.md) to find out what's new. + + + ## Usage in Gemfile ```ruby gem 'unirer-bootstrap' ``` @@ -133,10 +141,21 @@ name: :phone_number, type: :telephone_field } } %> +<%= render partial: 'unirer/bootstrap/form_field', + locals: { + options: { + model: model, + form: f, + name: :photo, + type: :file_field, + input_accept: 'image/*' + } + } +%> ``` ### Render the Form Select Box @@ -162,9 +181,10 @@ - group_class: The CSS class for the form group wrapper. The .form-group class is mandatory, and can not be removed. - label_class: the CSS class for the HTML label tag. The .control-label class is mandatory, and can not be removed. - field_class: the CSS class for the wrapper of the form control. The .input-group class is mandatory, and can not be removed. - input_class: The CSS class for the HTML input tag. The .form-control class is mandatory, and can not be removed. - error_class: the CSS class for the validation error block of this field. The .text-danger class is mandatory, and can not be removed. +- input_accept: The HTML 5 attribute for the file input tag. - input_data: The HTML 5 Data attribute for the input tag. - error_hidden: Determines whether the error message block should be shown if the field has any error. - prefix: the HTML source codes of input group addon before the form control. - suffix: the HTML source codes of input group addon after the form control.