chmod.mako 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ## Licensed to Cloudera, Inc. under one
  2. ## or more contributor license agreements. See the NOTICE file
  3. ## distributed with this work for additional information
  4. ## regarding copyright ownership. Cloudera, Inc. licenses this file
  5. ## to you under the Apache License, Version 2.0 (the
  6. ## "License"); you may not use this file except in compliance
  7. ## with the License. You may obtain a copy of the License at
  8. ##
  9. ## http://www.apache.org/licenses/LICENSE-2.0
  10. ##
  11. ## Unless required by applicable law or agreed to in writing, software
  12. ## distributed under the License is distributed on an "AS IS" BASIS,
  13. ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ## See the License for the specific language governing permissions and
  15. ## limitations under the License.
  16. <%namespace name="edit" file="editor_components.mako" />
  17. <%namespace name="comps" file="fb_components.mako" />
  18. ${comps.header('Change Permissions: ' + path.split('/')[-1])}
  19. <div class="prompt_popup">
  20. <form action="/filebrowser/chmod?next=${next|u}" method="POST" enctype="multipart/form-data">
  21. <h4 class="jframe-hidden">Change Permissions: ${path}</h4>
  22. <dl>
  23. ${edit.render_field(form["path"], hidden=True)}
  24. <table class="fb-chmod">
  25. <thead>
  26. <tr>
  27. <th class="fb-empty"></th>
  28. <th>User</th>
  29. <th>Group</th>
  30. <th>Other</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <tr>
  35. <td class="fb-label">Read</td>
  36. <td>${edit.render_field(form["user_read"], tag="checkbox", button_text=" ", notitle=True)}</td>
  37. <td>${edit.render_field(form["group_read"], tag="checkbox", button_text=" ", notitle=True)}</td>
  38. <td>${edit.render_field(form["other_read"], tag="checkbox", button_text=" ", notitle=True)}</td>
  39. </tr>
  40. <tr>
  41. <td class="fb-label">Write</td>
  42. <td>${edit.render_field(form["user_write"], tag="checkbox", button_text=" ", notitle=True)}</td>
  43. <td>${edit.render_field(form["group_write"], tag="checkbox", button_text=" ", notitle=True)}</td>
  44. <td>${edit.render_field(form["other_write"], tag="checkbox", button_text=" ", notitle=True)}</td>
  45. </tr>
  46. <tr>
  47. <td class="fb-label">Execute</td>
  48. <td>${edit.render_field(form["user_execute"], tag="checkbox", button_text=" ", notitle=True)}</td>
  49. <td>${edit.render_field(form["group_execute"], tag="checkbox", button_text=" ", notitle=True)}</td>
  50. <td>${edit.render_field(form["other_execute"], tag="checkbox", button_text=" ", notitle=True)}</td>
  51. </tr>
  52. </tbody>
  53. </table>
  54. </dl>
  55. <input class="jframe-hidden" type="submit" value="Submit" />
  56. </form>
  57. </div>
  58. <div class="jframe-hidden">Go back to where you were: <a href="${next|u}">${next}</a>.</div>
  59. ${comps.footer()}