Skip to content

Commit

Permalink
Update views for latest CakeBootstrap template
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotta Jung committed Mar 4, 2017
1 parent 639a710 commit a1641cc
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 81 deletions.
14 changes: 6 additions & 8 deletions src/Template/Admin/Users/activate_two_fa.ctp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end(); ?>

<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><?= __('Users') ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-shield"></i> IAM & Admin / <?= __('Users') ?>
<div class="pull-right">

<div class="btn-group">
Expand All @@ -26,6 +22,8 @@ Cms
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

Expand Down
14 changes: 6 additions & 8 deletions src/Template/Admin/Users/add.ctp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end(); ?>

<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><?= __('Users') ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-shield"></i> IAM & Admin / <?= __('Users') ?>
<div class="pull-right">

<div class="btn-group">
Expand All @@ -26,6 +22,8 @@ Cms
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

Expand Down
14 changes: 6 additions & 8 deletions src/Template/Admin/Users/edit.ctp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end(); ?>

<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><?= __('Users') ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-shield"></i> IAM & Admin / <?= __('Users') ?>
<div class="pull-right">

<div class="btn-group">
Expand All @@ -26,6 +22,8 @@ Cms
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

Expand Down
16 changes: 7 additions & 9 deletions src/Template/Admin/Users/index.ctp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end() ?>

<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><?= __('Users') ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-shield"></i> IAM & Admin / <?= __('Users') ?>
<div class="pull-right">

<div class="btn-group">
Expand All @@ -28,14 +24,16 @@ Cms
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

<!-- Begin page content -->
<main id="main-container">

<!-- Content -->
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col-md-12">

Expand Down
17 changes: 8 additions & 9 deletions src/Template/Admin/Users/view.ctp
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end() ?>
<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><i class="fa fa-diamond text-amethyst"></i> <?= h($user->username) ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-diamond text-amethyst"></i> Users / <?= h($user->username) ?>
<div class="pull-right">

<div class="btn-group">
Expand All @@ -27,6 +23,9 @@ Cms
</div>
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

Expand All @@ -35,7 +34,7 @@ Cms
<main id="main-container">

<!-- Content -->
<div class="container-fluid">
<div class="container">

<table class="table table-hover">
<tr>
Expand Down
7 changes: 2 additions & 5 deletions src/Template/Element/admin_menu.ctp
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
<div class="cinema border-bottom-gray">
<h3><i class="fa fa-shield"></i> IAM & Admin</h3>
</div>
<ul class="nav nav-sidebar">
<li class="<?= $this->request->params['controller'] == 'Users' ? 'active' : '' ?>"><?= $this->Html->link(__('<i class="fa fa-user"></i> Users'), ['controller' => 'Users', 'action' => 'index'], ['escape' => false]) ?> </li>
<ul class="nav nav-tabs">
<li role="presentation" class="<?= $this->request->params['controller'] == 'Users' ? 'active' : '' ?>"><?= $this->Html->link(__('<i class="fa fa-user"></i> Users'), ['controller' => 'Users', 'action' => 'index'], ['escape' => false]) ?> </li>
</ul>
14 changes: 6 additions & 8 deletions src/Template/Users/add.ctp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end(); ?>

<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><?= __('Users') ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-shield"></i> IAM & Admin
<div class="pull-right">

<div class="btn-group">
Expand All @@ -27,6 +23,8 @@ Cms
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

Expand Down
14 changes: 6 additions & 8 deletions src/Template/Users/edit.ctp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end(); ?>

<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><?= __('Users') ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-shield"></i> IAM & Admin / <?= __('Users') ?>
<div class="pull-right">

<div class="btn-group">
Expand All @@ -26,6 +22,8 @@ Cms
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

Expand Down
16 changes: 7 additions & 9 deletions src/Template/Users/index.ctp
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end() ?>

<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><?= __('Users') ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-shield"></i> IAM & Admin / <?= __('Users') ?>
<div class="pull-right">

<div class="btn-group">
Expand All @@ -28,14 +24,16 @@ Cms
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

<!-- Begin page content -->
<main id="main-container">

<!-- Content -->
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col-md-12">

Expand Down
17 changes: 8 additions & 9 deletions src/Template/Users/view.ctp
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<?php $this->layout = 'CakeBootstrap.admin'; ?>

<?php $this->start('admin_menu'); ?>
<?= $this->element('CakeAuth.admin_menu') ?>
<?php $this->end() ?>
<?php $this->layout = 'CakeBootstrap.default'; ?>

<?php $this->start('subtitle_for_page'); ?>
Cms
<?php $this->end() ?>
<!-- Header -->
<div class="cinema border-bottom-gray">
<div class="container-fluid">
<h3><i class="fa fa-diamond text-amethyst"></i> <?= h($user->username) ?>
<div class="cinema border-bottom-gray with-nav-tabs">
<div class="container">
<h3><i class="fa fa-diamond text-amethyst"></i> Users / <?= h($user->username) ?>
<div class="pull-right">

<div class="btn-group">
Expand All @@ -27,6 +23,9 @@ Cms
</div>
</div>
</h3>

<?= $this->element('CakeAuth.admin_menu') ?>

</div>
</div>

Expand All @@ -35,7 +34,7 @@ Cms
<main id="main-container">

<!-- Content -->
<div class="container-fluid">
<div class="container">

<table class="table table-hover">
<tr>
Expand Down

0 comments on commit a1641cc

Please sign in to comment.