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.

37 lines
1.4 KiB

  1. <div class="narrow">
  2. <?= partial('partials/header') ?>
  3. <form method="POST" role="form" style="margin-top: 20px;" id="note_form" enctype="multipart/form-data">
  4. <div class="form-group">
  5. <label for="note_photo"><code>photo</code></label>
  6. <input type="file" name="note_photo" id="note_photo" accept="image/jpg,image/jpeg,image/gif,image/png">
  7. <p class="help-block">Photo JPEG, GIF or PNG.</p>
  8. </div>
  9. <div class="form-group">
  10. <label for="note_content"><code>content</code> (optional)</label>
  11. <textarea name="note_content" id="note_content" value="" class="form-control" style="height: 4em;"><? if(isset($this->note_content)) echo $this->note_content ?></textarea>
  12. </div>
  13. <button class="btn btn-success" id="btn_post">Post</button>
  14. </form>
  15. <? if(!empty($this->location)): ?>
  16. <div class="alert alert-success">
  17. <strong>Success!</strong> Photo posted to: <em><a href="<?= $this->location ?>"><?= $this->location ?></a></em>
  18. </div>
  19. <? endif ?>
  20. <? if(!empty($this->error)): ?>
  21. <div class="alert alert-danger">
  22. <strong>Error:</strong> <em><?= $this->error ?></em>
  23. </div>
  24. <? endif ?>
  25. <? if(!empty($this->response)): ?>
  26. <h4>Response:</h4>
  27. <pre><?= $this->response ?></pre>
  28. <? endif ?>
  29. </div>