all: intial code import

This commit is contained in:
2018-05-12 15:25:36 +02:00
parent 1f20ee2574
commit 9f47b858c3
59 changed files with 375 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
operations
editContact: aContact
^ self new
setContact: aContact;
yourself

View File

@@ -0,0 +1,3 @@
accessing
contact
^ contact

View File

@@ -0,0 +1,4 @@
initialize
initialize
super initialize.
contact := Contact new.

View File

@@ -0,0 +1,9 @@
rendering
renderButtonsOn: html
html tbsFormGroup: [
html tbsButtonGroup: [
self
renderSubmitButtonOn: html;
renderCancelButtonOn: html
]
]

View File

@@ -0,0 +1,6 @@
rendering
renderCancelButtonOn: html
html tbsButton
beDanger;
cancelCallback: [ self answer: nil ];
with: 'Cancel'

View File

@@ -0,0 +1,9 @@
rendering
renderContentOn: html
html tbsContainer: [
html heading with: 'Contact Editing'.
html tbsForm with: [
self renderFieldsOn: html.
self renderButtonsOn: html
]
]

View File

@@ -0,0 +1,10 @@
rendering
renderEmailFieldOn: html
html tbsFormGroup: [
html label: 'Email'.
html emailInput
tbsFormControl;
placeholder: 'your@email.eu';
callback: [ :email | self contact email: email address ];
value: (self contact email ifNil: '')
]

View File

@@ -0,0 +1,4 @@
rendering
renderFieldsOn: html
self renderFullnameFieldOn: html.
self renderEmailFieldOn: html

View File

@@ -0,0 +1,10 @@
rendering
renderFullnameFieldOn: html
html tbsFormGroup: [
html label: 'Fullname'.
html textInput
tbsFormControl;
placeholder: 'fullname';
callback: [ :value | self contact fullname: value ];
value: (self contact fullname ifNil: '')
]

View File

@@ -0,0 +1,7 @@
rendering
renderSubmitButtonOn: html
html tbsSubmitButton
beSuccess;
bePrimary;
callback: [ self answer: self contact ];
with: 'Save'

View File

@@ -0,0 +1,3 @@
accessing
setContact: aContact
contact := aContact

View File

@@ -0,0 +1,14 @@
{
"category" : "ContactBook",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
"contact" ],
"name" : "WAContact",
"pools" : [
],
"super" : "WAComponent",
"type" : "normal" }