1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- {% extends "portal/layout.html" %}
- {% block content %}
- <div class="panel panel-default">
- <!-- Default panel contents -->
- <div class="panel-heading" style="padding-left: 8px;">plugins</div>
- <div class="panel-body" style="padding-left: 8px;">
- <span class="green">{{ group.grp_name }}</span>
- binding
- <span class="glyphicon glyphicon-pushpin"></span>
- </div>
- <!-- Table -->
- <table class="table table-hover table-bordered table-striped" style="margin-bottom: 0px; margin-top: 0px;">
- <thead>
- <tr>
- <th>plugin dir</th>
- <th>creator</th>
- <th>operation</th>
- </tr>
- </thead>
- <tbody>
- {% for v in plugins %}
- <tr>
- <td>
- {{ v.dir }}
- </td>
- <td>
- <a target="_blank"
- href="/user/about/{{ v.create_user }}">{{ v.create_user }}</a>
- </td>
- <td>
- <a href="javascript:unbind_plugin('{{ v.id }}');"
- style="text-decoration: none;">
- <span class="glyphicon glyphicon-trash orange"></span>
- </a>
- </td>
- </tr>
- {% else %}
- <tr>
- <td colspan="3">no records</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
- </div>
- <div class="form-inline mb20" role="form">
- <input type="text" placeholder="e.g. sys/ntp" class="form-control" id="plugin_dir"
- onkeydown="if(event.keyCode==13)bind_plugin('{{ group.id }}')">
- <button type="button" onclick="bind_plugin('{{ group.id }}');" class="btn btn-default">
- <span class="glyphicon glyphicon-plus"></span>
- Bind
- </button>
- <button type="button" onclick="history.go(-1);" class="btn btn-default">
- <span class="glyphicon glyphicon-arrow-left"></span>
- Back
- </button>
- </div>
- {% endblock %}
|