aboutsummaryrefslogtreecommitdiff
path: root/src/views/panes/settings/import.ecr
blob: 138a03930d6c08616bb61c4adb2e6c19fe464c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<div
  id='settings-pane-import'
  class='tab-pane'
  role='tabpanel'
>
  <div class='panel panel-default'>
    <div class='panel-heading'>
      <b>
        <i class='fa fa-upload'></i>
        Import Blog Posts
      </b>
    </div><!-- panel-heading -->

    <div class='panel-body'>
      <p>
        Use the file input field below to select an input
        <a
          href='https://codex.wordpress.org/Tools_Export_Screen'
          title='View WordPress export instructions.'
          rel='nofollow noopener'
          target='_blank'
        >WXR</a>
        file, select a destination site, then press the "Import Blog
        Posts" button to import your blog posts.
      </p>

      <div class='form-group'>
        <label for='import-file'>
          Input File
        </label>

        <input
          id='import-file'
          type='file'
          class='form-control'
          title='Choose input file.'
          aria-describedby='import-file-help'
        />

        <p id='import-file-help' class='help-block'>
          Source file (in WXR format) containing blog posts.
        </p>
      </div><!-- form-group -->

      <div class='form-group'>
        <label for='import-file'>
          Destination Site
        </label>

        <select
          id='import-site'
          class='form-control'
          title='Choose destination site.'
          aria-describedby='import-site-help'
        ><%=
          site_options
        %></select>

        <p id='import-site-help' class='help-block'>
          Destination site for imported blog posts.
        </p>
      </div><!-- form-group -->

      <div class='form-group'>
        <a
          href='#'
          id='import-posts'
          class='btn btn-primary'
          title='Import blog posts from WXR file.'
        >
          <i class='fa fa-upload'></i>
          Import Blog Posts
        </a>
      </div><!-- form-group -->
    </div><!-- panel-body -->
  </div><!-- panel -->

  <div class='panel panel-default'>
    <div class='panel-heading'>
      <b>
        <i class='fa fa-download'></i>
        Export Blog Posts
      </b>
    </div><!-- panel-heading -->

    <div class='panel-body'>
      <p>
        Choose a source site, then click the "Export Blog Posts" button
        below to export blog posts in
        <a
          href='https://codex.wordpress.org/Tools_Export_Screen'
          title='View WordPress export instructions.'
          rel='nofollow noopener'
          target='_blank'
        >WXR</a> format.
      </p>

      <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 -->