Skip to content

Commit

Permalink
[IM] Better logo layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jun 20, 2020
1 parent 36c3361 commit c10c712
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions resources/views/customer/edit.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
?>

<?php $this->section( 'title' ) ?>
<a href="<?= route( 'customer@list' )?>">Customers</a>
<a href="<?= route( 'customer@list' )?>"><?= ucfirst( config( 'ixp_fe.lang.customer.many' ) ) ?></a>
<?php $this->append() ?>

<?php $this->section( 'page-header-preamble' ) ?>
Customers / <?= $t->cust ? "Edit" : "Add" ?>
<?= ucfirst( config( 'ixp_fe.lang.customer.many' ) ) ?> / <?= $t->cust ? "Edit" : "Add" ?>
<?php $this->append() ?>

<?php $this->section( 'page-header-postamble' ) ?>
Expand Down Expand Up @@ -38,7 +38,7 @@


<div id="instructions-alert" class="alert alert-info" style="display: none;">
Official <b>IXP Manager</b> documentation for adding / editing customers can be found at <a href="http://docs.ixpmanager.org/usage/customers/">http://docs.ixpmanager.org/</a>.
Official <b>IXP Manager</b> documentation for adding / editing <?= config( 'ixp_fe.lang.customer.many' ) ?> can be found at <a href="http://docs.ixpmanager.org/usage/customers/">http://docs.ixpmanager.org/</a>.
</div>

<div class="bg-light shadow-sm p-4">
Expand All @@ -64,7 +64,7 @@

<div class="col-lg-6 col-md-12 mb-4 mb-sm-0">

<h3>Customer Details</h3>
<h3><?= ucfirst( config( 'ixp_fe.lang.customer.one' ) ) ?> Details</h3>
<hr class="tw-mb-6">

<?= Former::text( 'name' )
Expand Down
8 changes: 5 additions & 3 deletions resources/views/customer/logos.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<?php $this->section( 'page-header-preamble' ) ?>

Customer / Logos
<?= ucfirst( config( 'ixp_fe.lang.customer.many' ) ) ?> / Logos

<?php $this->append() ?>

Expand All @@ -16,8 +16,10 @@
<?php foreach( $t->logos as $logo ): ?>
<a class="col-lg-3 col-sm-6 my-2 tw-bg-white rounded-t-lg border tw-border-gray-400 p-4 justify-center tw-shadow-md hover:tw-bg-grey-lighter text-center" href="<?= route( "logo@manage" , [ "id" => $logo->getCustomer()->getId() ] ) ?>">
<div>
<img class="img-fluid mx-auto" src="<?= url( 'logos/'.$logo->getShardedPath() ) ?>" />
<hr>
<div class="tw-h-24">
<img class="img-fluid mx-auto" src="<?= url( 'logos/'.$logo->getShardedPath() ) ?>" />
</div>
<hr class="tw-mt-4 tw-mb-2">
<h5>
<?= $logo->getCustomer()->getName() ?>
</h5>
Expand Down

0 comments on commit c10c712

Please sign in to comment.