diff options
Diffstat (limited to 'views/people/qml/PersonComposer.qml')
-rw-r--r-- | views/people/qml/PersonComposer.qml | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/views/people/qml/PersonComposer.qml b/views/people/qml/PersonComposer.qml index 1d4dfa87..2e0436ed 100644 --- a/views/people/qml/PersonComposer.qml +++ b/views/people/qml/PersonComposer.qml | |||
@@ -168,24 +168,8 @@ Flickable { | |||
168 | Kube.Label { | 168 | Kube.Label { |
169 | text: qsTr("Email") | 169 | text: qsTr("Email") |
170 | } | 170 | } |
171 | Flow { | 171 | MailListEditor { |
172 | id: emails | 172 | controller: contactController.mails |
173 | |||
174 | width: personComposerRoot.width - Kube.Units.largeSpacing | ||
175 | |||
176 | Repeater { | ||
177 | model: contactController.emails | ||
178 | |||
179 | delegate: Row { | ||
180 | spacing: Kube.Units.smallSpacing | ||
181 | Kube.Label { text: qsTr("(main)") } | ||
182 | Kube.TextField { width: Kube.Units.gridUnit * 15; text: modelDatas; color: Kube.Colors.highlightColor; backgroundColor: "white" } | ||
183 | Item { width: Kube.Units.smallSpacing; height: 1 } | ||
184 | } | ||
185 | } | ||
186 | } | ||
187 | Kube.Button { | ||
188 | text: qsTr("Add") | ||
189 | } | 173 | } |
190 | } | 174 | } |
191 | 175 | ||
@@ -197,25 +181,8 @@ Flickable { | |||
197 | text: qsTr("Phone") | 181 | text: qsTr("Phone") |
198 | } | 182 | } |
199 | 183 | ||
200 | Flow { | 184 | PhoneListEditor { |
201 | id: phone | 185 | controller: contactController.phones |
202 | |||
203 | width: personComposerRoot.width - Kube.Units.largeSpacing | ||
204 | spacing: Kube.Units.smallSpacing | ||
205 | |||
206 | Repeater { | ||
207 | model: contactController.phoneNumbers | ||
208 | |||
209 | Row { | ||
210 | spacing: Kube.Units.smallSpacing | ||
211 | Kube.Label { text: qsTr("(main)") } | ||
212 | Kube.TextField { width: Kube.Units.gridUnit * 15; text: modelData; backgroundColor: "white"} | ||
213 | Item { width: Kube.Units.smallSpacing; height: 1 } | ||
214 | } | ||
215 | } | ||
216 | } | ||
217 | Kube.Button { | ||
218 | text: qsTr("Add") | ||
219 | } | 186 | } |
220 | } | 187 | } |
221 | 188 | ||