20 import net.liftweb.record.{MetaRecord, Record} |
20 import net.liftweb.record.{MetaRecord, Record} |
21 import net.liftweb.record.field._ |
21 import net.liftweb.record.field._ |
22 import net.liftweb.squerylrecord.RecordTypeMode._ |
22 import net.liftweb.squerylrecord.RecordTypeMode._ |
23 import net.tz.lift.model.{FieldLabel => FL} |
23 import net.tz.lift.model.{FieldLabel => FL} |
24 import net.tz.lift.model.{OptionalFieldDisplay => OptDisp} |
24 import net.tz.lift.model.{OptionalFieldDisplay => OptDisp} |
|
25 import net.tz.lift.model.{OptionalEmailField => OptEmail} |
25 import scala.xml.Text |
26 import scala.xml.Text |
26 |
27 |
27 class Contact private() extends Record[Contact] with Entity[Contact] { |
28 class Contact private() extends Record[Contact] with Entity[Contact] { |
28 |
29 |
29 def meta = Contact |
30 def meta = Contact |
30 |
31 |
31 val firstName = new StringField(this, 80, "") with FL |
32 val firstName = new StringField(this, 80, "") with FL |
32 val lastName = new StringField(this, 80, "") with FL |
33 val lastName = new StringField(this, 80, "") with FL |
33 val position = new OptionalStringField(this, 40) with OptDisp with FL |
34 val position = new OptionalStringField(this, 40) with OptDisp with FL |
34 val workMail = new EmailField(this, 256) with FL |
35 val workMail = new EmailField(this, 256) with FL |
35 val privateMail = new OptionalEmailField(this, 256) with OptDisp with FL |
36 val privateMail = new OptEmail(this, 256) with OptDisp with FL |
36 val otherMail = new OptionalEmailField(this, 256) with OptDisp with FL |
37 val otherMail = new OptEmail(this, 256) with OptDisp with FL |
37 val workMobile = new StringField(this, 40) with FL |
38 val workMobile = new StringField(this, 40) with FL |
38 val privateMobile = new OptionalStringField(this, 40) with OptDisp with FL |
39 val privateMobile = new OptionalStringField(this, 40) with OptDisp with FL |
39 val otherMobile = new OptionalStringField(this, 40) with OptDisp with FL |
40 val otherMobile = new OptionalStringField(this, 40) with OptDisp with FL |
40 val workPhone = new OptionalStringField(this, 40) with OptDisp with FL |
41 val workPhone = new OptionalStringField(this, 40) with OptDisp with FL |
41 val privatePhone = new OptionalStringField(this, 40) with OptDisp with FL |
42 val privatePhone = new OptionalStringField(this, 40) with OptDisp with FL |