Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding post edit mode with simple test (refs #347, fixes #384)
- Loading branch information
1 parent
8dc6896
commit 5ee941a
Showing
10 changed files
with
90 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
PathManager::loadPaths( | ||
array("/admin/login", "login"), | ||
array("/admin", "index") | ||
array("/admin", "index"), | ||
array("/admin/posts/edit/(?P<id>\d+)", "edit_post") | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{extends file='admin/views/base.tpl'} | ||
{block name='body'} | ||
<form action="{$current_url}" method="post"> | ||
{include file='default/views/helpers/field.tpl' field='title'} | ||
{include file='default/views/helpers/field.tpl' field='url'} | ||
{include file='default/views/helpers/field.tpl' field='status'} | ||
{include file='default/views/helpers/field.tpl' field='published'} | ||
{include file='default/views/helpers/field.tpl' field='content' fclass="editcontent"} | ||
{include file='default/views/helpers/field.tpl' field='tags'} | ||
<div class="actions"> | ||
<input type="submit" value="Save" class="btn primary" /> | ||
</div> | ||
</form> | ||
{/block} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule jaoss
updated
2 files
+4 −0 | library/object.php | |
+8 −0 | library/validate.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,8 @@ a { | |
a:hover { | ||
color:#7D001D; | ||
} | ||
|
||
.editcontent textarea { | ||
width:800px; | ||
height:400px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters