|
Revision 24325, 1.1 kB
(checked in by mattn, 5 years ago)
|
|
編集画面でmetaが消えちゃうよ!
|
| Line | |
|---|
| 1 | ? my ($entry, $message) = @_ |
|---|
| 2 | ?=r render_partial('header.mt', config()->{application}->{title}) |
|---|
| 3 | <div class="entry"> |
|---|
| 4 | <span class="error"><?= $message ?></span> |
|---|
| 5 | <form method="post" action="<?= docroot ?>" enctype="multipart/form-data"> |
|---|
| 6 | <input type="hidden" name="id" value="<?= $entry->{id} ?>" /> |
|---|
| 7 | <label for="title">タイトル</label><br /> |
|---|
| 8 | <input type="text" id="title" name="title" value="<?=r escape_html($entry->{title}) ?>" style="width: 400px" /><br /> |
|---|
| 9 | <br /> |
|---|
| 10 | <label for="description">本文</label><br /> |
|---|
| 11 | ? my $meta = join '', map({ "meta-$_: ".$entry->{meta}->{$_}."\n" } keys(%{$entry->{meta}})) |
|---|
| 12 | ? $meta .= "\n" if $meta; |
|---|
| 13 | <textarea id="description" name="description" style="width: 400px; height: 300px;"><?=r $meta.escape_html($entry->{description}) ?></textarea> |
|---|
| 14 | <br /> |
|---|
| 15 | <label for="photo">画像</label><br /> |
|---|
| 16 | <input type="file" id="photo" name="photo" /> |
|---|
| 17 | <br /> |
|---|
| 18 | <label for="password">パスワード</label><br /> |
|---|
| 19 | <input type="password" id="password" name="password" /> |
|---|
| 20 | <input type="submit" /> |
|---|
| 21 | </form> |
|---|
| 22 | </div> |
|---|
| 23 | ?=r render_partial('footer.mt') |
|---|