summaryrefslogtreecommitdiffstats
path: root/templates/part.settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/part.settings.php')
-rw-r--r--templates/part.settings.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/part.settings.php b/templates/part.settings.php
index fbe39fffd..ab1876104 100644
--- a/templates/part.settings.php
+++ b/templates/part.settings.php
@@ -11,12 +11,15 @@
<div id="app-settings-content">
<fieldset class="personalblock">
<legend><strong><?php p($l->t('Import / Export OPML')); ?></strong></legend>
+
<input type="file" id="opml-upload" name="import"
oc-read-file="import($fileContent)"/>
<button title="<?php p($l->t('Import')); ?>"
oc-forward-click="{selector:'#opml-upload'}">
<?php p($l->t('Import')); ?>
</button>
+
+
<a title="<?php p($l->t('Export')); ?>" class="button"
href="<?php p(\OCP\Util::linkToRoute('news_export_opml')); ?>"
target="_blank"
@@ -29,6 +32,10 @@
<?php p($l->t('Export')); ?>
</button>
+ <p class="error" ng-show="error">
+ <?php p($l->t('Error when importing: file does not contain valid OPML')); ?>
+ </p>
+
</fieldset>
<fieldset class="personalblock">
<legend><strong><?php p($l->t('Subscribelet')); ?></strong></legend>