-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexandr Kolomiec
committed
Aug 25, 2016
1 parent
96de9e7
commit 7cef79f
Showing
11 changed files
with
118 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/* | ||
* Copyright (c) 2014 Eltrino LLC (http://eltrino.com) | ||
* | ||
* Licensed under the Open Software License (OSL 3.0). | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@eltrino.com so we can send you a copy immediately. | ||
*/ | ||
namespace Diamante\EmailProcessingBundle\Controller; | ||
|
||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | ||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | ||
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
|
||
/** | ||
* @Route("system") | ||
*/ | ||
class ConfigurationController extends Controller | ||
{ | ||
/** | ||
* @Route("/config/channels/help", name="diamante_config_channels_help") | ||
* @Template | ||
*/ | ||
public function systemAction() | ||
{ | ||
$versionService = $this->get('diamante.version.service'); | ||
$versions = sprintf('%s|%s', $versionService->getDiamanteVersion(), $versionService->getOroVersion()); | ||
|
||
return ['versions' => base64_encode($versions)]; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Diamante\EmailProcessingBundle\Form\Type; | ||
|
||
use Symfony\Component\Form\AbstractType; | ||
use Symfony\Component\Form\FormBuilderInterface; | ||
|
||
use Oro\Bundle\FormBundle\Form\DataTransformer\ArrayToJsonTransformer; | ||
|
||
class HelpChannelsConfigurationType extends AbstractType | ||
{ | ||
const NAME = 'diamante_config_channels_help'; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getParent() | ||
{ | ||
return 'hidden'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getName() | ||
{ | ||
return self::NAME; | ||
} | ||
} |
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,3 @@ | ||
css: | ||
'diamanteemailprocessing': | ||
- 'bundles/diamanteemailprocessing/css/diam.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,16 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> | ||
|
||
<parameters> | ||
<parameter key="diamante_config_channels_help.type.class">Diamante\EmailProcessingBundle\Form\Type\HelpChannelsConfigurationType</parameter> | ||
</parameters> | ||
|
||
<services> | ||
<service id="diamante_config_channels_help" class="%diamante_config_channels_help.type.class%"> | ||
<tag name="form.type" alias="diamante_config_channels_help"/> | ||
</service> | ||
</services> | ||
</container> |
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,3 @@ | ||
diamante_email_processing_bundle: | ||
resource: "@DiamanteEmailProcessingBundle/Controller" | ||
type: annotation |
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,2 @@ | ||
bundles: | ||
- DiamanteEmailProcessingBundle:Form:fields.html.twig |
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 @@ | ||
.diam-channels-info { | ||
margin-top: 20px; | ||
} | ||
|
||
.diam-channels-image { | ||
width: 13px; | ||
height: 13px; | ||
position: relative; | ||
bottom: 1px; | ||
} |
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,7 @@ | ||
<div class="diam-channels-info"> | ||
<img class="diam-channels-image" | ||
src="https://assets.diamantedesk.com/images/{{ versions }}/help.png" | ||
title="More info"/> More info could be found in the <a | ||
href="http://docs.diamantedesk.com/en/latest/user-guide/channels/email-processing.html#how-to-set-up-a-support-account"> | ||
documentation.</a> | ||
</div> |
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,8 @@ | ||
{% block diamante_config_channels_help_widget %} | ||
{{ form_widget(form) }} | ||
{{ oro_widget_render({ | ||
'widgetType': 'block', | ||
'url': path('diamante_config_channels_help'), | ||
'alias': 'diamante_config_channels_help' | ||
}) }} | ||
{% endblock %} |