Commit Graph
43 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 7cfb4cc683 users: Move create button into users section
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-01 16:52:29 -05:00
Sunil Mohan Adapa ad0552adf6 users: Make UI close to rest of the apps
- Provide an app title, description and link to manual page.

- Use AppView and app.html to present most of the elements.

- Remove tabs and turn create user into a button.

Tested by running: py.test-3 --include-functional -k users-groups

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-04 18:03:50 -04:00
Prachi Srivastava 743d976d50 security: Moves input field focus javascript to django forms
Signed-off-by: Prachi Srivastava <prachi.chs.2009@gmail.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-28 17:39:22 -08:00
Prachi Srivastava 5d68f6bf52 Replace glyphicons with forkawesome icons
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-01-14 17:37:58 -08:00
Hemanth Kumar Veeranki b9963a45cd Restrict removal of last admin user
- Don't allow disabling the only available admin account.
- Don't allow deletion of the only available admin account.
- Don't allow removing admin privileges of the only available admin account.

Signed-off-by: Hemanth Kumar Veeranki <hems.india1997@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-06-21 20:09:02 +05:30
Sunil Mohan Adapa 6fc6efad1e users: Remove unnecessary column sizing
Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2018-06-18 20:21:16 +05:30
Sunil Mohan Adapa 87dbdf6f3d users: Generalize styling for multi-select widget
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2018-03-12 18:26:18 +05:30
Sunil Mohan Adapa dea4af17fb Rename Plinth to FreedomBox in license headers
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-16 20:10:09 -05:00
Johannes Keyser 249403a6dd diagnostics: Disable button if app/service is not running
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-06-06 08:55:24 +05:30
Sunil Mohan Adapa f82136e559 users: Show and consume messages in user edit & password change 2017-02-15 21:08:39 +05:30
lispyclouds 79b27ea2ee Make user edit and change password non-admin views
- This makes the user update and password change pages non admin so that
  non admin users can access
2017-02-15 21:04:40 +05:30
Sunil Mohan Adapa 6cce89ed68 users: Update first boot step submit button text
'Box it up!' is confusing is and no longer relavent as there are more
steps after that step.
2016-12-04 15:24:45 -05:00
Sunil Mohan Adapa 56686b7148 firstboot: Rename views/urls to be non-numeric 2016-12-04 15:24:36 -05:00
mridulnagpal a2d4719685 user delete fix 2016-12-04 14:04:44 -05:00
Hemanth Kumar Veeranki 0332d4489e Added code for modules to register for first_boot #529 2016-11-03 22:06:00 -04:00
Sunil Mohan Adapa ff0d117a89 Readjust the responsive widths of various tables
Most tables now occupy the full width of the container row.  Some of
them are otherwise squished.  Also make sure the new fixed container
layout has not reduced the originally intended width of a table.
2016-09-11 13:15:00 -04:00
Sunil Mohan Adapa 2c204429c6 Remove width management for forms
Now all forms will uniformly occupy the full width of the available
row.  Bootstrap originally designed forms this way.  However, we were
setting restricted widths on forms as they were too wide.  With the new
fixed container layout this is no longer necessary.
2016-09-11 13:14:57 -04:00
Sunil Mohan Adapa 201837518f Update strings during edit/delete operations 2015-12-09 23:55:55 +05:30
Sunil Mohan Adapa 0b4f56c59d Fix bug in i18n of change password link 2015-11-14 12:05:27 +05:30
Sunil Mohan Adapa 01d50c7ae8 Fix i18n of template expressions 2015-11-14 11:42:32 +05:30
Sunil Mohan Adapa 02cd89b60d Internationalize strings in template files 2015-11-13 22:02:17 +05:30
Sunil Mohan Adapa 4210332bf6 users: Improve diagnostics
- Move diagnostics into main module instead of action script.

- Ability run diagnostics as non-root user (because it runs in Plinth
  instead of action).

- Diagnose whether LDAP server is listening.

- Diagnose directory entities created during setup.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa 2ca130b154 users: Implement diagnostics 2015-07-28 21:58:17 +05:30
Sunil Mohan Adapa b0d65b4ead users: Use checkboxes for groups during create 2015-07-14 21:23:02 +05:30
James Valleroy 0eb3d35b5b Add group management to user editing form. 2015-07-13 19:50:58 +05:30
James Valleroy 2adf14b8b7 Remove POSIX users. 2015-07-13 19:50:58 +05:30
Sunil Mohan Adapa 82090af423 ldap: Minor styling fixes 2015-06-25 23:40:24 +05:30
James Valleroy 27e19b4373 users: Change LDAP user password. 2015-06-12 15:49:41 +05:30
James Valleroy 219c3f4b06 users: Show if user is also an LDAP user. 2015-06-12 15:49:41 +05:30
Sunil Mohan Adapa d27cd02193 users: Add posix user messages to other user management forms
- Slightly modify the message in user update form
2015-01-25 01:45:43 +05:30
James Valleroy 2da8619248 Show if user is also a POSIX user in edit user form. 2015-01-20 12:37:16 +05:30
fonfon 0cbdd5cf51 bugfix: changing user password didn't work
We manually have to call the form.save() method in form_valid().
Plus tiny cleanups like using SetPasswordForm instead of
AdminPasswordChangeForm.
Note: this allows any logged-in user to change all other user passwords.
2015-01-04 23:32:32 +01:00
Sunil Mohan Adapa d4b98b9e48 Sylting updates in user module for consistency 2014-12-14 00:32:22 +05:30
Sunil Mohan Adapa a625d67152 Show active status in user list, increase delete button size
- Separate out styling details
2014-12-14 00:32:22 +05:30
Sunil Mohan Adapa 20e03c700a Update UI strings in user module
- Fixed an i18n issue.
- Marked more messages for i18n.
2014-12-14 00:18:33 +05:30
Sunil Mohan Adapa 6dc463ff6e Remove confusing sidebar message during user creation 2014-12-14 00:07:53 +05:30
fonfon 4b3b3c666a Refactored 'users' module
- allows editing users (currently the groups and username)
- allows any logged-in user to change the passwords of any other users
- improved url highlighting of subsubmenu
2014-12-09 20:49:13 +01:00
Sunil Mohan Adapa f4f594c41a Remove references to editing of users
- We can add that when we have the functionality implemented.

- Our current effort is not have stubs and references unavailable
  features.
2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa 2d33b0338e Add missing <p> tags 2014-12-06 17:08:38 +05:30
fonfon 96a14e3d0d moved 'in-app menu' from the sidebar to the top of the content; some template block renaming 2014-12-06 17:08:37 +05:30
fonfon 9c95da8751 updated user-edit/delete texts: we don't have any functionality to edit users 2014-12-06 17:08:37 +05:30
Sunil Mohan Adapa 6a1f96d7c2 Bootstrap change .btn-primary -> .btn .btn-primary
Only then the full intended style will apply.  This is a change from
Bootstrap 2 to Bootstrap 3.
2014-11-23 14:08:13 +05:30
Sunil Mohan Adapa 65fa648d9f Reorganize python sources into 'plinth' package 2014-08-29 12:57:27 +05:30