Merge pull request #3015 from emanuelschuetze/fix-topic-form
Fixed forms (added missing operator).
This commit is contained in:
commit
96cbf17e72
@ -49,10 +49,11 @@ angular.module('OpenSlidesApp.motions.motionBlock', [])
|
|||||||
// MotionBlock views (list view, create dialog, update dialog)
|
// MotionBlock views (list view, create dialog, update dialog)
|
||||||
.factory('MotionBlockForm', [
|
.factory('MotionBlockForm', [
|
||||||
'$http',
|
'$http',
|
||||||
|
'operator',
|
||||||
'gettextCatalog',
|
'gettextCatalog',
|
||||||
'Agenda',
|
'Agenda',
|
||||||
'AgendaTree',
|
'AgendaTree',
|
||||||
function ($http, gettextCatalog, Agenda, AgendaTree) {
|
function ($http, operator, gettextCatalog, Agenda, AgendaTree) {
|
||||||
return {
|
return {
|
||||||
// Get ngDialog configuration.
|
// Get ngDialog configuration.
|
||||||
getDialog: function (motionBlock) {
|
getDialog: function (motionBlock) {
|
||||||
|
@ -164,7 +164,7 @@
|
|||||||
<translate>State</translate>
|
<translate>State</translate>
|
||||||
<span class="caret"></span>
|
<span class="caret"></span>
|
||||||
</span>
|
</span>
|
||||||
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownState">
|
<ul class="dropdown-menu dropdown-menu-left" aria-labelledby="dropdownState">
|
||||||
<li ng-repeat="state in states" ng-class="state.workflowHeader ? 'dropdown-header' : ''">
|
<li ng-repeat="state in states" ng-class="state.workflowHeader ? 'dropdown-header' : ''">
|
||||||
<a ng-if="state.workflowHeader">
|
<a ng-if="state.workflowHeader">
|
||||||
{{ state.headername | translate }}
|
{{ state.headername | translate }}
|
||||||
@ -184,6 +184,34 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
|
<!-- recommendation filter -->
|
||||||
|
<span uib-dropdown ng-if="config('motions_recommendations_by') != ''">
|
||||||
|
<span class="pointer" id="dropdownRecommendation" uib-dropdown-toggle
|
||||||
|
ng-class="{'bold': filter.multiselectFilters.recommendation.length > 0, 'disabled': isSelectMode}"
|
||||||
|
ng-disabled="isSelectMode">
|
||||||
|
<translate>Recommendation</translate>
|
||||||
|
<span class="caret"></span>
|
||||||
|
</span>
|
||||||
|
<ul class="dropdown-menu dropdown-menu-left" aria-labelledby="dropdownRecommentation">
|
||||||
|
<li ng-repeat="recommendation in recommendations" ng-class="recommendation.workflowHeader ? 'dropdown-header' : ''">
|
||||||
|
<a ng-if="recommendation.workflowHeader">
|
||||||
|
{{ recommendation.headername | translate }}
|
||||||
|
</a>
|
||||||
|
<a href ng-if="!recommendation.workflowHeader"
|
||||||
|
ng-click="filter.operateMultiselectFilter('recommendation', recommendation.id, isSelectMode)">
|
||||||
|
<i class="fa fa-check" ng-if="filter.multiselectFilters.recommendation.indexOf(recommendation.id) > -1"></i>
|
||||||
|
{{ recommendation.recommendation_label | translate }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li>
|
||||||
|
<a href ng-click="filter.operateMultiselectFilter('recommendation', -1, isSelectMode)">
|
||||||
|
<i class="fa fa-check" ng-if="filter.multiselectFilters.recommendation.indexOf(-1) > -1"></i>
|
||||||
|
<translate>No recommendation set</translate>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</span>
|
||||||
<!-- Category filter -->
|
<!-- Category filter -->
|
||||||
<span uib-dropdown ng-if="categories.length > 0">
|
<span uib-dropdown ng-if="categories.length > 0">
|
||||||
<span class="pointer" id="dropdownCategory" uib-dropdown-toggle
|
<span class="pointer" id="dropdownCategory" uib-dropdown-toggle
|
||||||
@ -232,34 +260,6 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
<!-- recommendation filter -->
|
|
||||||
<span uib-dropdown ng-if="config('motions_recommendations_by') != ''">
|
|
||||||
<span class="pointer" id="dropdownRecommendation" uib-dropdown-toggle
|
|
||||||
ng-class="{'bold': filter.multiselectFilters.recommendation.length > 0, 'disabled': isSelectMode}"
|
|
||||||
ng-disabled="isSelectMode">
|
|
||||||
<translate>Recommendation</translate>
|
|
||||||
<span class="caret"></span>
|
|
||||||
</span>
|
|
||||||
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownRecommentation">
|
|
||||||
<li ng-repeat="recommendation in recommendations" ng-class="recommendation.workflowHeader ? 'dropdown-header' : ''">
|
|
||||||
<a ng-if="recommendation.workflowHeader">
|
|
||||||
{{ recommendation.headername | translate }}
|
|
||||||
</a>
|
|
||||||
<a href ng-if="!recommendation.workflowHeader"
|
|
||||||
ng-click="filter.operateMultiselectFilter('recommendation', recommendation.id, isSelectMode)">
|
|
||||||
<i class="fa fa-check" ng-if="filter.multiselectFilters.recommendation.indexOf(recommendation.id) > -1"></i>
|
|
||||||
{{ recommendation.recommendation_label | translate }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="divider"></li>
|
|
||||||
<li>
|
|
||||||
<a href ng-click="filter.operateMultiselectFilter('recommendation', -1, isSelectMode)">
|
|
||||||
<i class="fa fa-check" ng-if="filter.multiselectFilters.recommendation.indexOf(-1) > -1"></i>
|
|
||||||
<translate>No recommendation set</translate>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</span>
|
|
||||||
<!-- Tag filter -->
|
<!-- Tag filter -->
|
||||||
<span uib-dropdown ng-if="tags.length > 0">
|
<span uib-dropdown ng-if="tags.length > 0">
|
||||||
<span class="pointer" id="dropdownTag" uib-dropdown-toggle
|
<span class="pointer" id="dropdownTag" uib-dropdown-toggle
|
||||||
|
@ -62,11 +62,12 @@ angular.module('OpenSlidesApp.topics.site', ['OpenSlidesApp.topics', 'OpenSlides
|
|||||||
|
|
||||||
.factory('TopicForm', [
|
.factory('TopicForm', [
|
||||||
'gettextCatalog',
|
'gettextCatalog',
|
||||||
|
'operator',
|
||||||
'Editor',
|
'Editor',
|
||||||
'Mediafile',
|
'Mediafile',
|
||||||
'Agenda',
|
'Agenda',
|
||||||
'AgendaTree',
|
'AgendaTree',
|
||||||
function (gettextCatalog, Editor, Mediafile, Agenda, AgendaTree) {
|
function (gettextCatalog, operator, Editor, Mediafile, Agenda, AgendaTree) {
|
||||||
return {
|
return {
|
||||||
// ngDialog for topic form
|
// ngDialog for topic form
|
||||||
getDialog: function (topic) {
|
getDialog: function (topic) {
|
||||||
|
Loading…
Reference in New Issue
Block a user