Update of /cvsroot/mailman/mailman/Mailman/Cgi
In directory usw-pr-cvs1:/tmp/cvs-serv16606

Modified Files:
        admin.py 
Log Message:
showresults(), membership_options(): A nicer placement and u/i for the
"search for member" button.


Index: admin.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Cgi/admin.py,v
retrieving revision 2.66
retrieving revision 2.67
diff -C2 -d -r2.66 -r2.67
*** admin.py    25 Mar 2002 23:48:12 -0000      2.66
--- admin.py    29 Mar 2002 20:25:34 -0000      2.67
***************
*** 503,518 ****
              table.AddCellInfo(table.GetCurrentRowIndex(), 0, colspan=2,
                                bgcolor=mm_cfg.WEB_HEADER_COLOR)
-             table.AddRow([_(
-                 '''<li>Find members by
-                 <a href="http://www.python.org/doc/current/lib/re-syntax.html";
-                 >Python regular expression</a> (<em>regexp</em>)<br>''')])
-             table.AddCellInfo(table.GetCurrentRowIndex(), 0, colspan=2)
-             table.AddRow([Label(_('Regexp:')),
-                           TextBox('findmember',
-                                   value=cgidata.getvalue('findmember', ''),
-                                   size='75%')])
-             table.AddRow([Center(SubmitButton('findmember_btn',
-                                               _('Search...')))])
-             table.AddCellInfo(table.GetCurrentRowIndex(), 0, colspan=2)
              # Add a blank separator row
              table.AddRow(['&nbsp;', '&nbsp;'])
--- 503,506 ----
***************
*** 596,603 ****
      val = get_item_gui_value(mlist, category, kind, varname, params)
      table.AddRow([descr, val])
-     table.AddCellInfo(table.GetCurrentRowIndex(), 1,
-                       bgcolor=mm_cfg.WEB_ADMINITEM_COLOR)
      table.AddCellInfo(table.GetCurrentRowIndex(), 0,
                        bgcolor=mm_cfg.WEB_ADMINITEM_COLOR)
  
  
--- 584,591 ----
      val = get_item_gui_value(mlist, category, kind, varname, params)
      table.AddRow([descr, val])
      table.AddCellInfo(table.GetCurrentRowIndex(), 0,
                        bgcolor=mm_cfg.WEB_ADMINITEM_COLOR)
+     table.AddCellInfo(table.GetCurrentRowIndex(), 1,
+                       bgcolor=mm_cfg.WEB_ADMINITEM_COLOR)
  
  
***************
*** 738,741 ****
--- 726,731 ----
      elif kind == mm_cfg.Checkbox:
          return CheckBoxArray(varname, *params)
+     else:
+         assert 0, 'Bad gui widget type: %s' % kind
  
  
***************
*** 790,793 ****
--- 780,793 ----
                         bgcolor=mm_cfg.WEB_HEADER_COLOR)
      container.AddItem(header)
+     # Add a "search for member" button
+     table = Table(width='100%')
+     link = Link('http://www.python.org/doc/current/lib/re-syntax.html',
+                 _('(help)')).Format()
+     table.AddRow([Label(_('Find member %(link)s:')),
+                   TextBox('findmember',
+                           value=cgidata.getvalue('findmember', '')),
+                   SubmitButton('findmember_btn', _('Search...'))])
+     container.AddItem(table)
+     container.AddItem('<hr><p>')
      usertable = Table(width="90%", border='2')
      # If there are more members than allowed by chunksize, then we split the


_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to