Merge pull request #3616 from emanuelschuetze/issue3613
Adapt motion csv import example file (Fix #3613).
This commit is contained in:
commit
15ad9340f4
@ -28,12 +28,6 @@ angular.module('OpenSlidesApp.motions.csv', [])
|
|||||||
if (params.include.motionBlock) {
|
if (params.include.motionBlock) {
|
||||||
headerline.push('Motion block');
|
headerline.push('Motion block');
|
||||||
}
|
}
|
||||||
if (params.include.state) {
|
|
||||||
headerline.push('State');
|
|
||||||
}
|
|
||||||
if (params.include.recommendation) {
|
|
||||||
headerline.push('Recommendation');
|
|
||||||
}
|
|
||||||
return _.map(headerline, function (entry) {
|
return _.map(headerline, function (entry) {
|
||||||
return gettextCatalog.getString(entry);
|
return gettextCatalog.getString(entry);
|
||||||
});
|
});
|
||||||
@ -101,16 +95,6 @@ angular.module('OpenSlidesApp.motions.csv', [])
|
|||||||
row.push('"' + blockTitle + '"');
|
row.push('"' + blockTitle + '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
// State
|
|
||||||
if (params.include.state) {
|
|
||||||
row.push('"' + motion.getStateName() + '"');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Recommendation
|
|
||||||
if (params.include.recommendation) {
|
|
||||||
row.push('"' + motion.getRecommendationName() + '"');
|
|
||||||
}
|
|
||||||
|
|
||||||
csvRows.push(row);
|
csvRows.push(row);
|
||||||
});
|
});
|
||||||
CsvDownload(csvRows, 'motions-export.csv');
|
CsvDownload(csvRows, 'motions-export.csv');
|
||||||
@ -126,9 +110,9 @@ angular.module('OpenSlidesApp.motions.csv', [])
|
|||||||
recommendation: true,
|
recommendation: true,
|
||||||
}}),
|
}}),
|
||||||
// example entries
|
// example entries
|
||||||
['A1', 'Title 1', 'Text 1', 'Reason 1', 'Submitter A', 'Category A', 'Last Year Conference A', 'Block A', 'permitted', ''],
|
['A1', 'Title 1', 'Text 1', 'Reason 1', 'Submitter A', 'Category A', 'Last Year Conference A', 'Block A'],
|
||||||
['B1', 'Title 2', 'Text 2', 'Reason 2', 'Submitter B', 'Category B', '', 'Block A', 'accepted', 'Acceptance'],
|
['B1', 'Title 2', 'Text 2', 'Reason 2', 'Submitter B', 'Category B', '', 'Block A'],
|
||||||
['' , 'Title 3', 'Text 3', '', '', '', '', '', '', ''],
|
['' , 'Title 3', 'Text 3', '', '', '', '', ''],
|
||||||
];
|
];
|
||||||
CsvDownload(csvRows, 'motions-example.csv');
|
CsvDownload(csvRows, 'motions-example.csv');
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user