1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-26 17:43:29 +02:00

Remove now obsolete manage_room template

This commit is contained in:
Daniel Berteaud 2015-02-06 16:24:25 +01:00
parent 24b2099e1f
commit 2dde2050a9

View File

@ -1,148 +0,0 @@
% title $self->l('ADMINISTRATION');
%=include 'header'
%=include 'public_toolbar'
<div class="container-fluid">
%= include 'owner_password_modal'
%= include 'join_password_modal'
%= include 'invite_modal'
<div class="modal fade" role="dialog" id="deleteRoomModal" aria-labelledby="terminateModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title">
<%=l 'DELETE_THIS_ROOM' %>
</h4>
</div>
<div class="modal-body">
<p>
<%=l 'ROOM_WILL_BE_DELETED' %>
</p>
</div>
<div class="modal-footer">
<button id="confirmDeleteButton" class="btn btn-danger">
<%=l 'CONFIRM_DELETE' %>
</button>
<button class="btn btn-default" data-dismiss="modal" data-target="#terminateModal">
<%=l 'CANCEL' %>
</button>
</div>
</div>
</div>
</div>
%= include 'noscript'
<div class="panel panel-default">
<div class="panel-heading">
<%=l 'ROOM_DETAILS' %>
</div>
<% my $data = $self->get_room_by_name($room); %>
<table class="table table-hover">
<tbody>
<tr>
<th>
<%=l 'ROOM_ID' %>
</th>
<th>
<%= $data->{id} %>
</th>
</tr>
<tr>
<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>
<th>
<%=l 'NUMBER_OF_PARTICIPANTS' %>
</th>
<th>
<%= $participants %>
</th>
</tr>
<tr>
<th>
<%=l 'LOCKED' %>
</th>
<th>
<input class="bs-switch" type="checkbox" id="lockSwitch" data-room="<%= $room %>" <%= ($data->{locked} eq '1') ? 'checked':''%>>
</th>
</tr>
<tr>
<th>
<%=l 'ASK_FOR_NAME' %>
</th>
<th>
<input class="bs-switch" type="checkbox" id="askForNameSwitch" data-room="<%= $room %>" <%= ($data->{ask_for_name} eq '1') ? 'checked':''%>>
</th>
</tr>
<tr>
<th>
<%=l 'JOIN_PASSWORD' %>
</th>
<th>
<input class="bs-switch" type="checkbox" id="joinPassSwitch" data-room="<%= $room %>" <%= ($data->{join_password}) ? 'checked':''%>>
</th>
</tr>
<tr>
<th>
<%=l 'OWNER_PASSWORD' %>
</th>
<th>
<input class="bs-switch" type="checkbox" id="ownerPassSwitch" data-room="<%= $room %>" <%= ($data->{owner_password}) ? 'checked':''%>>
</th>
</tr>
<tr>
<th>
<%=l 'PERSISTENT' %>
</th>
<th>
<input class="bs-switch" type="checkbox" id="persistentSwitch" data-room="<%= $room %>" <%= ($data->{persistent}) ? 'checked':''%>>
</th>
</tr>
<tr>
<th>
<%=l 'EMAIL_INVITE' %>
</th>
<th>
<button type="button" class="btn btn-default help" id="showEmailInvite" data-room="<%= $room %>" data-toggle="tooltip" data-placement="bottom" title="<%=l 'YOU_CAN_INVITE_BY_MAIL' %>">
<span class="glyphicon glyphicon-envelope">
</span>
</button>
</th>
</tr>
</tbody>
</table>
</div>
<div class='row'>
<div class="col-sm-6 col-lg-4 col-xl-3 col-sm-offset-3 col-lg-offset-2">
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->get_url('/') . $room %>">
<%=l 'JOIN_THIS_ROOM' %>
</a>
</div>
<div class="col-sm-6 col-lg-4 col-xl-3 col-sm-offset-3 col-lg-offset-0">
<button class="btn btn-danger btn-lg btn-full" id="deleteRoomButton" data-room="<%= $room %>">
<%=l 'DELETE_THIS_ROOM' %>
</button>
</div>
</div>
</div>
%=include 'js_common'
<script>
$(document).ready(function(){
initManage();
});
</script>
%=include 'footer'