Aralot (aralot) wrote in changelog,
Aralot
aralot
changelog

[livejournal] r19960: LJSUP-9517: Edit Entries page redesign

Committer: szhirkov
LJSUP-9517: Edit Entries page redesign
U   trunk/htdocs/editjournal.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2011-09-05 09:49:26 UTC (rev 19959)
+++ trunk/htdocs/editjournal.bml	2011-09-05 09:54:52 UTC (rev 19960)
@@ -1,18 +1,20 @@
 <?page
-title=><?_ML .title _ML?>
 body<=
 <?_code
 {
 #line 7
     use strict;
-    use vars qw(%GET %POST);
+    use vars qw(%GET %POST $title);
     BML::decl_params(_default => qr/./);
 
     use LJ::Fotki::Photo;
     use LJ::Fotki::Album;
     use LJ::Fotki::UserSpace;
     use LJ::Widget::Fotki::Upload;
+    use LJ::Widget::Calendar;
 
+    my $title = BML::ml('.title');
+
     my $head     = \$_[0]->{'head'};
     my $bodyopts = \$_[0]->{'bodyopts'};
 
@@ -572,9 +574,13 @@
         # edit form
 
 
-        $ret .= "<form action='editjournal.bml$getextra' method='get' class='b-editentries-form'>\n";
+        $ret .= "<form action='editjournal.bml$getextra' method='get' class='b-editentries-form";
+        if ($day) {
+            $ret .= " b-editentries-form-withdate";
+        }
+        $ret .= "'>\n";
         $ret .= "<p>Show entries: 
-        <span class='b-editentries-cal'><i></i><b>Choose date</b></span> <span class='b-editentries-cal-clear'>( <b>Clear</b> )</span>
+        <span class='b-editentries-cal'><i></i><b class='b-editentries-cal-message'>Choose date</b><b class='b-editentries-cal-date'>$day.$month.$year</b></span> <span class='b-editentries-cal-clear'>( <b>Clear</b> )</span>
         <input type='hidden' name='year' value='$year'/>
         <input type='hidden' name='month' value='$month'/>
         <input type='hidden' name='day' value='$day'/>";
@@ -588,6 +594,15 @@
         }
         $ret .= "</form>\n";
 
+        $ret .= LJ::Widget::Calendar->render();
+
+        $ret .= <<JS_INIT;
+            <script type="text/javascript">
+                jQuery('form.b-editentries-form')
+                    .editentriesfilter();
+            </script>
+JS_INIT
+
         my $err = '';
         my $usejournal_u = LJ::load_user ($usejournal || $remote->{'user'});
         my @recent_entries = ();
@@ -674,6 +689,7 @@
                     js/livejournal.js
                     js/entry.js
                     js/poll.js
+                    js/jquery/jquery.lj.editentriesfilter.js
                     ));
 
     # JS vars for the RTE
@@ -687,6 +703,7 @@
 </script>
 
 <=head
+title=><?_code return $title; _code?>
 page?><?_c <LJDEP>
 post: htdocs/editjournal.bml
 link: htdocs/lostinfo.bml

Tags: aralot, bml, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments