gnowledge/gstudio — pull request #689 by AvadootNachankar (2014-08-23 07:48:19+00:00)
Title: MIS updates - Widgets modification

**Functionalities implemented:**

**1) Widget modified for attributes having data-type as "IS()": Values > 2 - dropdown; and values == 2 - radio buttons**

- If "IS()" data-type found, is_mongokit_radio (boolean variable) is set
- True: If it's having only two values, then radio buttons are displayed
- False: If it's having values (> 2), then dropdown list (select) is displayed

- Files modified:

1) templatetags/ndf_tags.py
2) templates/ndf/html_field_widget.html

**2) Date widget (only for year) updated**

- Text-box associated reflects the changed year as soon as it's changed in the widget

- File modified:

1) templates/ndf/person_create_edit.html