format all numbers

This commit is contained in:
osaajani 2019-11-29 03:07:39 +01:00
parent cadb63cbe8
commit 53fe0b11f3
8 changed files with 12 additions and 12 deletions

View file

@ -49,7 +49,7 @@
<?php foreach ($discussions as $discussion) { ?>
<tr class="goto" url="<?php $this->s(\descartes\Router::url('Discussion', 'show', ['number' => $discussion['number']])); ?>">
<td><?php $this->s($discussion['at']); ?></td>
<td><?php $this->s(isset($discussion['contact']) ? $discussion['contact'] . ' (' . $discussion['number'] . ')' : $discussion['number']); ?></td>
<td><?php $this->s(isset($discussion['contact']) ? $discussion['contact'] . ' (' . \controllers\internals\Tool::phone_format($discussion['number']) . ')' : \controllers\internals\Tool::phone_format($discussion['number'])); ?></td>
</tr>
<?php } ?>
</tbody>

View file

@ -13,7 +13,7 @@
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">
Discussion <small><?php $this->s($contact ? $contact['name'] . ' (' . $number . ')' : $number); ?></small>
Discussion <small><?php $this->s($contact ? $contact['name'] . ' (' . \controllers\internals\Tool::phone_format($number) . ')' : \controllers\internals\Tool::phone_format($number)); ?></small>
</h1>
<ol class="breadcrumb">
<li>
@ -23,7 +23,7 @@
<i class="fa fa-comments-o"></i> <a href="<?php echo \descartes\Router::url('Discussion', 'list'); ?>">Discussions</a>
</li>
<li class="active">
<?php $this->s($number); ?>
<?php $this->s(\controllers\internals\Tool::phone_format($number)); ?>
</li>
</ol>
</div>