Skip to content

Commit

Permalink
add back import for documents (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Feb 13, 2024
1 parent 143c0af commit b34692a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion settings.json.docker
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
* Allow only some file formats
*/
"ep_disable_imports": {
"allow": []
"allow": ["etherpad", "txt"]
},

/*
Expand Down
4 changes: 2 additions & 2 deletions src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"pad.settings.about": "Über",
"pad.settings.poweredBy": "Betrieben von",
"pad.importExport.import_export": "Import/Export",
"pad.importExport.import": "Textdatei oder Dokument hochladen",
"pad.importExport.import": "Textdatei hochladen",
"pad.importExport.importSuccessful": "Erfolgreich!",
"pad.importExport.export": "Aktuelles Pad exportieren als:",
"pad.importExport.exportetherpad": "Etherpad",
Expand All @@ -97,7 +97,7 @@
"pad.importExport.exportword": "Microsoft Word",
"pad.importExport.exportpdf": "PDF",
"pad.importExport.exportopen": "ODF (Open Document Format)",
"pad.importExport.abiword.innerHTML": "Du kannst nur aus reinen Text- oder HTML-Formaten importieren. Für umfangreichere Importfunktionen <a href=\"https://github.com/ether/etherpad-lite/wiki/How-to-enable-importing-and-exporting-different-file-formats-with-AbiWord\">muss AbiWord oder LibreOffice auf dem Server installiert werden</a>.",
"pad.importExport.abiword.innerHTML": "Wähle bitte reine Text- oder HTML-Formate aus zum Importieren.",
"pad.modals.connected": "Verbunden.",
"pad.modals.reconnecting": "Dein Pad wird neu verbunden...",
"pad.modals.forcereconnect": "Erneutes Verbinden erzwingen",
Expand Down
22 changes: 21 additions & 1 deletion src/templates/pad.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,27 @@ <h2 data-l10n-id="pad.settings.about">About</h2>
<!------------------------->

<div id="import_export" class="popup"><div class="popup-content">
<h1>Export</h1>
<h1 data-l10n-id="pad.importExport.import_export"></h1>
<div class="acl-write">
<% e.begin_block("importColumn"); %>
<h2 data-l10n-id="pad.importExport.import"></h2>
<div class="importmessage" id="importmessageabiword" data-l10n-id="pad.importExport.abiword.innerHTML"></div><br>
<form id="importform" method="post" action="" target="importiframe" enctype="multipart/form-data">
<div class="importformdiv" id="importformfilediv">
<input type="file" name="file" size="10" id="importfileinput">
<div class="importmessage" id="importmessagefail"></div>
</div>
<div id="import"></div>
<div class="importmessage" id="importmessagesuccess" data-l10n-id="pad.importExport.importSuccessful"></div>
<div class="importformdiv" id="importformsubmitdiv">
<span class="nowrap">
<input type="submit" class="btn btn-primary" name="submit" value="Import Now" disabled="disabled" id="importsubmitinput">
<div alt="" id="importstatusball" class="loadingAnimation" align="top"></div>
</span>
</div>
</form>
<% e.end_block(); %>
</div>
<div id="exportColumn">
<h2 data-l10n-id="pad.importExport.export"></h2>
<% e.begin_block("exportColumn"); %>
Expand Down

0 comments on commit b34692a

Please sign in to comment.