1
0
mirror of https://github.com/dani/vroom.git synced 2024-07-02 12:13:12 +02:00
vroom/templates/default/manage_room.html.ep

82 lines
2.1 KiB
Plaintext
Raw Normal View History

2014-07-19 00:41:03 +02:00
% title $self->l('ADMINISTRATION');
%=include 'header'
%=include 'public_toolbar'
<div class="container-fluid">
%= include 'owner_password_modal'
%= include 'join_password_modal'
2014-07-19 00:41:03 +02:00
%= include 'noscript'
<div class="panel panel-default">
<div class="panel-heading">
<%=l 'ROOM_DETAILS' %>
</div>
<% my $data = $self->get_room($room); %>
<table class="table table-hover">
<tbody>
<tr>
<th>
<%=l 'ROOM_ID' %>
</th>
<th>
<%= $data->{id} %>
</th>
</tr>
<tr>
2014-07-19 00:41:03 +02:00
<th>
<%=l 'CREATION_DATE' %>
</th>
<th class="timeStamp">
<%= $data->{create_timestamp} %>
</th>
</tr>
</tr>
<th>
<%=l 'LAST_ACTIVITY' %>
</th>
<th class="timeStamp">
<%= $data->{activity_timestamp} %>
</th>
</tr>
<tr>
2014-07-19 00:41:03 +02:00
<th>
<%=l 'LOCKED' %>
</th>
<th>
2014-07-19 11:34:07 +02:00
<input class="bs-switch" type="checkbox" id="lockSwitch" data-room="<%= $room %>" <%= ($data->{locked} eq '1') ? 'checked':''%>>
2014-07-19 00:41:03 +02:00
</th>
</tr>
<tr>
2014-07-19 00:41:03 +02:00
<th>
<%=l 'ASK_FOR_NAME' %>
</th>
<th>
2014-07-19 11:34:07 +02:00
<input class="bs-switch" type="checkbox" id="askForNameSwitch" data-room="<%= $room %>" <%= ($data->{ask_for_name} eq '1') ? 'checked':''%>>
2014-07-19 00:41:03 +02:00
</th>
</tr>
<tr>
2014-07-19 00:41:03 +02:00
<th>
<%=l 'PASSWORD_PROTECTED' %>
</th>
<th>
2014-07-19 11:34:07 +02:00
<input class="bs-switch" type="checkbox" id="joinPassSwitch" data-room="<%= $room %>" <%= ($data->{join_password}) ? 'checked':''%>>
2014-07-19 00:41:03 +02:00
</th>
</tr>
<tr>
2014-07-19 00:41:03 +02:00
<th>
<%=l 'PERSISTENT' %>
2014-07-19 00:41:03 +02:00
</th>
<th>
2014-07-19 11:34:07 +02:00
<input class="bs-switch" type="checkbox" id="ownerPassSwitch" data-room="<%= $room %>" <%= ($data->{owner_password}) ? 'checked':''%>>
2014-07-19 00:41:03 +02:00
</th>
</tr>
</tbody>
</table>
</div>
</div>
%=include 'js_common'
<script>
$(document).ready(function(){
initManage();
});
</script>
%=include 'footer'