aboutsummaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
Diffstat (limited to 'src/views')
-rw-r--r--src/views/panes/settings/import.ecr67
1 files changed, 37 insertions, 30 deletions
diff --git a/src/views/panes/settings/import.ecr b/src/views/panes/settings/import.ecr
index 5201e77..2cfa7ad 100644
--- a/src/views/panes/settings/import.ecr
+++ b/src/views/panes/settings/import.ecr
@@ -103,36 +103,43 @@
>WXR</a> format.
</p>
- <div class='form-group'>
- <label for='export-site'>
- Source Site
- </label>
-
- <select
- id='export-site'
- class='form-control'
- title='Choose source site.'
- aria-describedby='export-site-help'
- ><%=
- site_options
- %></select>
-
- <p id='export-site-help' class='help-block'>
- Source site of blog posts to export.
- </p>
- </div><!-- form-group -->
-
- <div class='form-group'>
- <a
- href='#'
- id='export-posts'
- class='btn btn-primary'
- title='Export blog posts to file in WXR format.'
- >
- <i class='fa fa-download'></i>
- Export Blog Posts
- </a>
- </div><!-- form-group -->
+ <form
+ id='export-posts-form'
+ method='post'
+ action='../guff/api/export/posts'
+ >
+ <div class='form-group'>
+ <label for='export-site'>
+ Source Site
+ </label>
+
+ <select
+ id='export-site'
+ name='site_id'
+ class='form-control'
+ title='Choose source site.'
+ aria-describedby='export-site-help'
+ ><%=
+ site_options
+ %></select>
+
+ <p id='export-site-help' class='help-block'>
+ Source site of blog posts to export.
+ </p>
+ </div><!-- form-group -->
+
+ <div class='form-group'>
+ <a
+ href='#'
+ id='export-posts'
+ class='btn btn-primary'
+ title='Export blog posts to file in WXR format.'
+ >
+ <i class='fa fa-download'></i>
+ Export Blog Posts
+ </a>
+ </div><!-- form-group -->
+ </form>
</div><!-- panel-body -->
</div><!-- panel -->
</div><!-- tab-pane -->