Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support inline form editing for Notifications settings form #3782

Closed
wants to merge 6 commits into from

Conversation

robertknight
Copy link
Member

Depends on #3774

Implement inline editing for the Notifications settings form. This comes in two parts:

  1. Add support for checkbox and radio button fields in forms that use inline editing. The form is automatically submitted when a checkbox is toggled or a radio button is selected
  2. Change the notifications view to support XHR requests in the same way as other accounts views

@codecov-io
Copy link

codecov-io commented Aug 25, 2016

Current coverage is 76.51% (diff: 91.66%)

Merging #3782 into master will decrease coverage by 1.06%

@@             master      #3782   diff @@
==========================================
  Files           150        149     -1   
  Lines          5562       5647    +85   
  Methods           0          0          
  Messages          0          0          
  Branches        618        637    +19   
==========================================
+ Hits           4315       4321     +6   
- Misses         1175       1252    +77   
- Partials         72         74     +2   

Sunburst

Powered by Codecov. Last update e13e7b6...a83d0f8

In preparation for implementing more complex controllers such as the one
that will support inline form editing, add a `Controller` base class
which provides shared functionality:

 - Setting the state of the controller and updating the DOM to reflect
   that

 - Getting references to the various elements within the controlled
   element which the controller needs to interact with

 * Add Controller base class and rewrite several existing controllers
   to use it

 * Simplify tests using functionality from the Controller base class
Implement a generic enhancement for forms which enables inline editing,
triggered by forms rendered with deform that have the
`data-inline-editing` attribute set to a truthy value.

Inline editing is initially enabled only for the 'Edit Profile' form.
The other forms will require some additional features to enable inline
editing.
For XHR form submissions, we assume that the client code takes care of
displaying an appropriate success indicator.
… inputs are changed

For use in the Account Notifications form, add support for automatically
submitting the form when toggling a checkbox item or selecting a radio
input.
@robertknight robertknight force-pushed the inline-form-editing-notifications branch from a83d0f8 to 3bc6931 Compare August 30, 2016 21:55
@robertknight
Copy link
Member Author

I'm closing this for the moment while I explore an alternative approach to implementing inline form editing. See #3774

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants