This commit is contained in:
Daniel Camargo 2013-04-16 08:53:44 -03:00
parent bff53ac0d0
commit b2086b3bd9
5 changed files with 10 additions and 9 deletions

View File

@ -87,10 +87,10 @@
</phone>
<text>
<Daniel>***REMOVED***</Daniel>
<!--<Devin>_PHONE_</Devin>
<Devin>_PHONE_</Devin>
<Judd>_PHONE_</Judd>
<David>_PHONE_</David>
<Nick>_PHONE_</Nick>-->
<Nick>_PHONE_</Nick>
</text>
<stripe>
<dev>

View File

@ -52,12 +52,10 @@ class Crunchbutton_Support extends Cana_Table {
$message = '@'.$tsess->id_session_twilio.' : ' . $message;
$message = str_split( $message, 160 );
$b = $message;
// Send this message to the customer service
foreach (c::config()->text as $supportName => $supportPhone) {
$num = $supportPhone;
foreach ($b as $msg) {
foreach ($message as $msg) {
try {
// Log
Log::debug( [ 'action' => 'sending sms - support', 'session id' => $tsess->id_session_twilio, 'num' => $num, 'msg' => $msg, 'type' => 'support' ] );

View File

@ -7,15 +7,18 @@
<th>Name</th>
<th>Phone</th>
<th>Message</th>
<th>Answered</th>
<th>Type</th>
</tr>
<? foreach ($this->support as $support) : ?>
<? $date = $support->date(); ?>
<? $answered = ( $support->answers()->count() > 0 ); ?>
<tr class="list-support-item <?=$support->status; ?>">
<td> <?=$date->format('M jS Y')?><br /><br /><?=$date->format('g:i:s A')?> </td>
<td> <?=$support->name; ?></td>
<td> <?=$support->phone; ?></td>
<td><a href="/admin/support/<?=$support->id_support;?>"><?=nl2br( $support->message ); ?></a></td>
<td> <span class="<? if( $answered ){ echo ' yes '; } else { echo 'no'; } ?>"> <? if( $answered ){ echo ' Yes '; } else { echo 'No'; } ?>
<td> <?=$support->type; ?> </td>
</tr>
<? endforeach ; ?>

View File

@ -70,7 +70,7 @@
<?php $answers = $this->support->answers(); ?>
<?php if( $answers->count() > 0 ) { ?>
<tr>
<td class="label-primary">Answers:</td>
<td class="label-primary">Answer(s):</td>
<td class="content-primary">
<div class="check-wrap">
<div class="check-content">
@ -95,7 +95,7 @@
</tr>
<tr>
<td></td>
<td style="text-align:right;">-------------------------------------------------------------------</td>
<td style="text-align:right;"> <hr /> </td>
</tr>
</tbody>
</table>

View File

@ -654,13 +654,13 @@ input[name="dish-options-price"] {
.list-suggestions, .list-credits, .list-support, .list-giftcards{
width: 100%;
}
.list-giftcards span.used, .list-giftcards span.not-used{
.list-giftcards span.used, .list-giftcards span.not-used, span.yes, span.no{
background: red;
color: #FFF;
padding: 5px;
display: inline-block;
}
.list-giftcards span.not-used{
.list-giftcards span.not-used, span.yes{
background: green;
}
.list-suggestions th,