diff --git a/openslides/motions/static/js/motions/workflow.js b/openslides/motions/static/js/motions/workflow.js index db22d55aa..79ace06ed 100644 --- a/openslides/motions/static/js/motions/workflow.js +++ b/openslides/motions/static/js/motions/workflow.js @@ -49,7 +49,9 @@ angular.module('OpenSlidesApp.motions.workflow', []) return Workflow.lastModified(workflowId); }, function () { $scope.workflow = Workflow.get(workflowId); - _.forEach($scope.workflow.states, function (state) { + $scope.states = $scope.workflow.states; + $scope.states = _.orderBy($scope.states, 'id'); + _.forEach($scope.states, function (state) { state.newActionWord = gettextCatalog.getString(state.action_word); state.newRecommendationLabel = gettextCatalog.getString(state.recommendation_label); }); diff --git a/openslides/motions/static/templates/motions/workflow-detail.html b/openslides/motions/static/templates/motions/workflow-detail.html index 29c8da0ca..c59e31dd9 100644 --- a/openslides/motions/static/templates/motions/workflow-detail.html +++ b/openslides/motions/static/templates/motions/workflow-detail.html @@ -40,7 +40,7 @@

Permissions

- + {{ state.name | translate }} @@ -69,7 +69,7 @@ Action word - +
@@ -88,7 +88,7 @@ Recommendation label - +
+ Initial password: {{ user.default_password }} - Initial password: {{ user.default_password }} - +
+ Username: {{ user.username }} Show password