Opened 11 years ago
Last modified 11 years ago
#1285 closed enhancement
Widgets / LoginForm / Add user info & quick search links — at Version 1
Reported by: | fxp | Owned by: | fxp |
---|---|---|---|
Priority: | minor | Milestone: | v2.10.0 RC2 |
Component: | General | Version: | v2.11.0 |
Keywords: | Cc: |
Description (last modified by )
In the LoginForm widget add options to create a user information panel composed of:
- User name & gravatar (customizable by template)
- links to user profile and password update (those links are only displayed if CAS is not enabled)
- quick search links (configurable by user profile and widget app settings)
- links to:
- create metadata
- import metadata
- administration
This mode makes access to admin function easier and help user to make quick search and creating new metadata record.
Default options
By default, LoginForm is not displaying user menu to preserve existing usage.
Quick search links by default are:
- Administrator
- My metadata
- Last updates
- Record with indexing error
- Harvested records
- Reviewer
- My metadata
- Drafts
- Last submitted records
- Editor
- My metadata
- My Draft
- Templates
Developer note
// A simple login form without user menu var loginForm = new GeoNetwork.LoginForm({ renderTo: 'login-form', catalogue: catalogue }); // Add user menu var loginForm = new GeoNetwork.LoginForm({ renderTo: 'login-form', catalogue: catalogue, withUserMenu: true searchForm: Ext.getCmp('searchForm') // The search form to interact with for quick search }); // Turn off gravatar using a custom template for rendering user information var loginForm = new GeoNetwork.LoginForm({ ... userInfoTpl: new Ext.XTemplate('<tpl for=".">', '<span class="gn-login">{name} {surname}</span>', '</tpl>'),
Change History (2)
by , 11 years ago
Attachment: | geonetwork-user-info-form.png added |
---|
comment:1 by , 11 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
Note:
See TracTickets
for help on using tickets.