A focused writing and publishing space. https://write.with.parts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
writefreely/templates/user/import.tmpl

60 lines
1.6 KiB

{{define "import"}}
{{template "header" .}}
<div class="snug content-container">
<h2 id="posts-header">Import</h2>
<p>You may import your data from another instance here. Please choose the same option for import as you did for export.</p>
<div class="formContainer">
<form id="importPosts" class="import">
<h3>Posts</h3>
<p>csv</p>
<input class="fileInput" type="file" accept="text/csv"/>
<br />
<input type="submit" value="Import" />
<br />
<p>txt</p>
<input class="fileInput" type="file" accept="text/txt"/>
<br />
<input type="submit" value="Import" />
</form>
</div>
<div class="formContainer">
<form id="importAll" class="import">
<h3>User + Blogs + Posts</h3>
<p>json/Prettified</p>
<input class="fileInput" type="file" accept="text/JSON"/>
<br />
<input type="submit" value="Import" />
</form>
</div>
</div>
<!-- <div class="snug content-container">
<h2 id="posts-header">Import</h2>
<p>You may import your data from another instance here.</p>
<table class="classy export">
<tr>
<th style="width: 40%">Import</th>
<th colspan="2">Format</th>
</tr>
<tr>
<th>Posts</th>
<td><p class="text-cta"><a href="">CSV</a></p></td>
<td><p class="text-cta"><a href="">TXT</a></p></td>
</tr>
<tr>
<th>User + Blogs + Posts</th>
<div>
<td><input type="file" accept="text/JSON"/></td>
</div>
<td><p class="text-cta"><a href="">JSON</a></p></td>
<td><p class="text-cta"><a href="">Prettified</a></p></td>
</tr>
</table>
<input type="submit">
</div> -->
{{template "footer" .}}
{{end}}