summaryrefslogtreecommitdiff
path: root/core/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-10 00:25:59 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-10 00:25:59 +0000
commitb5f2443bb53b802366d1f76c80beebef70129e3f (patch)
tree9bc38839d37cefd60f9906a065b5aef0e88ccda2 /core/views
parent49f3794894fb591afd1009a6ad0a6f31cc10d066 (diff)
Add the ability to create albums to the scaffolding
Revert $_POST back to $this->input->post() because that supports default values.
Diffstat (limited to 'core/views')
-rw-r--r--core/views/welcome.html.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php
index 19001db6..d4015a91 100644
--- a/core/views/welcome.html.php
+++ b/core/views/welcome.html.php
@@ -155,12 +155,22 @@
</p>
<form method="post" action="<?= url::site("album/1") ?>" enctype="multipart/form-data">
<p>
- Upload: <input name="file" type="file"/>
+ Upload:
+ <input name="file" type="file"/>
<input type="hidden" name="type" value="photo"/>
<input type="hidden" name="__action" value="put"/>
<input type="submit"/>
</p>
</form>
+ <form method="post" action="<?= url::site("album/1") ?>">
+ <p>
+ Create Album:
+ <input type="text" name="name"/>
+ <input type="hidden" name="type" value="album"/>
+ <input type="hidden" name="__action" value="put"/>
+ <input type="submit"/>
+ </p>
+ </form>
</div>
<div id="info" class="activity">