summaryrefslogtreecommitdiffstats
path: root/install/ui/user.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-02-02 16:18:35 -0600
committerAdam Young <ayoung@redhat.com>2011-02-03 20:09:15 -0500
commitbd493d47a736fab4e74efbe9b603dcc8f1986512 (patch)
tree00f21fb46a747c8ef3219773b2d669c9b1d76f7f /install/ui/user.js
parentff646ec3a428647cac8fa9304a5695c7f29456a2 (diff)
downloadfreeipa-bd493d47a736fab4e74efbe9b603dcc8f1986512.tar.gz
freeipa-bd493d47a736fab4e74efbe9b603dcc8f1986512.tar.xz
freeipa-bd493d47a736fab4e74efbe9b603dcc8f1986512.zip
Added multi-valued text widget.
A multi-valued text widget has been created to replace the old IPA.details_field. The old code was designed to handle all data types, and it uses one <dd> tag for each value, so the code is still incomplete and complex. The new code was designed to handle only multi-valued text attributes, and it uses one <dd> tag for all values, so it's easier to maintain. There are already other widgets that can be used to handle other data types. The new code supports line-level undo and line-out for removal like the old code, but there are some changes: - Undoing a newly added line will remove the entire line. - Editing the value of a removed line will cancel the removal. - It provides 'undo all' link to reset the entire attribute. The old code will be cleaned up in a subsequent patch.
Diffstat (limited to 'install/ui/user.js')
-rw-r--r--install/ui/user.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/install/ui/user.js b/install/ui/user.js
index 1ce95009f..663aab920 100644
--- a/install/ui/user.js
+++ b/install/ui/user.js
@@ -64,11 +64,11 @@ IPA.entity_factories.user = function (){
input({name:'homedirectory'})).
section(
IPA.stanza({name: 'contact', label: IPA.messages.details.contact}).
- input({name:'mail'}).
- input({name:'telephonenumber'}).
- input({name:'pager'}).
- input({name:'mobile'}).
- input({name:'facsimiletelephonenumber'})).
+ multivalued_text({name:'mail'}).
+ multivalued_text({name:'telephonenumber'}).
+ multivalued_text({name:'pager'}).
+ multivalued_text({name:'mobile'}).
+ multivalued_text({name:'facsimiletelephonenumber'})).
section(
IPA.stanza({name: 'mailing', label: IPA.messages.details.mailing}).
input({name:'street'}).