-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from dew326/ezs-703-create-content-from-dashboard
EZS-703: As a user, I want to create content from the Dashboard
- Loading branch information
Showing
17 changed files
with
456 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
17 changes: 17 additions & 0 deletions
17
bundle/Resources/public/css/theme/views/create-content-popup.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Copyright (C) eZ Systems AS. All rights reserved. | ||
* For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
|
||
.ez-view-createcontentpopupview { | ||
background: rgba(0, 0, 0, .6); | ||
} | ||
|
||
.ez-view-createcontentpopupview .cof-create-popup { | ||
background: #d8d8d8; | ||
border-radius: .5rem; | ||
} | ||
|
||
.ez-view-createcontentpopupview .cof-content-creation__tooltip:before { | ||
border-color: transparent #bbb transparent transparent; | ||
} |
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
10 changes: 10 additions & 0 deletions
10
bundle/Resources/public/css/views/create-content-button.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* Copyright (C) eZ Systems AS. All rights reserved. | ||
* For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
|
||
.ez-view-createcontentbuttonview { | ||
position: absolute; | ||
top: 2vh; | ||
right: 6rem; | ||
} |
35 changes: 35 additions & 0 deletions
35
bundle/Resources/public/css/views/create-content-popup.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright (C) eZ Systems AS. All rights reserved. | ||
* For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
|
||
.ez-view-createcontentpopupview { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
z-index: 300; | ||
} | ||
|
||
.ez-view-createcontentpopupview .ez-view-contentcreationview { | ||
height: 40rem; | ||
} | ||
|
||
.ez-view-createcontentpopupview .cof-create-popup { | ||
position: absolute; | ||
top: 3rem; | ||
left: calc(50% - 12.5rem); | ||
} | ||
|
||
.ez-view-createcontentpopupview .cof-btn--close { | ||
position: absolute; | ||
z-index: 2; | ||
top: 2rem; | ||
right: 2rem; | ||
height: 2rem; | ||
width: 2rem; | ||
border: 0 none; | ||
padding: 0; | ||
overflow: hidden; | ||
} |
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
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
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
69 changes: 69 additions & 0 deletions
69
bundle/Resources/public/js/views/cof-createcontentbuttonview.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Copyright (C) eZ Systems AS. All rights reserved. | ||
* For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
YUI.add('cof-createcontentbuttonview', function (Y) { | ||
'use strict'; | ||
|
||
/** | ||
* Provides the Create Action view class | ||
* | ||
* @module cof-createcontentbuttonview | ||
*/ | ||
Y.namespace('cof'); | ||
|
||
var SELECTOR_BTN_CREATE = '.cof-btn--create', | ||
EVENTS = {}; | ||
|
||
EVENTS[SELECTOR_BTN_CREATE] = {'tap': '_showPopup'}; | ||
|
||
/** | ||
* The Create Content Button View | ||
* | ||
* @namespace cof | ||
* @class createContentButtonView | ||
* @constructor | ||
* @extends eZ.TemplateBasedView | ||
*/ | ||
Y.cof.CreateContentButtonView = Y.Base.create('createContentButtonView', Y.eZ.TemplateBasedView, [], { | ||
events: EVENTS, | ||
|
||
initializer: function () { | ||
this.get('createContentPopupView').on('displayedChange', this._toggleOverlay, this); | ||
}, | ||
|
||
render: function () { | ||
this.get('container') | ||
.setHTML(this.template()) | ||
.append(this.get('createContentPopupView').render().get('container')); | ||
|
||
return this; | ||
}, | ||
|
||
/** | ||
* Shows the create content popup | ||
* | ||
* @protected | ||
* @method _showPopup | ||
*/ | ||
_showPopup: function () { | ||
this.get('createContentPopupView').set('displayed', true); | ||
}, | ||
}, { | ||
ATTRS: { | ||
/** | ||
* The create content popup view instance | ||
* | ||
* @attribute createContentPopupView | ||
* @type cof.CreateContentPopupView | ||
*/ | ||
createContentPopupView: { | ||
valueFn: function () { | ||
return new Y.cof.CreateContentPopupView({ | ||
bubbleTargets: this | ||
}); | ||
} | ||
}, | ||
} | ||
}); | ||
}); |
Oops, something went wrong.