wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17878: LJSUP-7491. Add "Community directory" it...

Committer: gprochaev
LJSUP-7491. Add "Community directory" item to the drop down list in the admin tool

U   trunk/htdocs/admin/browse/add_category.bml
U   trunk/htdocs/admin/browse/add_community.bml
U   trunk/htdocs/admin/browse/edit_community.bml
U   trunk/htdocs/admin/browse/remove_category.bml
U   trunk/htdocs/admin/browse/remove_community.bml
Modified: trunk/htdocs/admin/browse/add_category.bml
===================================================================
--- trunk/htdocs/admin/browse/add_category.bml	2010-12-08 07:43:19 UTC (rev 17877)
+++ trunk/htdocs/admin/browse/add_category.bml	2010-12-08 08:27:32 UTC (rev 17878)
@@ -90,7 +90,7 @@
                 name => 'vert_url',
                 selected => $vert_url,
                 },
-                { text => 'Select Vertical',
+                { text => 'Community Directory',
                 value => '',},
                 @verticals
             );

Modified: trunk/htdocs/admin/browse/add_community.bml
===================================================================
--- trunk/htdocs/admin/browse/add_community.bml	2010-12-08 07:43:19 UTC (rev 17877)
+++ trunk/htdocs/admin/browse/add_community.bml	2010-12-08 08:27:32 UTC (rev 17878)
@@ -72,7 +72,7 @@
                 name => 'vert_url',
                 selected => $vert_url,
                 },
-                { text => 'Select Vertical',
+                { text => 'Community Directory',
                 value => '',},
                 @verticals
             );

Modified: trunk/htdocs/admin/browse/edit_community.bml
===================================================================
--- trunk/htdocs/admin/browse/edit_community.bml	2010-12-08 07:43:19 UTC (rev 17877)
+++ trunk/htdocs/admin/browse/edit_community.bml	2010-12-08 08:27:32 UTC (rev 17878)
@@ -120,7 +120,7 @@
                     name => "vert_id_$i", style => "",
                     selected => $vert_[$j] ? $vert_[$j]->vert_id : 0,
                     },
-                    { text => 'Select Vertical',
+                    { text => 'Community Directory',
                     value => '',},
                     @verticals
                 );

Modified: trunk/htdocs/admin/browse/remove_category.bml
===================================================================
--- trunk/htdocs/admin/browse/remove_category.bml	2010-12-08 07:43:19 UTC (rev 17877)
+++ trunk/htdocs/admin/browse/remove_category.bml	2010-12-08 08:27:32 UTC (rev 17878)
@@ -68,7 +68,7 @@
                 name => 'vert_url',
                 selected => $vert_url,
                 },
-                { text => 'Select Vertical',
+                { text => 'Community Directory',
                 value => '',},
                 @verticals
             );

Modified: trunk/htdocs/admin/browse/remove_community.bml
===================================================================
--- trunk/htdocs/admin/browse/remove_community.bml	2010-12-08 07:43:19 UTC (rev 17877)
+++ trunk/htdocs/admin/browse/remove_community.bml	2010-12-08 08:27:32 UTC (rev 17878)
@@ -85,7 +85,7 @@
                 name => 'vert_url',
                 selected => $vert_url,
                 },
-                { text => 'Select Vertical',
+                { text => 'Community Directory',
                 value => '',},
                 @verticals
             );
@@ -100,20 +100,17 @@
     my @caturls = map { { text => $_->{pretty_name}, value => $_->url_path } } @categories;
     @caturls = sort { $a cmp $b } @caturls;
 
-    if ($vertical) {
+    $ret .= "<p>Remove from Category:<br />";
+    $ret .= LJ::html_select({
+                name => 'caturl',
+                selected => $caturl },
+                { text => 'Select Category',
+                value => '' },
+                @caturls
+            );
+    $ret .= "\n";
+    $ret .= LJ::html_submit('select', 'Select Category') . "</p>";
 
-        $ret .= "<p>Remove from Category:<br />";
-        $ret .= LJ::html_select({
-                    name => 'caturl',
-                    selected => $caturl },
-                    { text => 'Select Category',
-                    value => '' },
-                    @caturls
-                );
-        $ret .= "\n";
-        $ret .= LJ::html_submit('select', 'Select Category') . "</p>";
-    }
-
     # Selected a category OR tried a remove and got an error
     if ( LJ::did_post() && $POST{'select'} ) {
         # Has a valid category been chosen

Tags: bml, livejournal, wisest-owl
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