perazhog (perazhog) wrote in changelog,
perazhog
perazhog
changelog

[ljcom] r13113: LJSUP-14473: Admin pages' style and code...

Committer: egeraskin
LJSUP-14473: Admin pages' style and code refactoring
U   trunk/htdocs/admin/userheads/manage.bml
Modified: trunk/htdocs/admin/userheads/manage.bml
===================================================================
--- trunk/htdocs/admin/userheads/manage.bml	2013-01-16 13:38:40 UTC (rev 13112)
+++ trunk/htdocs/admin/userheads/manage.bml	2013-01-16 14:38:45 UTC (rev 13113)
@@ -9,6 +9,8 @@
 use LJ::UserHead;
 use LJ::FileStore;
 
+LJ::need_res( 'stc/admin/general.css' );
+LJ::need_res( 'stc/admin/userheads.css' );
 LJ::need_res( 'js/admin/userheads/manage.js' );
 
 my $ret;
@@ -26,11 +28,12 @@
 if ($FORM{'edit'}) {
     
     my $uh = LJ::UserHead->get_userhead ($FORM{'edit'});
+    $ret .= "<div class='b-adminpage b-adminpage-max'>";
     $ret .= "<title>LJ User Heads: Edit</title>";
-    $ret .= "<h2>Edit userhead: #".$FORM{'edit'}."</h2>";
+    $ret .= "<h2 class='b-adminpage-header'>Edit userhead: #".$FORM{'edit'}."</h2>";
     $ret .= "<p><img src='".$uh->get_uh_img."' alt='' /></p>";
     $ret .= <<FORM;
-    <form method="post" enctype="multipart/form-data">
+    <form method="post" enctype="multipart/form-data" class='b-adminpage-form'>
     <table>
     <tr>
         <td><input type="file" name="uh_file" /></td>
@@ -40,9 +43,11 @@
     <p><input type='hidden' name='uh_id' value='$FORM{edit}' /></p>
     </form>
     <hr />
-
+    
 FORM
+    $ret .= "</div>";
     return $ret;
+    
 }
 
 if ($FORM{'upload'}) {
@@ -129,6 +134,7 @@
     }
 }
 
+$ret .= "<div class='b-adminpage b-adminpage-max b-adminpage-padding'>";
 $ret .= "<title>LJ User Heads: manage</title>";
 
 my $domain = LJ::Lang::get_dom("general");
@@ -139,7 +145,7 @@
     $ret .= "<b>".$save_error."</b>" if $save_error;
 
     $ret .= <<FORM;
-    <form method="post" enctype="multipart/form-data">
+    <form method="post" enctype="multipart/form-data" class='b-adminpage-form'>
     <table>
     <tr>
         <td><input type="file" name="uh_file" /></td>
@@ -194,8 +200,8 @@
 
 $ret .= $pager;
 
-$ret .= "<form method='POST'>";
-$ret .= "<table border='0' cellspacing='1' cellpadding='4'>";
+$ret .= "<form method='POST' class='b-adminpage-form'>";
+$ret .= "<table class='b-admin-table'>";
 $ret .= "<tr><th>Id</th><th>Img Enb</th><th>Img Dis</th><th>Cost</th><th>&nbsp;</th><th>Buy Limit</th><th>Author</th><th>Description</th><th>Description SUP</th><th>Individual user buyer</th><th>Indv. expdate (<small>YYYYMMDD</small>)</th><th>Edit</th></tr>";
 foreach my $uh (@$uhs) {
     $ret .= "<tr>\n";
@@ -248,16 +254,16 @@
 
 $ret .= "<hr />";
 
-$ret .= "<form method='POST'>";
+$ret .= "<form method='POST' class='b-adminpage-form'>";
 $ret .= "<p><label for='uh_id'>Set user head:&nbsp;</label><select id='uh_id' name='uh_id'>";
 foreach my $uh (@$uhs) {
     $ret .= "<option value='".$uh->get_uh_id."'>".$uh->get_uh_id."</option>";
 }
 $ret .= "</select>&nbsp;to LJ users:</p>";
 $ret .= "<textarea name='users' rows='5' cols='30'>Usernames, comma separated</textarea>";
-$ret .= "<p><input type='submit' name='set' value='Set' /></p>";
+$ret .= "<p><input class='b-adminpage-userhead-submit' type='submit' name='set' value='Set' /></p>";
 $ret .= "</form>";
-
+$ret .= "</div>";
 return $ret;
 
 _code?>

Tags: bml, egeraskin, ljcom, perazhog
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