Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F887826
unverified.html.erb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 10, 5:42 AM
Size
1 KB
Mime Type
text/html
Expires
Tue, Aug 12, 5:42 AM (15 h, 29 m)
Engine
blob
Format
Raw Data
Handle
246415
Attached To
rARCHIVING archiving
unverified.html.erb
View Options
<h1>Unverified Clients</h1>
<%
if
@hosts
.
empty?
%>
<h3>There are no clients pending for approval</h3>
<%
else
%>
<div class="table-responsive">
<table class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
<th>FQDN</th>
<th>User</th>
<th>Port</th>
<th>Created At</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<%=
render
partial
:
'host'
,
collection
:
@hosts
%>
</tbody>
</table>
</div>
<%
end
%>
<div id="reject-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
<div class="modal-dialog">
<div class="modal-content">
<div class="panel panel-default">
<div class="panel-heading">Reject host <em></em></div>
<div class="panel-body">
<%=
bootstrap_form_tag
(
url
:
reject_admin_host_path
(
'host_id'
),
method
:
:post
)
do
|
f
|
%>
<%=
f
.
text_area
:reason
,
cols
:
40
,
rows
:
5
,
placeholder
:
'...'
,
required
:
true
%>
<%=
f
.
submit
'Reject'
,
class
:
"btn btn-danger"
%>
<%
end
%>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$('#reject-modal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget);
var host_id = button.data('id');
var host_name = button.data('name');
var form = $(this).find('form');
form_url = form.attr('action');
form.attr('action', form_url.replace('host_id', host_id));
$(this).find('em').text(host_name);
})
</script>
Event Timeline
Log In to Comment