parent
09e74481cb
commit
052daa2b19
@ -32,7 +32,7 @@ angular.module('OpenSlidesApp.agenda.csv', [])
|
||||
row.push('"' + (item.is_hidden ? '1' : '') + '"');
|
||||
csvRows.push(row);
|
||||
});
|
||||
CsvDownload(csvRows, 'agenda-export.csv');
|
||||
CsvDownload(csvRows, gettextCatalog.getString('Agenda') + '.csv');
|
||||
},
|
||||
};
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ angular.module('OpenSlidesApp.motions.csv', [])
|
||||
params = {};
|
||||
}
|
||||
_.defaults(params, {
|
||||
filename: 'motions-export.csv',
|
||||
filename: gettextCatalog.getString('motions') + '.csv',
|
||||
changeRecommendationMode: Config.get('motions_recommendation_text_mode').value,
|
||||
include: {
|
||||
text: true,
|
||||
@ -101,7 +101,7 @@ angular.module('OpenSlidesApp.motions.csv', [])
|
||||
|
||||
csvRows.push(row);
|
||||
});
|
||||
CsvDownload(csvRows, 'motions-export.csv');
|
||||
CsvDownload(csvRows, params.filename);
|
||||
},
|
||||
downloadExample: function () {
|
||||
var csvRows = [makeHeaderline({ include: {
|
||||
@ -118,7 +118,7 @@ angular.module('OpenSlidesApp.motions.csv', [])
|
||||
['B1', 'Title 2', 'Text 2', 'Reason 2', 'Submitter B', 'Category B', '', 'Block A'],
|
||||
['' , 'Title 3', 'Text 3', '', '', '', '', ''],
|
||||
];
|
||||
CsvDownload(csvRows, 'motions-example.csv');
|
||||
CsvDownload(csvRows, gettextCatalog.getString('motions-example') + '.csv');
|
||||
},
|
||||
};
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ angular.module('OpenSlidesApp.motions.docx', ['OpenSlidesApp.core.docx'])
|
||||
converter = Html2DocxConverter.createInstance();
|
||||
params = _.clone(params || {}); // Clone this to avoid sideeffects.
|
||||
_.defaults(params, {
|
||||
filename: 'motions-export.docx',
|
||||
filename: gettextCatalog.getString('motions') + '.docx',
|
||||
changeRecommendationMode: Config.get('motions_recommendation_text_mode').value,
|
||||
include: {
|
||||
text: true,
|
||||
|
@ -23,7 +23,7 @@ angular.module('OpenSlidesApp.topics.csv', [])
|
||||
['Demo 2', 'Demo text 2', '1:30', '', '']
|
||||
|
||||
];
|
||||
CsvDownload(csvRows, 'agenda-example.csv');
|
||||
CsvDownload(csvRows, gettextCatalog.getString('agenda-example') + '.csv');
|
||||
},
|
||||
};
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ angular.module('OpenSlidesApp.users.csv', [])
|
||||
row.push('"' + user.email + '"');
|
||||
csvRows.push(row);
|
||||
});
|
||||
CsvDownload(csvRows, 'users-export.csv');
|
||||
CsvDownload(csvRows, gettextCatalog.getString('participants') + '.csv');
|
||||
},
|
||||
|
||||
downloadExample: function () {
|
||||
@ -65,7 +65,7 @@ angular.module('OpenSlidesApp.users.csv', [])
|
||||
['', '', 'Executive Board', '', '', '', '', '', '', '1', '', ''],
|
||||
|
||||
];
|
||||
CsvDownload(csvRows, 'users-example.csv');
|
||||
CsvDownload(csvRows, gettextCatalog.getString('participants-example') + '.csv');
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -1590,14 +1590,15 @@ angular.module('OpenSlidesApp.users.site', [
|
||||
'$scope',
|
||||
'Group',
|
||||
'group',
|
||||
'gettextCatalog',
|
||||
'ErrorMessage',
|
||||
function($scope, Group, group, ErrorMessage) {
|
||||
function($scope, Group, group, gettextCatalog, ErrorMessage) {
|
||||
$scope.group = group;
|
||||
$scope.new_name = group.name;
|
||||
$scope.new_name = gettextCatalog.getString(group.name);
|
||||
|
||||
$scope.alert = {};
|
||||
$scope.save = function() {
|
||||
var old_name = $scope.group.name;
|
||||
var old_name = gettextCatalog.getString($scope.group.name);
|
||||
$scope.group.name = $scope.new_name;
|
||||
Group.save($scope.group).then(
|
||||
function (success) {
|
||||
|
@ -7,7 +7,7 @@
|
||||
<form name="groupForm" ng-submit="save()">
|
||||
<label for="name_1">
|
||||
<span ng-if="group">
|
||||
<translate>Please enter a new name for {{ group.name }}:</translate>
|
||||
<translate>Please enter a new group name:</translate>
|
||||
</span>
|
||||
<span ng-if="!group" translate>
|
||||
Please enter a name for the new group:
|
||||
|
@ -33,7 +33,7 @@
|
||||
</span>
|
||||
<i class="fa fa-info-circle" ng-if="group.id == 1"
|
||||
uib-tooltip="{{ 'Users without any assigned group gain the permissions from this group.' | translate }}"></i>
|
||||
<div os-perms="users.can_manage" ng-hide="group.id == 1" class="hoverActions"
|
||||
<div os-perms="users.can_manage" ng-hide="group.id == 1" class="hoverActions text-center"
|
||||
ng-class="{'hiddenDiv': !group.hover}">
|
||||
<!--edit name-->
|
||||
<a href="" ng-click="openDialog(group)">
|
||||
|
Loading…
Reference in New Issue
Block a user