2016-04-18 06:48:07 +02:00
import React from 'react' ;
import SilverStripeComponent from 'silverstripe-component' ;
/ * *
* Renders the right - hand collapsable change preview panel
* /
class CampaignPreview extends SilverStripeComponent {
render ( ) {
return (
< div className = "cms-content__right preview" >
< iframe className = "preview__iframe" src = { this . props . previewUrl } > < / i f r a m e >
< div className = "preview__overlay" >
< h3 className = "preview__overlay-text" > There is no preview available for this item . < / h 3 >
< / d i v >
< div className = "preview__file-container panel-scrollable" >
2016-04-21 00:15:23 +02:00
< img className = "preview__file--fits-space" src = "http://placehold.it/250x150" / >
2016-04-18 06:48:07 +02:00
< / d i v >
2016-04-19 06:37:25 +02:00
< div className = "toolbar--south" >
2016-04-18 06:48:07 +02:00
< div className = "btn-toolbar" >
2016-04-19 11:29:23 +02:00
< button className = "btn btn-secondary btn-secondary" type = "button" > < i className = "font-icon-edit" > < / i > E d i t < / b u t t o n >
< button type = "button" data - container = "body" className = "btn btn-link btn--options" data - toggle = "popover" title = "Page actions" data - placement = "top" data - content = "<a href=''>Add to campaign</a><a href=''>Remove from campaign</a>" > < i className = "font-icon-dot-3" > < / i > < / b u t t o n >
2016-04-18 06:48:07 +02:00
< / d i v >
< / d i v >
< / d i v >
) ;
}
}
export default CampaignPreview ;