Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
styles and buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Jun 5, 2017
1 parent 156cbff commit 408f83b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion source/views/aggregation/incident.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class="btn blue-grey darken-2 waves-effect waves-light" icon="archive"
</vault:uri>
<?php } ?>

<vault:uri target="snapshots:view" class="btn-flat teal-text waves-effect"
<vault:uri target="snapshots:view" class="btn-flat waves-effect"
post-icon="trending_flat" options="<?= ['id' => $snapshot->primaryKey()] ?>">
[[BACK]]
</vault:uri>
Expand Down
19 changes: 7 additions & 12 deletions source/views/aggregation/list.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
* @var \Spiral\Snapshotter\Helpers\Names $names
*/
?>
<extends:vault:layout title="[[Vault : Snapshots]]"
class="wide-content"/><!--Shared keeper elements-->
<extends:vault:layout title="[[Vault : Snapshots]]" class="wide-content"/><!--Shared keeper elements-->
<dark:use bundle="vault:bundle"/>

<define:actions>
<vault:guard permission="vault.snapshots.removeAll">
<?php if ($selector->count()) { ?>
<vault:uri target="snapshots:removeAll" icon="delete"
class="btn red waves-effect waves-light">
<vault:uri target="snapshots:removeAll" icon="delete" class="btn red waves-effect waves-light">
[[Remove all]]
</vault:uri>
<?php } ?>
Expand All @@ -33,8 +31,7 @@ class="btn red waves-effect waves-light">
</div>
<div class="col s12 m2 right-align">
<vault:guard permission="vault.snapshots.view">
<vault:uri target="snapshots:view" icon="import_contacts"
class="btn teal waves-effect waves-light"
<vault:uri target="snapshots:view" icon="import_contacts" class="btn waves-effect waves-light"
options="<?= ['id' => $lastSnapshot->primaryKey()] ?>">
[[View last]]
</vault:uri>
Expand All @@ -44,7 +41,7 @@ class="btn teal waves-effect waves-light"
</vault:card>
<?php } ?>

<vault:grid source="<?= $selector ?>" as="entity" color="teal">
<vault:grid source="<?= $selector ?>" as="entity" color="">
<grid:cell label="[[ID:]]" value="<?= $entity->id ?>"/>
<grid:cell label="[[Last occurred:]]">
<span title="<?= $timestamps->getTime(
Expand Down Expand Up @@ -94,13 +91,11 @@ class="btn teal waves-effect waves-light"

<grid:cell style="text-align:right">
<vault:guard permission="vault.snapshots.view">
<vault:uri target="snapshots:view" icon="import_contacts" title="[[View snapshot]]"
options="<?= ['id' => $entity->primaryKey()] ?>"
class="btn teal waves-effect"/>
<vault:uri target="snapshots:view" icon="import_contacts" title="[[View snapshot]]" options="<?= ['id' => $entity->primaryKey()] ?>"
class="btn waves-effect"/>
</vault:guard>
<vault:guard permission="vault.snapshots.remove">
<vault:uri target="snapshots:remove" icon="delete" title="[[Remove snapshot]]"
class="btn red waves-effect waves-light"
<vault:uri target="snapshots:remove" icon="delete" title="[[Remove snapshot]]" class="btn red waves-effect waves-light"
options="<?= ['id' => $entity->primaryKey()] ?>"/>
</vault:guard>
</grid:cell>
Expand Down
8 changes: 4 additions & 4 deletions source/views/aggregation/snapshot.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class="btn red waves-effect waves-light"
</vault:uri>
<?php } ?>
</vault:guard>
<vault:uri target="snapshots" class="btn-flat teal-text waves-effect" post-icon="trending_flat">
<vault:uri target="snapshots" class="btn-flat waves-effect" post-icon="trending_flat">
[[BACK]]
</vault:uri>
</define:actions>
Expand Down Expand Up @@ -107,7 +107,7 @@ class="btn red waves-effect waves-light"
<p class="grey-text">[[When enabled, snapshot incident history records will be created without source stored.]]</p>
<div class="right-align">
<input type="submit" value="[[Update]]"
class="btn teal waves-effect"/>
class="btn waves-effect"/>
</div>
</spiral:form>
<?php } else {
Expand Down Expand Up @@ -138,7 +138,7 @@ class="btn teal waves-effect"/>
<p class="card-panel-title">[[You have only
<a href="#last">one</a> snapshot occurred.]]</p>
<?php } else { ?>
<vault:grid source="<?= $selector ?>" as="entity" color="teal">
<vault:grid source="<?= $selector ?>" as="entity" color="">
<grid:cell label="[[ID:]]" value="<?= $entity->primaryKey() ?>"/>

<grid:cell label="[[Occurred:]]">
Expand All @@ -156,7 +156,7 @@ class="btn teal waves-effect"/>
<vault:guard permission="vault.snapshots.view">
<vault:uri target="snapshots:incident" icon="import_contacts"
title="[[View incident]]"
class="btn waves-effect teal text-left" options="<?= [
class="btn waves-effect text-left" options="<?= [
'id' => $snapshot->primaryKey(),
'incident' => $entity->primaryKey(),
] ?>"/>
Expand Down
4 changes: 2 additions & 2 deletions source/views/file/list.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class="btn red waves-effect waves-light">
</define:actions>

<define:content>
<vault:grid source="<?= $selector ?>" as="entity" color="teal">
<vault:grid source="<?= $selector ?>" as="entity" color="">
<grid:cell label="[[Last occurred:]]">
<span>
<?= $timestamps->getTime($entity->timestamp()) ?>
Expand All @@ -43,7 +43,7 @@ class="btn red waves-effect waves-light">
<vault:guard permission="vault.snapshots.view">
<vault:uri target="snapshots:view" icon="import_contacts" title="[[View snapshot]]"
options="<?= ['filename' => $entity->id()] ?>"
class="btn-flat waves-effect"/>
class="btn waves-effect"/>
</vault:guard>
<vault:guard permission="vault.snapshots.remove">
<vault:uri target="snapshots:remove" icon="delete" title="[[Remove snapshot]]"
Expand Down
2 changes: 1 addition & 1 deletion source/views/file/snapshot.dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function resizeIframe(obj) {
[[Remove]]
</vault:uri>
</vault:guard>
<vault:uri target="snapshots" class="btn-flat teal-text waves-effect" post-icon="trending_flat">
<vault:uri target="snapshots" class="btn-flat waves-effect" post-icon="trending_flat">
[[BACK]]
</vault:uri>
</define:actions>
Expand Down

0 comments on commit 408f83b

Please sign in to comment.