This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Sitelease\Core\Extensions; | |
use ReflectionClass; | |
use SilverStripe\ORM\DB; | |
use SilverStripe\ORM\DataExtension; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Sitelease\Core\Traits; | |
use ReflectionClass; | |
use SilverStripe\Security\Permission; | |
/** | |
* Adds functionality to automatically create model level access permissions | |
* for a DataObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Sitelease\Core\Model; | |
use SilverStripe\ORM\DataObject; | |
use SilverStripe\Core\Config\Config; | |
use SilverStripe\Security\Permission; | |
/** | |
* This class extends the DataObject class and adds extra user permission |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ... --> | |
<!-- Main Section --> | |
<main class="u-pv-x7"> | |
<!-- Title Section --> | |
<div class="o-container o-container--size-small"> | |
<div class="o-grid o-grid--middle u-mb-x7"> | |
<div class="o-grid__col u-1/2 u-text-center u-text-left@sm"> | |
<h1 class="o-type-35">Dashboard</h1> | |
</div> | |
<div class="o-grid__col u-1/2 u-text-center u-text-right@sm"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ... --> | |
<!-- Main Section --> | |
<main class="u-pv-x7"> | |
<!-- Title Section --> | |
<div class="o-container o-container--size-small"> | |
<div class="o-grid o-grid--middle u-mb-x7"> | |
<div class="o-grid__col u-1/2 u-text-left"> | |
<h1 class="o-type-35">Dashboard</h1> | |
</div> | |
<div class="o-grid__col u-1/2 u-text-right"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ... --> | |
<!-- Footer Section --> | |
<footer class="u-bgcolor-purple u-color-white u-p-x3"> | |
<div class="o-container"> | |
<div class="o-media o-media--middle o-media--rev o-media--res"> | |
<div class="o-media__fixed u-text-center u-text-right@sm"> | |
<a class="c-link u-weight-bold" href="#">Follow us on twitter</a> | |
</div> | |
<div class="o-media__fluid u-text-center u-text-left@sm"> | |
<p>Copyright Ⓒ 2017 Publisher. All rights reserved.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.c-link{ | |
text-decoration: none; | |
color:inherit; | |
} | |
.c-link:hover{ | |
opacity: 0.8; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ... --> | |
<!-- Header --> | |
<header class="u-bgcolor-purple u-color-white u-p-x3"> | |
<div class="o-container o-container--size-small"> | |
<div class="o-media o-media--middle o-media--res"> | |
<div class="o-media__fixed u-text-left u-text-center@sm"> | |
<img src="svg/logo.svg" alt="Logo" class="logo"> | |
</div> | |
<div class="o-media__fluid u-text-center u-text-right@sm"> | |
<nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.c-card { | |
padding: $baseline-x5; | |
background: rgba($color-white, 0.8); | |
border-radius: 2px; | |
box-shadow: 0 1px 2px 0 rgba(28,45,157,0.28); | |
} | |
.c-card--light { | |
background-color: rgba($color-white, 0.5); | |
} |