OpenSlides/openslides/assignments/static/templates/assignments/assignment-form.html
Emanuel Schuetze 8d638a908d Added new angularjs templates
for agenda, motions, assignments, users and mediafiles apps.

Users app:
- Show permissions in group form (Fixed #1500)
- Added experimental csv import for users.

Agenda:
- new agenda sort view.
- Added experimental angular-xeditable for item-list view.

General:
- Added core.tag templates.
- Added mediafiles templates.
- Remove old template and js files. Remove old views.
- Skip old tests.

Added external angular modules:
- angular-loading-bar (Fixed #1448)
- ui-tree (for sorting agenda tree)
- ng-fab-forms (for better form validation)
- ui-bootstrap (for modal window, dropdown, popover)
- ngBootbox (for confirm delete dialogs in agenda and users app)
2015-05-06 09:19:16 +02:00

32 lines
1.1 KiB
HTML

<h1 ng-if="assignment.id" translate>Edit election</h1>
<h1 ng-if="!assignment.id" translate>New election</h1>
<div id="submenu">
<a ui-sref="assignments.assignment.list" class="btn btn-sm btn-default">
<i class="fa fa-angle-double-left fa-lg"></i>
<translate>Back to overview</translate>
</a>
</div>
<form name="assignmentForm">
<div class="form-group">
<label for="inputTitle" translate>Title</label>
<input type="text" ng-model="assignment.title" class="form-control" name="inputTitle" required>
</div>
<div class="form-group">
<label for="textareaDesciption" translate>Description</label>
<textarea ng-model="assignment.description" class="form-control" name="textareaDescription" />
</div>
<div class="form-group">
<label for="inputPosts" translate>Number of members to be elected</label>
<input type="number" ng-model="assignment.open_posts" class="form-control" name="inputPosts" required>
</div>
<button type="submit" ng-click="save(assignment)" class="btn btn-primary" translate>
Save
</button>
<button ui-sref="assignments.assignment.list" class="btn btn-default" translate>
Cancel
</button>
</form>