Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="group" ng-repeat="group in Groups">
- <table>
- <tr>
- <td>{{group.Description}}</td>
- <td><input type="radio" value="1" name="{{group.Id}}" ng-model="group.SatisfactionLevel" /></td>
- <td><input type="radio" value="1" name="{{group.Id}}" ng-model="group.SatisfactionLevel" /></td>
- </tr>
- </table>
- <div class="group-detail" ng-class="{'hidden': group.SatisfactionLevel != 1}">
- <table>
- <tr ng-repeat="item in group.Details">
- <td>{{item.Description}}</td>
- <td><input type="radio" value="1" name="{{item.Id}}" ng-model="item.SatisfactionLevel" /></td>
- <td><input type="radio" value="1" name="{{item.Id}}" ng-model="item.SatisfactionLevel" /></td>
- </tr>
- </table>
- </div>
- "Groups": [
- {
- "Id":"AA",
- "Description":"Service",
- "SatisfactionLevel":1,
- "Details":[{"Id":"AA1","Description":"Cleanliness","SatisfactionLevel":1},
- {"Id":"AA2","Description":"Timeliness","SatisfactionLevel":1}
- ]
- },
- {
- "Id":"AB",
- "Description":"Food",
- "SatisfactionLevel":1,
- "Details":[{"Id":"AB1","Description":"Price","SatisfactionLevel":1},
- {"Id":"AB2","Description":"Portion","SatisfactionLevel":1}
- ]
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement