mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Starting work on bake template redesign.
This commit is contained in:
parent
b89280a916
commit
1216884a30
4 changed files with 29 additions and 11 deletions
|
@ -45,31 +45,27 @@ a img {
|
||||||
}
|
}
|
||||||
h1, h2, h3, h4 {
|
h1, h2, h3, h4 {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
margin-bottom:0.5em;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
background:#fff;
|
background:#fff;
|
||||||
color: #003d4c;
|
color: #003d4c;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
margin: 0.1em 0;
|
|
||||||
}
|
}
|
||||||
h2 {
|
h2 {
|
||||||
background:#fff;
|
background:#fff;
|
||||||
color: #e32;
|
color: #e32;
|
||||||
font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
|
font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
|
||||||
font-size: 190%;
|
font-size: 190%;
|
||||||
margin: 0.3em 0;
|
|
||||||
padding-top: 0.8em;
|
|
||||||
}
|
}
|
||||||
h3 {
|
h3 {
|
||||||
color: #993;
|
color: #993;
|
||||||
font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
|
font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
|
||||||
font-size: 165%;
|
font-size: 165%;
|
||||||
padding-top: 1.5em;
|
|
||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
color: #993;
|
color: #993;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
padding-top: 0.5em;
|
|
||||||
}
|
}
|
||||||
ul, li {
|
ul, li {
|
||||||
margin: 0 12px;
|
margin: 0 12px;
|
||||||
|
@ -112,6 +108,24 @@ ul, li {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.form,
|
||||||
|
div.index,
|
||||||
|
div.view {
|
||||||
|
float:right;
|
||||||
|
width:81%;
|
||||||
|
border-left:1px solid #666;
|
||||||
|
padding:10px 2%;
|
||||||
|
}
|
||||||
|
div.actions {
|
||||||
|
float:left;
|
||||||
|
width:9.5%;
|
||||||
|
padding:10px 2%;
|
||||||
|
}
|
||||||
|
div.actions h3 {
|
||||||
|
padding-top:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Tables */
|
/* Tables */
|
||||||
table {
|
table {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
@ -170,6 +184,7 @@ div.paging {
|
||||||
background:#fff;
|
background:#fff;
|
||||||
color: #ccc;
|
color: #ccc;
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
|
clear:both;
|
||||||
}
|
}
|
||||||
div.paging div.disabled {
|
div.paging div.disabled {
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
|
@ -212,7 +227,7 @@ form {
|
||||||
}
|
}
|
||||||
fieldset {
|
fieldset {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
margin-top: 30px;
|
margin-bottom: 1em;
|
||||||
padding: 16px 20px;
|
padding: 16px 20px;
|
||||||
}
|
}
|
||||||
fieldset legend {
|
fieldset legend {
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
<h3><?php __('Actions'); ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<?php if ($action != 'add'):?>
|
<?php if ($action != 'add'):?>
|
||||||
<li><?php echo "<?php echo \$this->Html->link(__('Delete', true), array('action' => 'delete', \$this->Form->value('{$modelClass}.{$primaryKey}')), null, sprintf(__('Are you sure you want to delete # %s?', true), \$this->Form->value('{$modelClass}.{$primaryKey}'))); ?>";?></li>
|
<li><?php echo "<?php echo \$this->Html->link(__('Delete', true), array('action' => 'delete', \$this->Form->value('{$modelClass}.{$primaryKey}')), null, sprintf(__('Are you sure you want to delete # %s?', true), \$this->Form->value('{$modelClass}.{$primaryKey}'))); ?>";?></li>
|
||||||
|
|
|
@ -69,13 +69,14 @@ foreach (\${$pluralVar} as \${$singularVar}):
|
||||||
echo "<?php endforeach; ?>\n";
|
echo "<?php endforeach; ?>\n";
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
<div class="paging">
|
<div class="paging">
|
||||||
<?php echo "\t<?php echo \$this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>\n";?>
|
<?php echo "\t<?php echo \$this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>\n";?>
|
||||||
| <?php echo "\t<?php echo \$this->Paginator->numbers();?>\n"?>
|
| <?php echo "\t<?php echo \$this->Paginator->numbers();?>\n"?>
|
||||||
<?php echo "\t<?php echo \$this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>\n";?>
|
<?php echo "\t<?php echo \$this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>\n";?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
<h3><?php __('Actions'); ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><?php echo "<?php echo \$this->Html->link(sprintf(__('New %s', true), __('{$singularHumanName}', true)), array('action' => 'add')); ?>";?></li>
|
<li><?php echo "<?php echo \$this->Html->link(sprintf(__('New %s', true), __('{$singularHumanName}', true)), array('action' => 'add')); ?>";?></li>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -42,6 +42,7 @@ foreach ($fields as $field) {
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
<h3><?php __('Actions'); ?></h3>
|
||||||
<ul>
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
echo "\t\t<li><?php echo \$this->Html->link(sprintf(__('Edit %s', true), __('{$singularHumanName}', true)), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?> </li>\n";
|
echo "\t\t<li><?php echo \$this->Html->link(sprintf(__('Edit %s', true), __('{$singularHumanName}', true)), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?> </li>\n";
|
||||||
|
|
Loading…
Reference in a new issue