[dw-free] use same buttons on top and bottom on /manage/circle/add.bml
[commit: http://hg.dwscoalition.org/dw-free/rev/04ba99be2acd]
http://bugs.dwscoalition.org/show_bug.cgi?id=696
Add buttons to top of manage/circle/add.bml, above filters.
Patch by
cesy.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=696
Add buttons to top of manage/circle/add.bml, above filters.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/manage/circle/add.bml
-------------------------------------------------------------------------------- diff -r af06e64beca0 -r 04ba99be2acd htdocs/manage/circle/add.bml --- a/htdocs/manage/circle/add.bml Thu May 07 15:56:25 2009 +0000 +++ b/htdocs/manage/circle/add.bml Thu May 07 16:07:24 2009 +0000 @@ -180,6 +180,23 @@ }); } + ## extra add and cancel buttons + $body .= "<br /><br />"; + if ($u->is_visible) { + my $btn = ( $watched || $trusted ) ? $ML{'.btn.modify'} : BML::ml( '.btn.add', { user => $u->display_name } ); + $body .= "<input type='submit' value=\"$btn\"> "; + } else { + $body .= "<input type='submit' name='action:delete' value=\"$ML{'.btn.remove'}\"> \n"; + } + + my $cancel_btn = LJ::ejs($ML{'.btn.cancel'}); + + $body .= "<script type='text/javascript' language='Javascript'> \n <!-- \n + document.write(\"<input type='button' value='$cancel_btn' onclick='history.go(-1); return false;'>\"); + \n // -->\n "; + $body .= '</script>'; + + ## let them pick friend groups # FIXME: Add support for reading groups once those exist my $err; --------------------------------------------------------------------------------
I am so proud of myself it's ridiculous
Re: I am so proud of myself it's ridiculous
(PS. Congratulations again!)