Merge pull request #1873 from emanuelschuetze/motionFixes2

Added missing motionpoll-form template. Fix remark in motion-detail.
This commit is contained in:
Oskar Hahn 2016-01-15 13:38:41 +01:00
commit 8ae35c0cc5
2 changed files with 21 additions and 1 deletions

View File

@ -185,7 +185,6 @@
<translate>New vote</translate>
</button>
</div>
<div class="col-sm-1"></div>
</div>
</div>
</div>

View File

@ -0,0 +1,21 @@
<h1><translate>Vote</translate> {{ voteNumber }}</h1>
<alert ng-show="alert.show" type="{{ alert.type }}" ng-click="alert={}" close="alert={}">
{{ alert.msg }}
</alert>
<p>
<translate>Special values</translate>:
<span class="badge badge-success">-1</span> = <translate>majority</translate>
<span class="badge">-2</span> = <translate>undocumented</translate>
<form name="motionPollForm" ng-submit="save(model)">
<formly-form model="model" fields="formFields">
<button type="submit" ng-disabled="motionPollForm.$invalid" class="btn btn-primary" translate>
Save
</button>
<button ng-click="closeThisDialog()" class="btn btn-default" translate>
Cancel
</button>
</formly-form>
</form>