$log.info('reset', $scope.search );
$scope.pager.page = 1;
}
+
+ $scope.print_hide = function(v) {
+ $log.info('print_hide', v);
+ if ( v ) {
+ angular.element('.print-hide').hide();
+ angular.element('.print-add-center').addClass('print-center');
+ } else {
+ angular.element('.print-hide').show();
+ angular.element('.print-add-center').removeClass('print-center');
+ }
+ }
}
ListCtrl.$inject = [ '$scope', '$log', 'Registration', 'RegistrationTypes', '$filter', 'ValidStates' ];
All results on single page <b>(can be slow!)</b>
</label>
+<label>
+<input type="checkbox" ng-model="print_hide_status" ng-click="print_hide(print_hide_status)" >
+Hide parts for print
+</label>
+
</fieldset>
<fieldset ng-show="show.states">
-<dt>
+<dt class="print-hide">
% if ( my $before = stash('before') ) {
%= $before->()
% }
<dd>
- <p class="well">
+ <p class="well print-hide">
{{registration.user.firstname}}
{{registration.user.surname}}
<em>{{registration.user.organization}}</em>,
</p>
</p>
-<h3 ng-show="registration.work.title">
+<h3 ng-show="registration.work.title" class="print-add-center">
{{registration.work.title}}
</h3>
-<p ng-repeat="author in registration.work.persons" >
+<p ng-repeat="author in registration.work.persons" class="print-add-center">
{{author.firstname}}
- {{author.surname}},
- <em>{{author.organization}}</em>
- <tt><{{author.email}}></tt>
+ {{author.surname}}<span class="print-hide">,</span>
+ <em class="print-add-center">{{author.organization}}</em>
+ <tt class="print-hide"><{{author.email}}></tt>
</p>
<p class="abstract">{{registration.work.abstract}}</p>