diff options
Diffstat (limited to 'view')
-rw-r--r-- | view/comment_item.tpl | 16 | ||||
-rw-r--r-- | view/jot-header.tpl | 14 | ||||
-rw-r--r-- | view/jot.tpl | 1 | ||||
-rw-r--r-- | view/register.tpl | 9 | ||||
-rw-r--r-- | view/style.css | 11 | ||||
-rw-r--r-- | view/wall_item.tpl | 3 |
6 files changed, 50 insertions, 4 deletions
diff --git a/view/comment_item.tpl b/view/comment_item.tpl new file mode 100644 index 000000000..ed788ad08 --- /dev/null +++ b/view/comment_item.tpl @@ -0,0 +1,16 @@ + +<div class="comment-edit" id="comment-edit-$id" onclick="openClose('comment-edit-wrapper-$id');" >Comments</div> +<div class="comment-edit-wrapper" id="comment-edit-wrapper-$id" style="display: none;"> + <form class="comment-edit-form" id="comment-edit-form-$id" action="item" method="post" > + <input type="hidden" name="type" value="jot" /> + <input type="hidden" name="profile_uid" value="$profile_uid" /> + <input type="hidden" name="parent" value="$id" /> + <textarea rows="3" cols="40" id="comment-edit-text-$id" name="body" ></textarea> + + + <div id="comment-edit-submit-wrapper" > + <input type="submit" id="comment-edit-submit" name="submit" value="Submit" /> + </div> + <div id="comment-edit-end"></div> + </form> +</div> diff --git a/view/jot-header.tpl b/view/jot-header.tpl index e5607b6bb..72cc672ff 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -21,6 +21,20 @@ tinyMCE.init({ }); + + + function openClose(theID) { + if(document.getElementById(theID).style.display == "block") { + document.getElementById(theID).style.display = "none" + } + else { + document.getElementById(theID).style.display = "block" + } + } + function openMenu(theID) { + document.getElementById(theID).style.display = "block" + } + </script> <!-- diff --git a/view/jot.tpl b/view/jot.tpl index f005ab78e..8be7865b6 100644 --- a/view/jot.tpl +++ b/view/jot.tpl @@ -15,4 +15,5 @@ What's on your mind? </div> <div id="profile-jot-end"></div> +</form> </div> diff --git a/view/register.tpl b/view/register.tpl index f3cff3a1b..30cc1ca1f 100644 --- a/view/register.tpl +++ b/view/register.tpl @@ -1,15 +1,18 @@ -<form action="register" method="post" /> +<form action="register" method="post" > $registertext <div id="register-name-wrapper" > - <label for="register-name" id="label-register-name" >Your Full Name (e.g. Joe Smith): <label> + <label for="register-name" id="label-register-name" >Your Full Name (e.g. Joe Smith): </label> <input type="text" maxlength="60" size="32" name="username" id="register-name" value="" > </div> + <div id="register-name-end" ></div> <div id="register-email-wrapper" > - <label for="register-email" id="label-register-email" >Your Email Address: <label> + <label for="register-email" id="label-register-email" >Your Email Address: </label> <input type="text" maxlength="60" size="32" name="email" id="register-email" value="" > </div> + <div id="register-email-end" ></div> <div id="register-submit-wrapper"> <input type="submit" name="submit" id="register-submit-button" value="Register" /> </div> + <div id="register-submit-end" ></div> </form> diff --git a/view/style.css b/view/style.css index 2c68839f7..f12e5f789 100644 --- a/view/style.css +++ b/view/style.css @@ -111,9 +111,10 @@ footer { #register-name, #register-email { float: left; margin-top: 10px; + width: 150px; } -#register-name-wrapper, #register-email-wrapper, #register-submit-wrapper { +#register-name-end, #register-email-end, #register-submit-end { clear: both; } @@ -371,6 +372,14 @@ input#dfrn-url { border: none; } +.comment-edit { + font-size: 0.8em; + cursor: pointer; + color: #3172BD; + margin-top: 15px; +} + + #profile-jot-submit-wrapper { margin-top: 15px; } diff --git a/view/wall_item.tpl b/view/wall_item.tpl index 898aafdaa..ece149c1f 100644 --- a/view/wall_item.tpl +++ b/view/wall_item.tpl @@ -7,6 +7,9 @@ <a href="$profile_url" title="View $name's profile" class="wall-item-name-link"><span class="wall-item-name" id="wall-item-name-$id" >$name</span></a> <span class="wall-item-body" id="wall-item-body-$id" >$body</span> <div class="wall-item-ago" id="wall-item-ago-$id">$ago</div> + +<div class="wall-item-comment-separator"></div> +$comment </div> <div class="wall-item-wrapper-end"></div> </div> |