예제 #1
0
        protected override void SetupForm(IFormBuilder <SupplierViewModel> formBuilder)
        {
            formBuilder.Div("splHead",
                            f => f.Field(s => s.Name)
                            .Field(s => s.ContactEmail)
                            .Field(s => s.ContactPhone))

            .Div("splIds",
                 f => f.Field(s => s.IdentificationNumber)
                 .Field(s => s.TaxIdentificationNumber))

            .Div("splAddress address",
                 f => f.Field(s => s.Street)
                 .Field(s => s.City)
                 .Field(s => s.Country)
                 .Field(s => s.Zip))
            .Div("splCurr", f => f.Field(s => s.CurrencyName, fld => fld.ReplaceByUrl = "/UI/Controls/Common/Elements/CurrencyDropDown.html"))
            .Div("splNote", f => f.Field(s => s.Note, ff => ff.EditElementNodeType    = "textarea"));
        }
예제 #2
0
 protected override void SetupForm(IFormBuilder <FixedCostTypeViewModel> formBuilder)
 {
     formBuilder.Div("fctForm", d => d.Field(s => s.Name).Field(s => s.Percent));
 }