- 21 Aug, 2014 35 commits
-
-
Aron Carroll authored
Now all forms use the profile view name plus "form". For example the form for the edit_profile view would be editProfileForm. Each ngModel is namespaced on the scope by the form name. So again this would be $scope.editProfile. Lastly each field name uses the corresponding field in the request payload. All fields are camel case. This should make it far easier in future to read a form and match it to the http request.
-
Aron Carroll authored
-
Aron Carroll authored
-
Aron Carroll authored
-
Aron Carroll authored
Moved the event handling logic into the AccountManagement controller
-
Aron Carroll authored
Also moved the code out of the directives module and into it's own file.
-
Aron Carroll authored
-
Aron Carroll authored
-
Aron Carroll authored
-
gergely-ujvari authored
-
gergely-ujvari authored
As a first step for user deletion we just deactivate the user. In the backend the ProfileController class has a new method disable_user which (if the correct password is given) deactivates the user In the backend the session/profile factory has a disable_user action with which the ProfileController can be reached.
-
Aron Carroll authored
-
Aron Carroll authored
We now just listen for changes to the form.$error object rather than having the controller triggering an error event. This now supports other changes such as external directives adding validations to inputs also.
-
Aron Carroll authored
We're only implementing the account form for the moment.
-
Aron Carroll authored
This now directly inlines the template instead of using the Angular templates. This keeps it consistent with the login tabs. It also replaces the panels implementation with the Angular tabbable directive.
-
Aron Carroll authored
This will handle whether or not to show the account sheet, it works in exactly the same way as the login sheet.
-
Aron Carroll authored
This decouples the directive from the rest of the application. It no longer needs to know how to show the account panel, it just lets the application know that the user clicked the account button.
-
Aron Carroll authored
This deals with importing templates into the unit tests.
-
Aron Carroll authored
-
Aron Carroll authored
-
Aron Carroll authored
-
RawKStar77 authored
Add more margin between account management sections.
-
RawKStar77 authored
-
Ujvari Gergely authored
Instead of using the session singleon service, editing the profile now uses its own angular $resource for backend communication. With this the directive now really has all the callback handlers. Also the form validation schema was updated so handle default values so the backend ProfileController was simplified.
-
RawKStar77 authored
-
RawKStar77 authored
Panel navigation now sits on the topbar. The panels themselves now take up the full width and height of the sidebar. Account panel tab now has 'active' class.
-
RawKStar77 authored
Panel navigation now sits on the topbar. The panels themselves now take up the full width and height of the sidebar.
-
RawKStar77 authored
-
Ujvari Gergely authored
Hook the accountmanagement form with the backend. A user's password or email can be changed using this UI component. Frontend: - The accountManagement directive handles submitting the forms - As the Auth service we use the session service to pack the form data - The directive has the _answer() and _error() hooks for handling changes - The backend's message is flashed Backend: - horus.views.ProfileController is used - it has an edit_profile() function which handles both email and password change - Both edit_profile and changepassword client form is handled by this - Checks user credentials
-
RawKStar77 authored
Update delete account UI to no longer use window.confirm. Format delete account text and add a confirm password step.
-
RawKStar77 authored
-
RawKStar77 authored
Change forms so that they use the slow validate directive, remove the "nice forms" CSS class and corresponding divs, change name of settingsPanel directive to "panels" and reorganize the code to be a bit more modular and clean. Remove hidden heatmap stuff. Add additional comments
-
RawKStar77 authored
-
Ujvari Gergely authored
-
RawKStar77 authored
Created settings panel, acount management, and profile directives, along with templates and some basic CSS.
-
- 20 Aug, 2014 5 commits
-
-
Randall Leeds authored
-
Randall Leeds authored
Close #1420
-
Randall Leeds authored
Add the citation back into the annotation card
-
Aron Carroll authored
[no ci]
-
Aron Carroll authored
This fixes #1390. A new controller for the standalone annotation allows us to determine how to render the annotation and this information is passed down to the AnnotationController via a combination of scope properties and attributes. There are now two distinct states for an annotation, either embedded in which the annotation is rendered on top of the original document or standalone, where it appears separately from its document.
-