/templates/user/new_address.mako

https://bitbucket.org/h_morita_dbcls/galaxy-central · Mako · 33 lines · 30 code · 3 blank · 0 comment · 2 complexity · f1687da02d2a5da7b3db5af8b219ec70 MD5 · raw file

  1. <%inherit file="/base.mako"/>
  2. <%namespace file="/message.mako" import="render_msg" />
  3. %if message:
  4. ${render_msg( message, status )}
  5. %endif
  6. </br>
  7. </br>
  8. <h3>New address</h3>
  9. <ul class="manage-table-actions">
  10. <li>
  11. <a class="action-button" href="${h.url_for( controller='user', action='show_info', admin_view=admin_view, user_id=user.id)}">
  12. <span>Manage User Information</span></a>
  13. </li>
  14. </ul>
  15. <div class="toolForm">
  16. <form name="login_info" id="login_info" action="${h.url_for( controller='user', action='new_address', admin_view=admin_view, user_id=user.id )}" method="post" >
  17. <div class="toolFormTitle">New address</div>
  18. <div class="toolFormBody">
  19. %for field in widgets:
  20. <div class="form-row">
  21. <label>${field[ 'label' ]}</label>
  22. ${field[ 'widget' ].get_html()}
  23. </div>
  24. %endfor
  25. <div class="form-row">
  26. <input type="submit" name="save_new_address_button" value="Save">
  27. </div>
  28. </div>
  29. </form>
  30. </div>