summaryrefslogtreecommitdiffstats
path: root/admin.html
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2017-12-02 00:13:10 +0100
committersteckbrief <steckbrief@chefmail.de>2017-12-02 00:13:10 +0100
commit4173577f3f5ebfdc48727cd6065b5de5ac6c4383 (patch)
tree73fc8fc78f71f4f1c3b5c2db9cd13103cbe1acfd /admin.html
parent248eb1accdf7e92dd0572cb61bac523141662a69 (diff)
admin enhanced; list all stories if no current story is set
Diffstat (limited to 'admin.html')
-rw-r--r--admin.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/admin.html b/admin.html
index a17ff0f..000d7ea 100644
--- a/admin.html
+++ b/admin.html
@@ -7,7 +7,8 @@
<script src="js/bootstrap.min.js"></script>
<script>
function createNewStory() {
- var data = new FormData($('#create-story-form')[0]);
+ var form = $('#create-story-form')[0];
+ var data = new FormData(form);
//var file = $('#story-logo').prop('files')[0];
//data.append('file', file);
jQuery.ajax({
@@ -21,7 +22,8 @@
console.log("Success: Files sent!");
console.log(data);
console.log(textStatus);
- }).fail(function(jqXHR, textStatus){
+ $('#newSeriesModal').modal('hide');
+ forform }).fail(function(jqXHR, textStatus){
console.log("An error occurred, the files couldn't be sent!");
console.log(jqXHR);
console.log(textStatus);
@@ -83,6 +85,10 @@
<input type="text" class="form-control" id="story-name" name="story-name">
</div>
<div class="form-group">
+ <label for="story-description">Beschreibung der Kindergeschichte:</label>
+ <textarea class="form-control" rows="5" id="story-description" name="story-description"></textarea>
+ </div>
+ <div class="form-group">
<input type="file" name="story-logo" id="story-logo">
</div>
<button type="submit" class="btn btn-info btn-sm">Anlegen</button>