Modify ↓
Opened 11 years ago
Closed 8 years ago
#11215 closed enhancement (fixed)
Set focus when admin Users page loads
Reported by: | Ryan J Ollos | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
Set the focus to #username
when the /admin/accounts/users
page loads, and set the focus to #password
when the /admin/accounts/users/<username>
page loads.
Attachments (1)
Change History (7)
comment:1 follow-up: 2 Changed 11 years ago by
comment:2 follow-up: 3 Changed 11 years ago by
Replying to rjollos:
I'd also suggest a refactoring, such as (untested):
I would do like this.
<label for="account-editor-password">Password:<br /> <input id="account-editor-password" type="password" name="password" class="textwidget" disabled="${not password_change_enabled and 'disabled' or None}" /> </label>
Or
<label for="account-editor-password">Password:<br /> <input id="account-editor-password" type="password" name="password" class="textwidget" disabled="${('disabled', None)[bool(password_change_enabled)]}" /> </label>
comment:3 Changed 11 years ago by
comment:5 Changed 11 years ago by
Here is another possibility using presentation.classes (untested):
disabled="${classes(disabled=not password_change_enabled)}"
comment:6 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I'd also suggest a refactoring, such as (untested):
->