Merge pull request #60 from owncloud/design-enhancements

Design enhancements
This commit is contained in:
Thomas Müller 2016-02-26 23:39:06 +01:00
commit 0c91e0d284
3 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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>