mirror of https://github.com/nextcloud/contacts
Merge pull request #60 from owncloud/design-enhancements
Design enhancements
This commit is contained in:
commit
0c91e0d284
|
@ -3,7 +3,8 @@ app.controller('contactdetailsCtrl', ['ContactService', 'vCardPropertiesService'
|
|||
|
||||
ctrl.uid = $routeParams.uid;
|
||||
ctrl.t = {
|
||||
'noContacts' : t('contactsrework', 'No contacts in here')
|
||||
noContacts : t('contactsrework', 'No contacts in here'),
|
||||
placeholderName : t('contactsrework', 'Name')
|
||||
};
|
||||
|
||||
ctrl.fieldDefinitions = vCardPropertiesService.fieldDefinitions;
|
||||
|
|
|
@ -198,7 +198,8 @@ app.controller('contactdetailsCtrl', ['ContactService', 'vCardPropertiesService'
|
|||
|
||||
ctrl.uid = $routeParams.uid;
|
||||
ctrl.t = {
|
||||
'noContacts' : t('contactsrework', 'No contacts in here')
|
||||
noContacts : t('contactsrework', 'No contacts in here'),
|
||||
placeholderName : t('contactsrework', 'Name')
|
||||
};
|
||||
|
||||
ctrl.fieldDefinitions = vCardPropertiesService.fieldDefinitions;
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
</div>
|
||||
<div ng-if="ctrl.contact!==undefined">
|
||||
<header class="contactdetails__header" ng-style="{'background-color': (ctrl.contact.uid() | contactColor)}">
|
||||
<img class="contactdetails__logo" data-ng-src="data:image/png;base64,{{ctrl.photo}}" />
|
||||
<img class="contactdetails__logo avatar" data-ng-src="data:image/png;base64,{{ctrl.photo}}" />
|
||||
<h2>
|
||||
<input type="text" id="details-email" class="contactdetails__name" name="email" ng-model="ctrl.contact.fullName" ng-model-options="{ getterSetter: true, debounce: 500 }" ng-change="ctrl.updateContact()" value="" />
|
||||
<input type="text" id="details-email" class="contactdetails__name" placeholder="{{ctrl.t.placeholderName}}" name="email" ng-model="ctrl.contact.fullName" ng-model-options="{ getterSetter: true, debounce: 500 }" ng-change="ctrl.updateContact()" value="" />
|
||||
</h2>
|
||||
<button ng-click="ctrl.deleteContact()" class="icon-delete-white" title="Delete"></button>
|
||||
</header>
|
||||
|
|
Loading…
Reference in New Issue