summaryrefslogtreecommitdiff
path: root/views/photo.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2015-07-25 03:55:00 -0700
committerAaron Parecki <aaron@parecki.com>2015-07-25 03:55:00 -0700
commit35bd5a9e68b50bf57963ea626a3fbf7432b37c93 (patch)
treecc5e9b506494eaf4c59a1200e4bcea875acba46a /views/photo.php
parent60830007641c985c11c8ac8f609aab735dd84a96 (diff)
parentafa182bc120371a15b28227ce712cba501a78d05 (diff)
Merge branch 'master' of github.com:aaronpk/IndiePost
Diffstat (limited to 'views/photo.php')
-rw-r--r--views/photo.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/views/photo.php b/views/photo.php
new file mode 100644
index 0000000..364a55d
--- /dev/null
+++ b/views/photo.php
@@ -0,0 +1,38 @@
+ <div class="narrow">
+ <?= partial('partials/header') ?>
+
+ <form method="POST" role="form" style="margin-top: 20px;" id="note_form" enctype="multipart/form-data">
+
+ <div class="form-group">
+ <label for="note_photo"><code>photo</code></label>
+ <input type="file" name="note_photo" id="note_photo" accept="image/jpg,image/jpeg,image/gif,image/png">
+ <p class="help-block">Photo JPEG, GIF or PNG.</p>
+ </div>
+
+ <div class="form-group">
+ <label for="note_content"><code>content</code> (optional)</label>
+ <textarea name="note_content" id="note_content" value="" class="form-control" style="height: 4em;"><? if(isset($this->note_content)) echo $this->note_content ?></textarea>
+ </div>
+
+ <button class="btn btn-success" id="btn_post">Post</button>
+ </form>
+
+ <? if(!empty($this->location)): ?>
+ <div class="alert alert-success">
+ <strong>Success!</strong> Photo posted to: <em><a href="<?= $this->location ?>"><?= $this->location ?></a></em>
+ </div>
+ <? endif ?>
+
+ <? if(!empty($this->error)): ?>
+ <div class="alert alert-danger">
+ <strong>Error:</strong> <em><?= $this->error ?></em>
+ </div>
+ <? endif ?>
+
+ <? if(!empty($this->response)): ?>
+ <h4>Response:</h4>
+ <pre><?= $this->response ?></pre>
+ <? endif ?>
+
+
+ </div> \ No newline at end of file