Improvement for errors displayed on Repository Settings
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=4058) </details> <!--IssueSummary end--> ### Overview When entering a bad formatted URL on 'Pull from a remote repository' or ' Push to a remote repository' section, an error is displayed at the top of the page and the current section is collapsed. ### Steps to repro 1. Go to repository settings of a project. 2. Expand the 'Pull from a remote repository' section. 3. Set an invalid URL on 'Git repository URL', i.e: _http://192.168.10.1:1op/test.git_ 4. The application makes a hard reload, displays an error at the top of the page and collapses the section ### Screenshot ![Screen_Shot_2017-11-15_at_4.40.48_PM](/uploads/86fdea97ff8c629f0f4afdb242822cbf/Screen_Shot_2017-11-15_at_4.40.48_PM.png) ### Proposal - Submit the form through Ajax rather than the browser's normal submit mechanism, avoiding a hard reload - Display the error inside the form: ![Screen_Shot_2017-11-14_at_11.57.09_AM](/uploads/4bb53464a9f25af98ff0d9678b4346c6/Screen_Shot_2017-11-14_at_11.57.09_AM.png)
issue