Changeset 66

Show
Ignore:
Timestamp:
2009年02月24日 15时14分11秒 (3 years ago)
Author:
jiangx
Message:

Update UI of plugins: use <DL> instead of <Table>.

Location:
trunk/pysvnmanager/hooks/plugins
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/pysvnmanager/hooks/plugins/CommitLogCheck.py

    r65 r66  
    9999        result += "<p><strong>%s</strong></p>" % _("Fill this form") 
    100100        result += "<blockquote>" 
    101         result += "<table class=hidden>" 
    102         result += "\n<tr><td>" 
     101        result += "\n<dl>" 
     102        result += "\n<dt>" 
    103103        result += _("Enable commit log check: ") 
    104         result += "\n</td><td>" 
     104        result += "\n<dd>" 
    105105        result += "<input type='radio' name='switch' value='yes' " + \ 
    106106                enable_checked  + ">" + _("Enable") + "&nbsp;" 
    107107        result += "<input type='radio' name='switch' value='no' " + \ 
    108108                disable_checked + ">" + _("Disable") 
    109         result += "\n</td></tr>" 
    110         result += "\n<tr><td>" 
     109        result += "\n<dt>" 
    111110        result += _("Minimal size of commit log: ") 
    112         result += "\n</td><td>" 
     111        result += "\n<dd>" 
    113112        result += "<input type='text' name='size' size='5' value=\"%s\">" % \ 
    114113                webhelpers.util.html_escape(self.get_config(self.key_size)) 
    115         result += "\n</td></tr>" 
    116         result += "\n<tr><td>" 
     114        result += "\n<dt>" 
    117115        result += _("Pattern which commit log must match against: ") 
    118         result += "\n</td><td>" 
    119         result += "<input type='text' name='permit' size='64' value=\"%s\">" % \ 
    120                 webhelpers.util.html_escape(self.get_config(self.key_permit)) 
    121         result += "\n</td></tr>" 
    122         result += "\n<tr><td>" 
     116        result += "\n<dd>" 
     117        result += "<textarea name='permit' rows='3' cols='40'>" 
     118        result += webhelpers.util.html_escape(self.get_config(self.key_permit)) 
     119        result += "</textarea>" 
     120        result += "\n<dt>" 
    123121        result += _("Pattern which commit log must <b>NOT</b> match against: ") 
    124         result += "\n</td><td>" 
    125         result += "<input type='text' name='prohibit' size='64' value=\"%s\">" % \ 
    126                 webhelpers.util.html_escape(self.get_config(self.key_prohibit)) 
    127         result += "\n</td></tr>" 
    128         result += "\n</table>" 
     122        result += "\n<dd>" 
     123        result += "<textarea name='prohibit' rows='3' cols='40'>" 
     124        result += webhelpers.util.html_escape(self.get_config(self.key_prohibit)) 
     125        result += "</textarea>" 
     126        result += "\n</dl>" 
    129127        result += "</blockquote>" 
    130128        return result 
  • trunk/pysvnmanager/hooks/plugins/EmailNotify.py

    r50 r66  
    113113        result += "<p><strong>%s</strong></p>" % _("Fill this form") 
    114114        result += "<blockquote>" 
    115         result += "<table class=hidden>" 
    116         result += "\n<tr><td>" 
     115        result += "<dl>" 
     116        result += "\n<dt>" 
    117117        result += _("Enable email notify.") 
    118         result += "\n</td><td>" 
     118        result += "\n<dd>" 
    119119        result += "<input type='radio' name='switch' value='yes' " + \ 
    120120                enable_checked  + ">" + _("Enable") + "&nbsp;" 
    121121        result += "<input type='radio' name='switch' value='no' " + \ 
    122122                disable_checked + ">" + _("Disable") + "<br>" 
    123         result += "\n</td></tr>" 
    124         result += "\n<tr><td>" 
     123        result += "\n<dt>" 
    125124        result += _("Input email notify configurations: ") 
    126         result += "\n</td><td>" 
    127         result += "<input type='text' name='config' size='64' value=\"%s\">" % \ 
    128                 webhelpers.util.html_escape(self.get_config(self.key_config)) 
    129         result += "\n</td></tr>" 
    130         result += "\n</table>" 
     125        result += "\n<dd>" 
     126        result += "<textarea name='config' rows='5' cols='40'>" 
     127        result += webhelpers.util.html_escape(self.get_config(self.key_config)) 
     128        result += "</textarea>" 
     129        result += "\n</dl>" 
    131130        result += "</blockquote>" 
    132131        return result 
  • trunk/pysvnmanager/hooks/plugins/ReadonlySvnMirror.py

    r65 r66  
    9191        result += "<p><strong>%s</strong></p>" % _("Fill this form") 
    9292        result += "<blockquote>" 
    93         result += "<table class=hidden>" 
    94         result += "\n<tr><td>" 
     93        result += "<dl>" 
     94        result += "\n<dt>" 
    9595        result += _("Enable readonly mirror: ") 
    96         result += "\n</td><td>" 
     96        result += "\n<dd>" 
    9797        result += "<input type='radio' name='switch' value='yes' " + \ 
    9898                enable_checked  + ">" + _("Enable") + "&nbsp;" 
    9999        result += "<input type='radio' name='switch' value='no' " + \ 
    100100                disable_checked + ">" + _("Disable") + "<br>" 
    101         result += "\n</td></tr>" 
    102         result += "\n<tr><td>" 
     101        result += "\n<dt>" 
    103102        result += _("Svnsync administrator: ") 
    104         result += "\n</td><td>" 
    105         result += "<input type='text' name='admin' size='64' value='%s'>" % \ 
     103        result += "\n<dd>" 
     104        result += "<input type='text' name='admin' size='18' value='%s'>" % \ 
    106105                self.get_config(self.key_admin) 
    107         result += "\n</td></tr>" 
    108         result += "\n</table>" 
     106        result += "\n</dl>" 
    109107        result += "</blockquote>" 
    110108        return result