documentSaveUrl: function(id) { return '/editor/text/' + id + '/'; },
documentHistoryUrl: function(id) { return '/editor/history/' + id + '/'},
documentDiffUrl: function(id) { return '/editor/diff/' + id + '/'; },
+ documentRestoreUrl: function(id) { return '/editor/revert/' + id + '/'},
documentSaveForm: {
fields: [
],
content_field_name: '{{forms.text_save.text.html_name}}',
version_field_name: '{{forms.text_save.parent_revision.html_name}}'
+ },
+
+ documentRestoreForm: {
+ fields: [
+ {label: '{{forms.text_revert.comment.label}}', name: '{{forms.text_revert.comment.html_name}}', type: 'textarea'}
+ ],
+ version_field_name: '{{forms.text_revert.revision.html_name}}'
}
};
{label: '{{forms.text_save.author_name.label}}', name: '{{forms.text_save.author_name.html_name}}', type: 'input', description: '{{forms.text_save.author_name.help_text}}'},
{label: '{{forms.text_save.author_email.label}}', name: '{{forms.text_save.author_email.html_name}}', type: 'input', description: '{{forms.text_save.author_email.help_text}}'}
);
+
+ config.documentRevertForm.fields.push(
+ {label: '{{forms.text_revert.author_name.label}}', name: '{{forms.text_revert.author_name.html_name}}', type: 'input', description: '{{forms.text_revert.author_name.help_text}}'},
+ {label: '{{forms.text_revert.author_email.label}}', name: '{{forms.text_revert.author_email.html_name}}', type: 'input', description: '{{forms.text_revert.author_email.help_text}}'}
+ );
{% endif %}
{% autoescape off%}