intento de commit dani
This commit is contained in:
parent
ae3f9db948
commit
778ff9a5ec
|
@ -13,7 +13,7 @@
|
|||
</vn-horizontal>
|
||||
</vn-card>
|
||||
<vn-card margin-medium-top>
|
||||
<vn-item-client ng-repeat="client in index.model" title="View client" client="client"></vn-item-client>
|
||||
<vn-item-client vn-repeat="client in index.model track by client.id" title="View client" client="client"></vn-item-client>
|
||||
</vn-card>
|
||||
<vn-paging index="index"></vn-paging>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<vn-card ng-show="observation.observations.length" pad-medium>
|
||||
<vn-vertical pad-large>
|
||||
<vn-title>Notas</vn-title>
|
||||
<vn-horizontal ng-repeat="n in observation.observations" margin-small-bottom style="align-items: center;">
|
||||
<vn-horizontal vn-repeat="n in observation.observations" margin-small-bottom style="align-items: center;">
|
||||
<vn-auto style="border-radius: .3em;" class="pad-small border-solid">
|
||||
<div class="notes-date">{{n.created | date:'dd/MM/yyyy HH:mm'}}</div>
|
||||
<div class="notes-date">{{n.employee.name}}</div>
|
||||
|
|
|
@ -12,6 +12,7 @@ import './confirm/index';
|
|||
import './title/index';
|
||||
import './subtitle/index';
|
||||
import './spinner/index';
|
||||
import './repeat/index';
|
||||
|
||||
export {NAME as BUTTON, directive as ButtonDirective} from './button/button';
|
||||
export {NAME as BUTTON_MDL, factory as buttonMdl} from './button/button.mdl';
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
import { module as _module } from '../module';
|
||||
import * as constant from '../lib/constants';
|
||||
import * as util from '../lib/util';
|
||||
|
||||
const _NAME = 'repeat';
|
||||
export const NAME = util.getName(_NAME);
|
||||
|
||||
directive.$inject = ['$compile', '$timeout'];
|
||||
function directive($compile, $timeout) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
priority: 9999,
|
||||
link: function(scope, element, attrs) {
|
||||
element.removeAttr(`${constant.PREFIX}-${_NAME}`);
|
||||
element.attr('ng-repeat', attrs[NAME]);
|
||||
$compile(element)(scope);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
_module.directive(NAME, directive);
|
|
@ -1,5 +1,5 @@
|
|||
<vn-horizontal>
|
||||
<ul style="list-style-type: none; margin: 0; padding: 0; width: 100%; color: #666;">
|
||||
<vn-menu-item ng-repeat="item in action.items" item = "item"></vn-menu-item>
|
||||
<vn-menu-item vn-repeat="item in action.items" item = "item"></vn-menu-item>
|
||||
</ul>
|
||||
</vn-horizontal>
|
||||
|
|
Loading…
Reference in New Issue