summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-02-02 16:51:36 -0500
committerAdam Young <ayoung@redhat.com>2011-02-02 16:59:44 -0500
commitafce50a3e4cf0d5f7f264ba7b5b36dba8bc100b5 (patch)
treec7d7d6a271ef125bb70d5e29765d1e7eb3dda401 /install
parent0188158a766cb019f881debde84e73aa1363170a (diff)
downloadfreeipa-afce50a3e4cf0d5f7f264ba7b5b36dba8bc100b5.tar.gz
freeipa-afce50a3e4cf0d5f7f264ba7b5b36dba8bc100b5.tar.xz
freeipa-afce50a3e4cf0d5f7f264ba7b5b36dba8bc100b5.zip
city and state
using approapriate lcoality and state abbreviations for the attributes: l and st
Diffstat (limited to 'install')
-rw-r--r--install/ui/user.js37
1 files changed, 3 insertions, 34 deletions
diff --git a/install/ui/user.js b/install/ui/user.js
index fcec05e2..4caa0aea 100644
--- a/install/ui/user.js
+++ b/install/ui/user.js
@@ -72,8 +72,8 @@ IPA.entity_factories.user = function (){
section(
IPA.stanza({label: IPA.messages.details.mailing}).
input({name:'street'}).
- input({name:'location'}).
- input({name:'state', load:user_state_load}).
+ input({name:'l',label:'City'}).
+ input({name:'st',label:'State/Province'}).
input({name:'postalcode'})).
section(
IPA.stanza({label:IPA.messages.details.employee}).
@@ -227,39 +227,8 @@ function user_password_load(result) {
});
link.appendTo(dd);
-}
+};
var select_temp = '<select title="st"></select>';
var option_temp = '<option value="V">V</option>';
-var states = [
- 'AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM',
- 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA',
- 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV',
- 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW',
- 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA',
- 'WA', 'WV', 'WI', 'WY', ''
-];
-function user_state_load(result) {
-
- var that = this;
-
- $('dd', that.container).remove();
- //var next = dt.next();
- //next.css('clear', 'none');
- //next.css('width', '70px');
-
- var dd = IPA.create_first_dd(this.name);
- dd.append(select_temp);
- dd.appendTo(that.container);
-
- var sel = dd.children().first();
- for (var i = 0; i < states.length; ++i)
- sel.append(option_temp.replace(/V/g, states[i]));
-
- var st = result['st'];
- if (st)
- sel.val(st);
- else
- sel.val('');
-}