},
{
success: function (message) {
- that.doNotify({message: message});
+ that.doNotify({message: message && message.loc()});
},
error: function (error) {
that.doNotify({message: error.message ? error.message() : error});
{kind: "onyx.GroupboxHeader", content: "_overview".loc()},
{kind: "XV.ScrollableGroupbox", name: "mainGroup",
classes: "in-panel", components: [
- {kind: "XV.InputWidget", attr: "abbreviation"},
+ {kind: "XV.InputWidget", attr: "abbreviation", maxlength: 2},
{kind: "XV.InputWidget", attr: "name"},
{kind: "XV.InputWidget", attr: "currencyName"},
{kind: "XV.InputWidget", attr: "currencySymbol"},
- {kind: "XV.InputWidget", attr: "currencyAbbreviation"},
- {kind: "XV.InputWidget", attr: "currencyNumber"}
+ {kind: "XV.InputWidget", attr: "currencyAbbreviation", maxlength: 3},
+ {kind: "XV.InputWidget", attr: "currencyNumber", maxlength: 3}
]}
]}
]}
city: "billtoCity", state: "billtoState",
postalCode: "billtoPostalCode", country: "billtoCountry"}
},
- {kind: "onyx.GroupboxHeader", content: "_notes".loc()},
+ {kind: "onyx.GroupboxHeader", content: "_notes".loc(), name: "notesHeader"},
{kind: "XV.TextArea", attr: "notes", fit: true}
]}
]}
this.inherited(arguments);
if (enyo.platform.touch) {
this.$.panels.createComponents([
- {kind: "XV.InvoiceLineItemBox", name: "invoiceLineItemBox", attr: "lineItems",
+ {kind: "XV.InvoiceLineItemBox", name: "lineItemBox", attr: "lineItems",
title: "_lineItems".loc(), addBefore: this.$.settingsPanel, classes: "medium-panel"}
], {owner: this});
} else {
this.$.panels.createComponents([
- {kind: "XV.InvoiceLineItemGridBox", name: "invoiceLineItemBox", title: "_lineItems".loc(),
+ {kind: "XV.InvoiceLineItemGridBox", name: "lineItemBox", title: "_lineItems".loc(),
attr: "lineItems", addBefore: this.$.settingsPanel}
], {owner: this});
}
this.inherited(arguments);
if (enyo.platform.touch) {
this.$.panels.createComponents([
- {kind: "XV.ReturnLineItemBox", name: "returnLineItemBox",
+ {kind: "XV.ReturnLineItemBox", name: "lineItemBox",
attr: "lineItems", title: "_lineItems".loc(),
addBefore: this.$.settingsPanel, classes: "medium-panel"}
], {owner: this});
} else {
this.$.panels.createComponents([
- {kind: "XV.ReturnLineItemGridBox", name: "returnLineItemBox",
+ {kind: "XV.ReturnLineItemGridBox", name: "lineItemBox",
title: "_lineItems".loc(), attr: "lineItems", addBefore: this.$.settingsPanel}
], {owner: this});
}
{kind: "onyx.GroupboxHeader", content: "_overview".loc()},
{kind: "XV.ScrollableGroupbox", name: "mainGroup", fit: true,
classes: "in-panel", components: [
- {kind: "XV.InputWidget", attr: "code"},
- {kind: "XV.CheckboxWidget", attr: "isActive"},
- {kind: "XV.SiteTypePicker", attr: "siteType"},
- {kind: "XV.InputWidget", attr: "description"},
- {kind: "XV.ContactWidget", attr: "contact"},
- {kind: "XV.AddressWidget", attr: "address"},
- {kind: "XV.TaxZonePicker", attr: "taxZone"},
- {kind: "XV.InputWidget", attr: "incoterms"},
- {kind: "onyx.GroupboxHeader", content: "_notes".loc()},
- {kind: "XV.TextArea", attr: "notes", fit: true}
+ {name: "mainSubgroup", components: [ // not a scroller, so we can addBefore
+ {kind: "XV.InputWidget", attr: "code"},
+ {kind: "XV.CheckboxWidget", attr: "isActive"},
+ {kind: "XV.SiteTypePicker", attr: "siteType"},
+ {kind: "XV.InputWidget", attr: "description"},
+ {kind: "XV.ContactWidget", attr: "contact", name: "contactWidget"},
+ {kind: "XV.AddressWidget", attr: "address"}
+ ]}
]}
]},
- {kind: "XV.SiteCommentBox", attr: "comments"}
+ {kind: "XV.SiteCommentBox", attr: "comments", name: "commentsPanel"}
]}
]
});
XV.registerModelWorkspace("XM.UserAccountRoleRelation", "XV.UserAccountRoleWorkspace");
XV.registerModelWorkspace("XM.UserAccountRoleListItem", "XV.UserAccountRoleWorkspace");
-
}());