forked from wo1f1ow/dvna
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
129 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ docs/_book | |
npm-debug.log | ||
vars.env | ||
package-lock.json | ||
.dev/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<% include ../common/head %> | ||
</head> | ||
<body> | ||
<% include ../common/navigation %> | ||
<div class='container' style='min-height: 450px'><div class='row'><div class='col-md-12'> | ||
|
||
<h2> | ||
<i class='fa fa-upload'></i> Bulk Import Products | ||
</h2> | ||
|
||
<% if (messages.success) { %> | ||
<div class="alert alert-success"><%=messages.success%></div> | ||
<% } else if (messages.danger) { %> | ||
<div class="alert alert-danger"><%= messages.danger %></div> | ||
<% } else if (messages.warning) {%> | ||
<div class="alert alert-warning"><%= messages.warning %></div> | ||
<% } else if (messages.info) {%> | ||
<div class="alert alert-info"><%= messages.info %></div> | ||
<% } %> | ||
|
||
<div> | ||
<h3>Upload products</h3> | ||
<form encType="multipart/form-data" method="post" action="/app/bulkproducts"> | ||
<div class="input-group mb-3"> | ||
<div class="products-file"> | ||
<input type="file" name="products" class="file-input" id="inputfile" accept=".xml"> | ||
<br> | ||
<input class="button" type="submit" name="submit" value="Upload"> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
<div><br> | ||
<h3>Sample XML</h3> | ||
<xmp> | ||
<products> | ||
<product> | ||
<name>Xbox One</name> | ||
<code>23</code> | ||
<tags>gaming console</tags> | ||
<description>Gaming console by Microsoft</description> | ||
</product> | ||
<product> | ||
<name>Playstation 4</name> | ||
<code>26</code> | ||
<tags>gaming console</tags> | ||
<description>Gaming console by Sony</description> | ||
</product> | ||
</products> | ||
</xmp> | ||
<xmp> | ||
<products> | ||
<product> | ||
<name>Xbox One</name> | ||
<code>23</code> | ||
<tags>gaming console</tags> | ||
<description>Gaming console by Microsoft</description> | ||
</product> | ||
<product> | ||
<name>Playstation 4</name> | ||
<code>26</code> | ||
<tags>gaming console</tags> | ||
<description>Gaming console by Sony</description> | ||
</product> | ||
</products> | ||
</xmp> | ||
<!-- For legacy endpoit /app/bulkproducts?legacy=true <xmp>[{"name":"Xbox 360","code":"15","tags":"gaming console","description":"Microsoft's flagship gaming console"},{"name":"Playstation 3","code":"17","tags":"gaming console","description":"Sony's flagshipgaming console"}]</xmp> --> | ||
</div> | ||
|
||
|
||
|
||
</div></div></div> | ||
<% include ../common/footer %> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters