Browse Source

HUE-233. Fixing 'chmod' checkbox styling.

The formatting of the form in the filebrowser 'chmod' view
was broken.  I think this was introduced by
2e46a69e71f2fea6fd909f515a4ebdf87e2eec3d (HUE-147).
Philip Zeyliger 15 years ago
parent
commit
8c756b8c70
1 changed files with 10 additions and 10 deletions
  1. 10 10
      apps/filebrowser/src/filebrowser/templates/chmod.mako

+ 10 - 10
apps/filebrowser/src/filebrowser/templates/chmod.mako

@@ -34,21 +34,21 @@ ${comps.header('Change Permissions: ' + path.split('/')[-1])}
       <tbody>
         <tr>
           <td class="fb-label">Read</td>
-          <td>${edit.render_field(form["user_read"], notitle=True)}</td>
-          <td>${edit.render_field(form["group_read"], notitle=True)}</td>
-          <td>${edit.render_field(form["other_read"], notitle=True)}</td>
+          <td>${edit.render_field(form["user_read"], tag="checkbox", button_text=" ", notitle=True)}</td>
+          <td>${edit.render_field(form["group_read"], tag="checkbox", button_text=" ", notitle=True)}</td>
+          <td>${edit.render_field(form["other_read"], tag="checkbox", button_text=" ", notitle=True)}</td>
         </tr>
         <tr>
           <td class="fb-label">Write</td>
-          <td>${edit.render_field(form["user_write"], notitle=True)}</td>
-          <td>${edit.render_field(form["group_write"], notitle=True)}</td>
-          <td>${edit.render_field(form["other_write"], notitle=True)}</td>
+          <td>${edit.render_field(form["user_write"], tag="checkbox", button_text=" ", notitle=True)}</td>
+          <td>${edit.render_field(form["group_write"], tag="checkbox", button_text=" ", notitle=True)}</td>
+          <td>${edit.render_field(form["other_write"], tag="checkbox", button_text=" ", notitle=True)}</td>
         </tr>
         <tr>
           <td class="fb-label">Execute</td>
-          <td>${edit.render_field(form["user_execute"], notitle=True)}</td>
-          <td>${edit.render_field(form["group_execute"], notitle=True)}</td>
-          <td>${edit.render_field(form["other_execute"], notitle=True)}</td>
+          <td>${edit.render_field(form["user_execute"], tag="checkbox", button_text=" ", notitle=True)}</td>
+          <td>${edit.render_field(form["group_execute"], tag="checkbox", button_text=" ", notitle=True)}</td>
+          <td>${edit.render_field(form["other_execute"], tag="checkbox", button_text=" ", notitle=True)}</td>
         </tr>
       </tbody>
     </table>
@@ -60,4 +60,4 @@ ${comps.header('Change Permissions: ' + path.split('/')[-1])}
 <div class="ccs-hidden">Go back to where you were: <a href="${next|u}">${next}</a>.</div>
 
 
-${comps.footer()}
+${comps.footer()}