@{ ViewBag.Title = "Chat"; }
<h2>Chat </h2>
<label><input type="checkbox" id="mute" />Muet</label>

<div class="container" id="chatview" class="disabled" >
    <input type="hidden" id="displayname"  />
    <div class="panel">
    <em>Salons</em>
    <ul>
        <li id="pubChan">Public</li>
    </ul>
    <em>Utilisateurs</em>
    <ul id="userlist" style="list-style:none;">
    </ul>
    </div>
<ul id="discussion">
</ul>
<div id="targets" >
    <div id="sendmessagebox">
        <div class="col-md-10">
            <div class="row">
                <div class='col-sm-9'> <input type="text" id="message"  class="form-control"/></div>
                <div class='col-sm-3'>
        <input type="button" id="sendmessage" value="@SR["Send"]" class="btn btn-default"/>
        </div></div></div>
    </div>
    @if (ViewBag.IsAuthenticated) {
    <div id="sendpvbox">
        <div class="col-md-10">
            <div class="row">
                <div class='col-sm-9'>
                    <input type="text" id="pv"  class="form-control" />
                    </div>
                <div class='col-sm-3'>
             <button type="submit" id="sendpv" class="btn btn-default">@SR["Send a private message"] @SR["to"]
                  <div id="sendpvdest" /> </button>
                 </div></div></div>
    </div>
    }
    <input type="hidden" id="mySignalRConnectionIdHidden" value="" />
</div>
</div>

@section scripts {
<!--Reference the autogenerated SignalR hub script. -->
<script src="~/api/signalr/hubs"></script>
<!--SignalR script to update the chat page and send messages.-->


@if (!ViewBag.IsAuthenticated) { // Get the user name and store it to prepend to messages.
<script>
$('#displayname').val(prompt('Enter your name:', ''));
</script>
} 
<script src="~/js/chat.js"></script>

}
