OpenSlides/openslides/motions/static/templates/motions/slide_motion.html

86 lines
3.4 KiB
HTML
Raw Normal View History

2016-01-08 21:31:58 +01:00
<div ng-controller="SlideMotionCtrl" class="content scrollcontent">
2016-01-13 00:07:53 +01:00
<div id="sidebox">
<!-- State -->
<h3 translate>State</h3>
{{ motion.getStateName() }}
2016-01-13 00:07:53 +01:00
<!-- Recommendation -->
<div ng-if="motion.getRecommendationName() != ''">
<h3 translate>{{ config('motions_recommendations_by') }}</h3>
{{ motion.getRecommendationName() }}
</div>
2016-01-13 00:07:53 +01:00
<!-- Submitters -->
<h3 ng-if="motion.submitters.length > 0" translate>Submitters</h3>
<div ng-repeat="submitter in motion.submitters">
{{ submitter.get_full_name() }}<br>
</div>
2016-02-08 22:15:31 +01:00
<!-- Poll results -->
<h3 ng-if="motion.polls.length > 0 && motion.polls[0].has_votes" translate>Voting result</h3>
2016-02-08 22:15:31 +01:00
<div ng-repeat="poll in motion.polls | orderBy:'-id'" class="spacer">
<div ng-show="poll.has_votes" class="pollresults">
<strong ng-if="motion.polls.length > 1">
<translate>Vote</translate> {{ motion.polls.length - $index }}:
</strong>
2016-02-08 22:15:31 +01:00
<table class="transparentTable spacer">
<!-- yes -->
<tr>
<td class="icon">
<i class="fa fa-thumbs-up fa-2x"></i>
<td ng-init="voteYes = poll.getVote(poll.yes, 'yes')">
2016-02-08 22:15:31 +01:00
<span class="result_label"><translate>Yes</translate>:</span>
<span class="result_value">
{{ voteYes.value }} {{ voteYes.percentStr }}
</span>
<div ng-if="voteYes.percentNumber">
<uib-progressbar value="voteYes.percentNumber" type="success"></uib-progressbar>
2016-02-08 22:15:31 +01:00
</div>
<!-- no -->
<tr>
<td class="icon">
<i class="fa fa-thumbs-down fa-2x"></i>
<td ng-init="voteNo = poll.getVote(poll.no, 'no')">
2016-02-08 22:15:31 +01:00
<span class="result_label"><translate>No</translate>:</span>
<span class="result_value" >
{{ voteNo.value }} {{ voteNo.percentStr }}
</span>
<div ng-if="voteNo.percentNumber">
<uib-progressbar value="voteNo.percentNumber" type="danger"></uib-progressbar>
2016-02-08 22:15:31 +01:00
</div>
<!-- abstain -->
<tr>
<td class="icon">
<strong style="font-size: 26px">&empty;</strong>
<td ng-init="voteAbstain = poll.getVote(poll.abstain, 'abstain')">
2016-02-08 22:15:31 +01:00
<span class="result_label"><translate>Abstain</translate>:</span>
<span class="result_value">
{{ voteAbstain.value }} {{ voteAbstain.percentStr }}
</span>
<div ng-if="voteAbstain.percentNumber">
<uib-progressbar value="voteAbstain.percentNumber" type="warning"></uib-progressbar>
2016-02-08 22:15:31 +01:00
</div>
</table>
</div>
</div>
2016-01-13 00:07:53 +01:00
</div>
<!-- Title -->
<div id="title">
<h1>{{ motion.agenda_item.getTitle() || motion.getTitle() }}</h1>
2016-01-13 00:07:53 +01:00
<h2>
<translate>Motion</translate> {{ motion.identifier }}
<span ng-if="motion.versions.length > 1" >| Version {{ motion.getVersion().version_number }}</span>
2016-01-13 00:07:53 +01:00
</h2>
</div>
<!-- Text -->
<div ng-bind-html="motion.getTextWithLineBreaks(null, line, scroll) | trusted"
class="motion-text line-numbers-{{ config('motions_default_line_numbering') }}"></div>
2016-01-13 00:07:53 +01:00
<!-- Reason -->
<h3 ng-if="motion.getReason()" translate>Reason</h3>
<div ng-bind-html="motion.getReason() | trusted"></div>
</div>