[2] | 1 | <%namespace file="/message.mako" import="render_msg" /> |
---|
| 2 | |
---|
| 3 | <%! |
---|
| 4 | def inherit(context): |
---|
| 5 | if context.get('use_panels'): |
---|
| 6 | return '/webapps/community/base_panels.mako' |
---|
| 7 | else: |
---|
| 8 | return '/base.mako' |
---|
| 9 | %> |
---|
| 10 | <%inherit file="${inherit(context)}"/> |
---|
| 11 | |
---|
| 12 | <%def name="title()">Reject Tool</%def> |
---|
| 13 | |
---|
| 14 | <h2>Reject Tool</h2> |
---|
| 15 | |
---|
| 16 | <ul class="manage-table-actions"> |
---|
| 17 | <li><a class="action-button" id="tool-${tool.id}-popup" class="menubutton">Tool Actions</a></li> |
---|
| 18 | <div popupmenu="tool-${tool.id}-popup"> |
---|
| 19 | <a class="action-button" href="${h.url_for( controller='common', action='view_tool', id=trans.app.security.encode_id( tool.id ), cntrller=cntrller )}">View tool</a> |
---|
| 20 | <a class="action-button" href="${h.url_for( controller='common', action='view_tool_history', id=trans.security.encode_id( tool.id ), cntrller=cntrller )}">Tool history</a> |
---|
| 21 | <a class="action-button" href="${h.url_for( controller='common', action='download_tool', id=trans.security.encode_id( tool.id ), cntrller=cntrller )}">Download tool</a> |
---|
| 22 | </div> |
---|
| 23 | </ul> |
---|
| 24 | |
---|
| 25 | %if message: |
---|
| 26 | ${render_msg( message, status )} |
---|
| 27 | %endif |
---|
| 28 | |
---|
| 29 | <div class="toolForm"> |
---|
| 30 | <div class="toolFormTitle">${tool.name}</div> |
---|
| 31 | <form name="reject_tool" action="${h.url_for( controller='admin', action='reject_tool', id=trans.security.encode_id( tool.id ) )}" method="post" > |
---|
| 32 | <div class="form-row"> |
---|
| 33 | <label>Tool id:</label> |
---|
| 34 | ${tool.tool_id} |
---|
| 35 | <div style="clear: both"></div> |
---|
| 36 | </div> |
---|
| 37 | <div class="form-row"> |
---|
| 38 | <label>Version:</label> |
---|
| 39 | ${tool.version} |
---|
| 40 | <div style="clear: both"></div> |
---|
| 41 | </div> |
---|
| 42 | <div class="form-row"> |
---|
| 43 | <label>Description:</label> |
---|
| 44 | ${tool.description} |
---|
| 45 | <div style="clear: both"></div> |
---|
| 46 | </div> |
---|
| 47 | <div class="form-row"> |
---|
| 48 | <label>User description:</label> |
---|
| 49 | ${tool.user_description} |
---|
| 50 | <div style="clear: both"></div> |
---|
| 51 | </div> |
---|
| 52 | <div class="form-row"> |
---|
| 53 | <label>Uploaded by:</label> |
---|
| 54 | ${tool.user.username} |
---|
| 55 | <div style="clear: both"></div> |
---|
| 56 | </div> |
---|
| 57 | <div class="form-row"> |
---|
| 58 | <label>Reason for rejection</label> |
---|
| 59 | <textarea name="comments" rows="5" cols="40"></textarea> |
---|
| 60 | <div class="toolParamHelp" style="clear: both;"> |
---|
| 61 | Required |
---|
| 62 | </div> |
---|
| 63 | </div> |
---|
| 64 | <div class="form-row"> |
---|
| 65 | <input type="submit" name="reject_button" value="Reject"/> |
---|
| 66 | <input type="submit" name="cancel_reject_button" value="Cancel"/> |
---|
| 67 | </div> |
---|
| 68 | </form> |
---|
| 69 | </div> |
---|
| 70 | </div> |
---|