<?php include(erLhcoreClassDesign::designtpl('lhkernel/modal_header.tpl.php'));?>
<h4><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Change chat status')?></h4>
<hr>
<form action="<?php echo erLhcoreClassDesign::baseurl('chat/changestatus')?>/<?php echo $chat->id?>" method="post" onsubmit="return lhinst.changeStatusAction($(this),'<?php echo $chat->id?>')">

<div class="form-group">
<label><input type="radio" name="ChatStatus" value="0" <?php if ($chat->status == erLhcoreClassModelChat::STATUS_PENDING_CHAT) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Pending')?></label><br/>
<label><input type="radio" name="ChatStatus" value="1" <?php if ($chat->status == erLhcoreClassModelChat::STATUS_ACTIVE_CHAT) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Active')?></label><br/>
<label><input type="radio" name="ChatStatus" value="2" <?php if ($chat->status == erLhcoreClassModelChat::STATUS_CLOSED_CHAT) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Closed')?></label><br/>
<label><input type="radio" name="ChatStatus" value="3" <?php if ($chat->status == erLhcoreClassModelChat::STATUS_CHATBOX_CHAT) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Chatbox chat')?></label><br/>
<label><input type="radio" name="ChatStatus" value="4" <?php if ($chat->status == erLhcoreClassModelChat::STATUS_OPERATORS_CHAT) : ?>checked="checked"<?php endif;?> /> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Operators chat')?></label>
</div>

<div class="btn-group" role="group" aria-label="...">
	<input type="submit" class="btn btn-default" value="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Change chat status')?>" />
	<input type="button" class="btn btn-default" onclick="$('#myModal').modal('hide');" name="CancelAlbum" value="<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/chat','Cancel')?>"/>
</div>

</form>
<?php include(erLhcoreClassDesign::designtpl('lhkernel/modal_footer.tpl.php'));?>