2016-10-14 15:38:56 +02:00
|
|
|
<div class="header">
|
|
|
|
<div class="title">
|
|
|
|
<div class="submenu">
|
|
|
|
<a ui-sref="motions.motionBlock.list" class="btn btn-sm btn-default">
|
|
|
|
<i class="fa fa-angle-double-left fa-lg"></i>
|
|
|
|
<translate>Back to overview</translate>
|
|
|
|
</a>
|
|
|
|
<!-- List of speakers -->
|
|
|
|
<a ui-sref="agenda.item.detail({id: motionBlock.agenda_item_id})" class="btn btn-sm btn-default">
|
|
|
|
<i class="fa fa-microphone fa-lg"></i>
|
|
|
|
<translate>List of speakers</translate>
|
|
|
|
</a>
|
|
|
|
<!-- project -->
|
|
|
|
<projector-button model="motionBlock" default-projector-id="defaultProjectorId">
|
|
|
|
</projector-button>
|
|
|
|
<!-- edit -->
|
|
|
|
<a ng-click="openDialog(motionBlock)"
|
|
|
|
class="btn btn-default btn-sm"
|
|
|
|
title="{{ 'Edit' | translate}}">
|
|
|
|
<i class="fa fa-pencil"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<h1>{{ motionBlock.agenda_item.getTitle() }}</h1>
|
|
|
|
<h2 translate>Motion block</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="details">
|
2017-02-01 22:16:26 +01:00
|
|
|
<a os-perms="motions.can_manage" class="btn btn-default btn btn-sm"
|
2016-10-14 15:38:56 +02:00
|
|
|
ng-bootbox-confirm="{{ 'Are you sure you want to override the state of all motions of this motion block?' | translate }}"
|
2016-10-17 22:55:41 +02:00
|
|
|
ng-bootbox-confirm-action="followRecommendations()">
|
2016-10-14 15:38:56 +02:00
|
|
|
<i class="fa fa-magic fa-lg"></i>
|
2016-10-14 21:48:02 +02:00
|
|
|
<translate>Follow recommendations for all motions</translate>
|
2016-10-14 15:38:56 +02:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="row spacer form-group">
|
|
|
|
<div class="col-sm-4 pull-right">
|
|
|
|
<input type="text" ng-model="filter.search" class="form-control"
|
|
|
|
placeholder="{{ 'Filter' | translate }}">
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 italic">
|
|
|
|
{{ motionsFiltered.length }} /
|
|
|
|
{{ motionBlock.motions.length }} {{ "motions" | translate }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table class="table table-striped table-bordered table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><translate>Motion</translate>
|
|
|
|
<th><translate>State</translate>
|
|
|
|
<th><translate>Recommendation</translate>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="motion in motionsFiltered = (motionBlock.motions | filter: filter.search | orderBy: 'identifier')">
|
|
|
|
<td ng-mouseover="motion.hover=true" ng-mouseleave="motion.hover=false">
|
|
|
|
<strong>
|
|
|
|
<a ui-sref="motions.motion.detail({id: motion.id})">{{ motion.identifier }} {{ motion.getTitle() }}</a>
|
|
|
|
</strong>
|
2016-10-17 20:21:26 +02:00
|
|
|
<div os-perms="motions.can_manage" class="hoverActions" ng-class="{'hiddenDiv': !motion.hover}">
|
2016-10-14 15:38:56 +02:00
|
|
|
<!-- delete -->
|
|
|
|
<a href="" class="text-danger"
|
|
|
|
ng-bootbox-confirm="{{ 'Are you sure you want to remove this motion from motion block?' | translate }}<br>
|
|
|
|
<b>{{ motion.getTitle() }}</b>"
|
2016-10-17 20:21:26 +02:00
|
|
|
ng-bootbox-confirm-action="delete(motion)" translate>Remove from motion block</a>
|
2016-10-14 15:38:56 +02:00
|
|
|
</div>
|
|
|
|
<td>
|
|
|
|
<div class="label" ng-class="'label-'+motion.state.css_class">
|
2016-10-27 14:01:12 +02:00
|
|
|
{{ motion.getStateName() }}
|
2016-10-14 15:38:56 +02:00
|
|
|
</div>
|
|
|
|
<td>
|
2016-10-27 14:01:12 +02:00
|
|
|
<div class="label" ng-class="'label-'+motion.recommendation.css_class">
|
|
|
|
{{ motion.getRecommendationName() }}
|
|
|
|
</div>
|
2016-10-14 15:38:56 +02:00
|
|
|
</table>
|
|
|
|
</div>
|