mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 16:24:43 +03:00
Move takeover confirmation page template to chat style
This commit is contained in:
parent
37cc5cb178
commit
7021cb983e
@ -124,11 +124,9 @@ class OperatorChatController extends AbstractController
|
||||
'link' => $link,
|
||||
'title' => getlocal('Change operator'),
|
||||
);
|
||||
$page_style = new PageStyle(PageStyle::getCurrentStyle());
|
||||
|
||||
// Show confirmation page.
|
||||
// TODO: Move this template to chat style.
|
||||
return $page_style->render('confirm', $page);
|
||||
return $this->render('confirm', $page);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -344,7 +344,7 @@ a:hover .iclosewin {
|
||||
/* #send */
|
||||
#postmessage {
|
||||
}
|
||||
#send-message {
|
||||
#send-message, .submit-button {
|
||||
float: right;
|
||||
width: 190px;
|
||||
height: 33px;
|
||||
@ -355,7 +355,7 @@ a:hover .iclosewin {
|
||||
color: #495151;
|
||||
background: url("images/submit.gif") no-repeat 0 0 transparent;
|
||||
}
|
||||
#send-message:hover {
|
||||
#send-message:hover, .submit-button:hover {
|
||||
color: #000;
|
||||
background: url("images/submit.gif") no-repeat -190px 0 transparent;
|
||||
}
|
||||
@ -517,3 +517,23 @@ ul li {
|
||||
color: #000;
|
||||
}
|
||||
/* ----- */
|
||||
|
||||
/* Confirmation */
|
||||
.messagetxt .visitor {
|
||||
color: blue;
|
||||
}
|
||||
.messagetxt .operator {
|
||||
color: green;
|
||||
}
|
||||
#confirmpane {
|
||||
width: 100%;
|
||||
}
|
||||
#confirmpane .button-wrapper {
|
||||
width: 400px;
|
||||
margin: 140px auto 0;
|
||||
}
|
||||
#confirmpane .submit-button {
|
||||
float: none;
|
||||
display: inline-block;
|
||||
}
|
||||
/* ----- */
|
||||
|
@ -18,7 +18,8 @@
|
||||
.control,
|
||||
.user-name-control-set,
|
||||
.user-name-control-change,
|
||||
.user-name-control-input-bg
|
||||
.user-name-control-input-bg,
|
||||
#confirmpane .submit-button
|
||||
{
|
||||
display: inline;
|
||||
zoom: 1;
|
||||
|
@ -0,0 +1,13 @@
|
||||
{{#extends "_layout"}}
|
||||
{{#override "message"}}
|
||||
{{l10n "Visitor <span class=\"visitor\">{0}</span> is already being assisted by <span class=\"operator\">{1}</span>.<br/> Are you really sure you want to start chatting the visitor?" user agent}}
|
||||
{{/override}}
|
||||
|
||||
{{#override "content"}}
|
||||
<div id="confirmpane">
|
||||
<div class="button-wrapper">
|
||||
<a href="{{link}}" class="submit-button">{{l10n "Yes. I'm sure"}}</a> <a href="javascript:window.close();" class="submit-button">{{l10n "No. Close the window"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/override}}
|
||||
{{/extends}}
|
@ -788,12 +788,6 @@ table.awaiting .no-threads, table.awaiting .no-visitors {
|
||||
|
||||
/* nice button */
|
||||
|
||||
#confirmpane {
|
||||
width:450px;
|
||||
margin:0px auto 5px;
|
||||
padding-top: 70px;
|
||||
}
|
||||
|
||||
.nicebutton {
|
||||
border: none;
|
||||
float: left;
|
||||
@ -813,14 +807,6 @@ table.awaiting .no-threads, table.awaiting .no-visitors {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#confirmpane .visitor {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
#confirmpane .operator {
|
||||
color: green;
|
||||
}
|
||||
|
||||
/* thread log */
|
||||
|
||||
.logpane {
|
||||
|
@ -1,67 +0,0 @@
|
||||
{{#extends "_layout"}}
|
||||
{{#override "content"}}
|
||||
<div id="confirmpane">
|
||||
<div class="mform">
|
||||
<div class="formtop">
|
||||
<div class="formtopi"></div>
|
||||
</div>
|
||||
|
||||
<div class="forminner">
|
||||
{{l10n "Visitor <span class=\"visitor\">{0}</span> is already being assisted by <span class=\"operator\">{1}</span>.<br/> Are you really sure you want to start chatting the visitor?" user agent}}
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<div>
|
||||
<table class="nicebutton">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{link}}">
|
||||
<img src="{{stylePath}}/images/submit.gif" width="40" height="35" border="0" alt="" />
|
||||
</a>
|
||||
</td>
|
||||
<td class="submit">
|
||||
<a href="{{link}}">
|
||||
{{l10n "Yes. I'm sure"}}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{link}}">
|
||||
<img src="{{stylePath}}/images/submitrest.gif" width="10" height="35" border="0" alt="" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table class="nicebutton">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="javascript:window.close();">
|
||||
<img src="{{stylePath}}/images/submit.gif" width="40" height="35" border="0" alt="" />
|
||||
</a>
|
||||
</td>
|
||||
<td class="submit">
|
||||
<a href="javascript:window.close();">
|
||||
{{l10n "No. Close the window"}}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:window.close();">
|
||||
<img src="{{stylePath}}/images/submitrest.gif" width="10" height="35" border="0" alt="" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br clear="all"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="formbottom">
|
||||
<div class="formbottomi"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/override}}
|
||||
{{/extends}}
|
Loading…
Reference in New Issue
Block a user