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> </phone>
<text> <text>
<Daniel>***REMOVED***</Daniel> <Daniel>***REMOVED***</Daniel>
<!--<Devin>_PHONE_</Devin> <Devin>_PHONE_</Devin>
<Judd>_PHONE_</Judd> <Judd>_PHONE_</Judd>
<David>_PHONE_</David> <David>_PHONE_</David>
<Nick>_PHONE_</Nick>--> <Nick>_PHONE_</Nick>
</text> </text>
<stripe> <stripe>
<dev> <dev>

View File

@ -52,12 +52,10 @@ class Crunchbutton_Support extends Cana_Table {
$message = '@'.$tsess->id_session_twilio.' : ' . $message; $message = '@'.$tsess->id_session_twilio.' : ' . $message;
$message = str_split( $message, 160 ); $message = str_split( $message, 160 );
$b = $message;
// Send this message to the customer service // Send this message to the customer service
foreach (c::config()->text as $supportName => $supportPhone) { foreach (c::config()->text as $supportName => $supportPhone) {
$num = $supportPhone; $num = $supportPhone;
foreach ($b as $msg) { foreach ($message as $msg) {
try { try {
// Log // Log
Log::debug( [ 'action' => 'sending sms - support', 'session id' => $tsess->id_session_twilio, 'num' => $num, 'msg' => $msg, 'type' => 'support' ] ); 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>Name</th>
<th>Phone</th> <th>Phone</th>
<th>Message</th> <th>Message</th>
<th>Answered</th>
<th>Type</th> <th>Type</th>
</tr> </tr>
<? foreach ($this->support as $support) : ?> <? foreach ($this->support as $support) : ?>
<? $date = $support->date(); ?> <? $date = $support->date(); ?>
<? $answered = ( $support->answers()->count() > 0 ); ?>
<tr class="list-support-item <?=$support->status; ?>"> <tr class="list-support-item <?=$support->status; ?>">
<td> <?=$date->format('M jS Y')?><br /><br /><?=$date->format('g:i:s A')?> </td> <td> <?=$date->format('M jS Y')?><br /><br /><?=$date->format('g:i:s A')?> </td>
<td> <?=$support->name; ?></td> <td> <?=$support->name; ?></td>
<td> <?=$support->phone; ?></td> <td> <?=$support->phone; ?></td>
<td><a href="/admin/support/<?=$support->id_support;?>"><?=nl2br( $support->message ); ?></a></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> <td> <?=$support->type; ?> </td>
</tr> </tr>
<? endforeach ; ?> <? endforeach ; ?>

View File

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

View File

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