point97/survey-ost — pull request #23 by wilblack (2014-08-18 05:07:10+00:00)
Title: Api fixes

@edrex I redid the respondent table directive and the dashrespondent API endpoint.

I used the 'component' structure @timglaser and I have been experimenting with. You'll see it in components/p97-respondent-table/. The idea is that we can copy that whole folder into a general P97 shared repo. Then we can build p97-components.js, p97-components.css, and a p97-components-templates/ from these components.

Also I moved all the logic to load and paginate the respondent table into the directive. This include the AJAX calls. I am not sure that AJAX calls belong in a directive, but it seems to work well. What do you think?

I still need to incorporate the filter values into the params being sent to the respondent-table directive, so the table has responsive filtering. I also still need to make the entire endpoint sortable.