aboutsummaryrefslogtreecommitdiff
path: root/src/views/panes/settings
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-07-29 02:51:12 -0400
committerPaul Duncan <pabs@pablotron.org>2016-07-29 02:51:12 -0400
commitfad3ab3e2e111eb0ec46d6c8372d64c4a057cf10 (patch)
treec8d3d1e723eb6351b9db1d568b79eda1cba30412 /src/views/panes/settings
parente7e574a556b699395d98d32b56fe7f5492b2463c (diff)
downloadguff-fad3ab3e2e111eb0ec46d6c8372d64c4a057cf10.tar.bz2
guff-fad3ab3e2e111eb0ec46d6c8372d64c4a057cf10.zip
add views/post-exporter
Diffstat (limited to 'src/views/panes/settings')
-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 -->