afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-22 05:15 pm

[dw-free] "Post a comment or solution:" on Support requests

[commit: http://hg.dwscoalition.org/dw-free/rev/3101c8b9c736]

http://bugs.dwscoalition.org/show_bug.cgi?id=1324

Use different form text for the request submitter, to reflect what they can
actually do.

Patch by [personal profile] yvi.

Files modified:
  • htdocs/support/see_request.bml
  • htdocs/support/see_request.bml.text
--------------------------------------------------------------------------------
diff -r 1f9dcb51859e -r 3101c8b9c736 htdocs/support/see_request.bml
--- a/htdocs/support/see_request.bml	Mon Jun 22 17:06:34 2009 +0000
+++ b/htdocs/support/see_request.bml	Mon Jun 22 17:14:50 2009 +0000
@@ -641,9 +641,11 @@ body<=
         return $ret;
     }
 
-    $ret .= "<p style='margin-bottom: 0px;'><b>$ML{'.post.comment'}:</b></p>\n";
-
-    unless ($remote || $is_poster) {
+    if ($is_poster) {
+        $ret .= "<p style='margin-bottom: 0px;'><b>$ML{'.post.moreinformation'}:</b></p>\n";
+    } elsif ($remote) {
+        $ret .= "<p style='margin-bottom: 0px;'><b>$ML{'.post.comment'}:</b></p>\n";
+    } else {
         $ret .= BML::ml('.mast.login', {loginlink=>"href='$LJ::SITEROOT/login.bml?ret=1'"});
         $ret .= "\n";
         return $ret;
@@ -921,7 +923,11 @@ body<=
     $ret .= LJ::html_textarea({ 'rows' => '12', 'cols' => '80', 'wrap' => 'virtual', 'id' => 'body', 'name' => 'body', 'value' => $validationnag }) . "<br />";
     $ret .= "<div style='float: right; font-size: smaller;'><a href='javascript://' onClick='doClearMessage();' onFocus='doClearFocus();'>$ML{'.clear'}</a></div>";
     $ret .= "<?de $ML{'.no.html.allowed'} de?><br />";
-    $ret .= LJ::html_submit('submitpost', $ML{'.postbutton'}, { id => 'submitpost' });
+    if ($is_poster) {
+        $ret .= LJ::html_submit('submitpost', $ML{'.postbuttoninfo'}, { id => 'submitpost' });
+    } else {
+        $ret .= LJ::html_submit('submitpost', $ML{'.postbutton'}, { id => 'submitpost' });
+    }
     $ret .= "</td></tr></table>\n";
 
     $ret .= "</form>\n";
diff -r 1f9dcb51859e -r 3101c8b9c736 htdocs/support/see_request.bml.text
--- a/htdocs/support/see_request.bml.text	Mon Jun 22 17:06:34 2009 +0000
+++ b/htdocs/support/see_request.bml.text	Mon Jun 22 17:14:50 2009 +0000
@@ -101,7 +101,11 @@ and correct, it will be sent to the user
 
 .post.comment=Post a comment or solution
 
+.post.moreinformation=Include more information
+
 .postbutton=Post Comment/Solution
+
+.postbuttoninfo=Submit More Information
 
 .posted=Posted
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org