54 Commits

Author SHA1 Message Date
Caly
15312fe595
Update messages for simplicity/consistency/grammer
- Closes #375 and #380.

- More use of configurable brand name.
2016-01-24 12:14:25 +05:30
Sunil Mohan Adapa
4602c5bfce
Use translated brand name in templates
Using brand name directly from configuration means that it can't be
easily translated.  Instead use the translated brand name sent in my the
context processor.
2016-01-24 00:37:01 +05:30
Sunil Mohan Adapa
96f9fee96b
firstboot: Fix double nested navbar 2015-12-30 01:10:45 +05:30
Sunil Mohan Adapa
0464ac83d8
firstboot: Add doc strings for custom tags 2015-12-30 01:10:09 +05:30
fonfon
56e1b4ae57
firstboot: removed link to 'Applications'
minor bugfix - the icon wasn't displayed but the link and hover effect
were still there.
2015-12-30 01:09:13 +05:30
fonfon
0f742d704b
firstboot: Dont show normal mainmenu in help pages
- plus some minor adaptions like titles and using cfg.box_name
2015-12-30 01:08:43 +05:30
fonfon
74f64123b3 first-boot: state10: change text and layout
Instead of the buttons there is now only one link in the text for the
network setup.
2015-12-22 10:46:56 +05:30
fonfon
77e74746f0 first-boot: state1: fix focusing on form element 2015-12-22 10:38:30 +05:30
fonfon
23aee97ea9 first-boot: state0: update text and button 2015-12-22 10:38:26 +05:30
fonfon
6ee545023d first-boot: use a common navbar
- Also hide the applications icon in the second step while keeping the
  logo.
2015-12-22 10:05:37 +05:30
Philippe Baret
2037a273b3 Edited string
LDAP mention to delete (https://github.com/freedombox/Plinth/issues/347)
2015-12-19 13:36:47 -05:00
Sunil Mohan Adapa
a69f419c3c Make Django urlpatterns list of url()s
- Support for legacy pattern() mechanism will be removed in Django
  1.10.  Currently we see a warning for each Plinth module.
2015-12-05 09:33:23 -05:00
Sunil Mohan Adapa
3df1a88824 Switch to Django i18n for code strings
Django i18n layer is on top of gettext and provide may crucial features
such as per-request locales, lazy translations etc.
2015-11-13 22:08:43 +05:30
Sunil Mohan Adapa
02cd89b60d Internationalize strings in template files 2015-11-13 22:02:17 +05:30
Sunil Mohan Adapa
20d4d32153 firstboot: Show network diagram at the end
- Fix an issue with not showing message in state 1 (no messages to show
  as of now).

- Provide options to go to Applications or Network configuration page as
  discussed in first boot redesign.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
11bf585025 networks: Show network diagram
- As discussed in the first boot redesign proposal.

- Images are taken from Tango icon set, GNOME icons or created.

- Responsive, works for very small widths also.

- First cut, special cases of network connectivity are not handled.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
8228440319 first_boot: Allow accessing help during first boot 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
8fb6e31e9a first_boot: Remove login from account creation 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
26737293e4 first_boot: Reduce the width of administrator form 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
5cd1b7e4b3 first_boot: Remove sidebar in favor of help icon 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
f3a0c70d23 first_boot: Add separate greeting page 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
23eb40fce8 first_boot: Require password confirmation
- Use existing UserCreationForm from auth module.

- Use cleaned data for login.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
62185a5960 first_boot: Don't ask for a new hostname
- Setting a new hostname is not one of the most buring issues to be take
  care of during the setup process.

- Also, most likely the user will access the FreedomBox machine using
  mDNS hostname such as freedombox.local.  Changing the hostname mid
  setup might have consequences that need to thought about properly.
2015-10-28 20:02:56 -04:00
fonfon
a94dc0f57d firstboot: remove deprecated CSS 2015-09-29 09:15:37 +05:30
James Valleroy
7a464d6f5f first_boot: Switch to new ldap action. 2015-07-26 16:34:29 -04:00
James Valleroy
d144f6634a Bug fixes:
Check if ejabberd is installed when running actions triggered by signals.
Encode LDAP passwords as bytes.
2015-07-23 22:30:50 +05:30
James Valleroy
cb7c9c26f7 Send LDAP user passwords to actions through stdin, not as arguments. 2015-07-23 22:30:50 +05:30
James Valleroy
86580c9121 Revert "Don't print LDAP user passwords in log."
This reverts commit b1c9c81d58c80d6b313dd2b8a5c5727ecdf6ac49.

Conflicts:
	plinth/modules/first_boot/forms.py
2015-07-23 22:30:50 +05:30
Sunil Mohan Adapa
f35d4257c2 users: Improve Django group handling with LDAP
- Create groups on first boot a bit more safely

- Use get_or_create instead of get() and create()

- Fix issue with not showing a full list of groups in user modify page
  when there is are no users for that group.
2015-07-18 17:17:07 +05:30
James Valleroy
fcc37a8e28 Create initial django groups during first_boot. 2015-07-13 19:50:59 +05:30
James Valleroy
b1c9c81d58 Don't print LDAP user passwords in log. 2015-07-13 19:50:58 +05:30
James Valleroy
0eb3d35b5b Add group management to user editing form. 2015-07-13 19:50:58 +05:30
James Valleroy
197c95a7bf Add actions for LDAP group management. 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
6fd04808d5 Don't require login for logout page & minor fixes 2015-07-01 07:57:21 +05:30
fonfon
9321aa4952 made first_boot state0 public 2015-07-01 00:01:02 +05:30
Bob Girard
d64ce6cc01 Bundle tests with applications
- For each application, add ./tests directory and __init__.py file
  within it.

- Modify test controllers (coverage.py, runtests.py) to find the new
  test directories for testing and coverage analysis.

- Move existing application-specific test modules (test_pagekite.py) to
  the newly created directories.
2015-06-26 12:05:48 +05:30
James Valleroy
bc8523d9a3 first_boot: Also create LDAP user for initial user. 2015-06-12 15:49:41 +05:30
Sunil Mohan Adapa
53b0f5aca8 Don't use wells for placing all the content 2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa
a3de3ae277 users: Handle errors better during POSIX user operations
- If during an action, user does not exist ignore.

- If during an action, return a non-zero exist status.

- Catch an errors during actions as exceptions.

- Display a message that corresponding POSIX operation failed.
2015-01-25 01:45:51 +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
1a081bfab0 Create POSIX user during firstboot. Closes #31. 2015-01-20 12:28:53 +05:30
Sunil Mohan Adapa
90203986f2 Remove modules 'expert_mode' and 'lib'.
The login/logout URLs are now in the 'users' module.
2014-12-14 17:26:05 +05:30
Sunil Mohan Adapa
95bf621c08 Update link to wiki during first boot 2014-12-06 17:15:30 +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
e4c11e7d8e show the sidebar with help during first_boot 2014-12-06 17:08:37 +05:30
Sunil Mohan Adapa
5b969d9d30 Explicitly write license headers for each source file
The package license (AGPL3+) implicitly indicates the license of each
file.  However, it is desirable to have license headers in each file.
This is the case for many prominent projects like GNU project, Mozilla
etc.
2014-11-30 14:49:49 +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
0bb2dd51d8 Minor styling changes in first boot module 2014-10-20 00:22:47 +05:30
fonfon
94040e402a refactored first boot module; user is now logged in automatically after an account is created 2014-10-20 00:15:49 +05:30