Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/dev/release'
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrebenchuk committed Dec 5, 2013
2 parents c42f1d1 + 7ae682b commit ae27e9a
Show file tree
Hide file tree
Showing 603 changed files with 21,006 additions and 6,155 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
CHANGELOG for 1.0.0-beta5
===================
This changelog references the relevant changes (new features, changes and bugs) done in 1.0.0-beta5 versions.

* 1.0.0-beta5 (2013-12-05)
* ACL management in scope of organization and business unit
* "Option Set" Field Type for Entity Field
* Form validation improvements
* Tabs implementation on entity view pages
* Eliminated registry js-component
* Implemented responsive markup on most pages

CHANGELOG for 1.0.0-beta4
===================
This changelog references the relevant changes (new features, changes and bugs) done in 1.0.0-beta4 versions.
Expand Down
1 change: 0 additions & 1 deletion composer.dev
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"liip/imagine-bundle": "dev-master",
"leafo/lessphp": "dev-master",
"willdurand/expose-translation-bundle": "0.2.*@dev",
"apy/jsfv-bundle": "dev-master",
"genemu/form-bundle": "2.2.*",
"zendframework/zend-mail": "2.1.*",
"a2lix/translation-form-bundle" : "1.*@dev",
Expand Down
27 changes: 13 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,37 @@
"symfony/symfony": "v2.3.6",
"doctrine/orm": "2.3.x-dev#1a30e0a2e069999de835722bfbafe3da146b8ebb",
"doctrine/doctrine-bundle": "dev-master#c65e5a21d1db794511d11fe28918f41bd6072f8f",
"doctrine/data-fixtures": "dev-master#dfc0dc9a3f6258c878768218fe49cc092ea8a8d1",
"doctrine/data-fixtures": "dev-master#4a81be009d8437326acfcdd68888d1c5b8e2fb40",
"doctrine/doctrine-fixtures-bundle": "dev-master#3caec4826e58fe47520b591f965b4adcdfc8a6c8",
"twig/extensions": "dev-master#d4dc27cc824b2b4faf7edbfbe652e3fdaec696b6",
"twig/extensions": "dev-master#0fdc8ca874d415b65c7a0d31376cac9c9ed775af",
"symfony/assetic-bundle": "2.3.x-dev#099e0bb5d80e7039af20db384a41017fde521f21",
"symfony/swiftmailer-bundle": "v2.3.4",
"symfony/monolog-bundle": "2.3.x-dev#03ed73bc11367b3156cc21f22ac37c7f70fcd10a",
"sensio/distribution-bundle": "dev-master#52b964d793e989768a44a8900b2373bdc9ce666a",
"sensio/framework-extra-bundle": "2.3.x-dev#27d3ee9591465a64eb779c17a3f19bd3eea5f992",
"sensio/framework-extra-bundle": "2.3.x-dev#0f07cf1f9e71a4e2734aaec2751622dff628073f",
"sensio/generator-bundle": "dev-master#38cce07d6b27d8ac2b6000560309f0cd5ce63577",
"incenteev/composer-parameter-handler": "dev-master#bc06242a63298affc72d2089f93d8986a6217c4c",
"jms/job-queue-bundle": "dev-master#0604bf53a099639a56133a9ad84c550b7c0ca434",
"jms/serializer": "dev-master#ce84c9ed33a8e81cdd3d30aa151a6e72882488d6",
"jms/serializer-bundle": "dev-master#692db4cf401a475c5a0cdcf80799080e046bf5e7",
"jms/serializer": "dev-master#22daa254e54f4b69292bd8679d7a6f3a78dc85d4",
"jms/serializer-bundle": "dev-master#9cdfef0a473e166cad13170c8f35d67023ebd083",
"kriswallsmith/assetic": "1.1.x-dev#1d671c54f147ece319642132330927672b6190a7",
"knplabs/knp-menu": "dev-master#52c8ffd7eba8028f93ef9eece98f74b2f11c1c1f",
"knplabs/knp-menu-bundle": "dev-master#1b07578738d3425c09cfbd153276382388994f46",
"knplabs/knp-menu-bundle": "dev-master#838c4a0f9b0631b37d699d9a7ebd695707298678",
"knplabs/knp-paginator-bundle": "dev-master#769b83d01b3f76b011522599bd48e5e202d94ff4",
"friendsofsymfony/rest-bundle": "0.12.0",
"friendsofsymfony/jsrouting-bundle": "1.1.5",
"nelmio/api-doc-bundle": "dev-master#2ceea4871a6205c421dc3ce9b0a7b350aafe7000",
"ass/xmlsecurity": "dev-master#c4246b1a6f5e42261b4886b306b1ae2fefea976f",
"besimple/soap-common": "dev-master#11486d1a06c4d1610a4c9580b1999b4448b6c29f",
"besimple/soap-server": "dev-master#1f28879843293edf7eb9a8cf49f846095b5ecf18",
"besimple/soap-bundle": "dev-master#876455445600e4bcd72dd85d3d3c4049ee2318b6",
"besimple/soap-wsdl": "dev-master#9ae5798b9131df64f49e9d77732ec8ecd0ebf754",
"ddeboer/data-import": "dev-master#38e463da12333acdb7d59f72c93cd16878774a08",
"besimple/soap-common": "dev-master#a28d340a6c736223ce06677c926a0ec2eca96230",
"besimple/soap-server": "dev-master#75d4df7921b35774eeea07475b3ef5f771522a31",
"besimple/soap-bundle": "dev-master#63831ab54d4a22bbc704d4dabb7e58e8f849cbdb",
"besimple/soap-wsdl": "dev-master#0152693d22de80cd71aba27fb964075ed7d3ef1e",
"ddeboer/data-import": "dev-master#b469850a5d3ebdba35b037fdd2f9aa6cd8e96ed3",
"stof/doctrine-extensions-bundle": "dev-master#9da4489322c5442ff021c4cd3f28dd79b2a8df07",
"escapestudios/wsse-authentication-bundle": "dev-master#b195c37bc2f5e7842b4bdae05352b66126626b42",
"liip/imagine-bundle": "dev-master#61597fc20329ccce762b07c89f6ba2d8fa0f4c09",
"escapestudios/wsse-authentication-bundle": "dev-master#abe4b7c41d1890d16abda26b285e6e5417952645",
"liip/imagine-bundle": "dev-master#66770454617f8281b00508d6cea89a3e8872c30e",
"leafo/lessphp": "dev-master#bc4f33b4bfc889018ebe53611050729641b82dc6",
"willdurand/expose-translation-bundle": "0.2.1",
"apy/jsfv-bundle": "dev-master#ecd74cfce030aeb1812277250318aacdd5483631",
"genemu/form-bundle": "dev-master#156089856016abde934b92961724b9aa728b7eae",
"zendframework/zend-mail": "2.1.5",
"a2lix/translation-form-bundle": "1.x-dev#6388ad72a88c3c15e2eaee6c56ba046a60b47556",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,18 @@ class AddressController extends RestController implements ClassResourceInterface
/**
* REST GET list
*
* @QueryParam(name="page", requirements="\d+", nullable=true, description="Page number, starting from 1. Defaults to 1.")
* @QueryParam(name="limit", requirements="\d+", nullable=true, description="Number of items per page. defaults to 10.")
* @QueryParam(
* name="page",
* requirements="\d+",
* nullable=true,
* description="Page number, starting from 1. Defaults to 1."
* )
* @QueryParam(
* name="limit",
* requirements="\d+",
* nullable=true,
* description="Number of items per page. defaults to 10."
* )
* @ApiDoc(
* description="Get all addresses items",
* resource=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class Configuration implements ConfigurationInterface
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Oro/Bundle/AddressBundle/Entity/AbstractAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use Oro\Bundle\LocaleBundle\Model\FullNameInterface;
use Oro\Bundle\LocaleBundle\Model\AddressInterface;

use Oro\Bundle\FormBundle\Entity\EmptyItem;

/**
* Address
*
Expand Down
3 changes: 3 additions & 0 deletions src/Oro/Bundle/AddressBundle/Entity/AbstractEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;

use Oro\Bundle\FormBundle\Entity\PrimaryItem;
use Oro\Bundle\FormBundle\Entity\EmptyItem;

/**
* @ORM\MappedSuperclass
*/
Expand Down
3 changes: 3 additions & 0 deletions src/Oro/Bundle/AddressBundle/Entity/AbstractPhone.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;

use Oro\Bundle\FormBundle\Entity\PrimaryItem;
use Oro\Bundle\FormBundle\Entity\EmptyItem;

/**
* @ORM\MappedSuperclass
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

use BeSimple\SoapBundle\ServiceDefinition\Annotation as Soap;

use Oro\Bundle\AddressBundle\Entity\AddressType;
use Oro\Bundle\FormBundle\Entity\PrimaryItem;

/**
* Typed Address
Expand Down
2 changes: 1 addition & 1 deletion src/Oro/Bundle/AddressBundle/Entity/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Country
*
* @ORM\Table("oro_dictionary_country", indexes={
* @ORM\Index(name="name_idx", columns={"name"})
* @ORM\Index(name="country_name_idx", columns={"name"})
* })
* @ORM\Entity
* @Gedmo\TranslationEntity(class="Oro\Bundle\AddressBundle\Entity\CountryTranslation")
Expand Down
2 changes: 1 addition & 1 deletion src/Oro/Bundle/AddressBundle/Entity/Region.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Region
*
* @ORM\Table("oro_dictionary_region", indexes={
* @ORM\Index(name="name_idx", columns={"name"})
* @ORM\Index(name="region_name_idx", columns={"name"})
* })
* @ORM\Entity(repositoryClass="Oro\Bundle\AddressBundle\Entity\Repository\RegionRepository")
* @Gedmo\TranslationEntity(class="Oro\Bundle\AddressBundle\Entity\RegionTranslation")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
*/
public function getParent()
{
return 'oro_item_collection';
return 'oro_collection';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class EmailCollectionType extends AbstractType
*/
public function getParent()
{
return 'oro_item_collection';
return 'oro_collection';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PhoneCollectionType extends AbstractType
*/
public function getParent()
{
return 'oro_item_collection';
return 'oro_collection';
}

/**
Expand Down
8 changes: 0 additions & 8 deletions src/Oro/Bundle/AddressBundle/Resources/config/form_types.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
parameters:
oro_address.form.listener.address.class: Oro\Bundle\AddressBundle\Form\EventListener\AddressCountryAndRegionSubscriber

oro_address.form.type.item_collection.class: Oro\Bundle\AddressBundle\Form\Type\ItemCollectionType

oro_address.form.type.address.class: Oro\Bundle\AddressBundle\Form\Type\AddressType
oro_address.form.type.address_api.class: Oro\Bundle\AddressBundle\Form\Type\AddressApiType
oro_address.form.type.address_collection.class: Oro\Bundle\AddressBundle\Form\Type\AddressCollectionType
Expand All @@ -27,12 +25,6 @@ services:
- @doctrine.orm.entity_manager
- @form.factory

# Collections form types
oro_address.type.item_collection:
class: %oro_address.form.type.item_collection.class%
tags:
- { name: form.type, alias: oro_item_collection }

# Addresses form types
oro_address.form.type.address:
class: %oro_address.form.type.address.class%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
parameters:
oro_address.importexport.primary_item_collection_normalizer.class: Oro\Bundle\AddressBundle\ImportExport\Serializer\Normalizer\PrimaryItemCollectionNormalizer
oro_address.importexport.phone_normalizer.class: Oro\Bundle\AddressBundle\ImportExport\Serializer\Normalizer\PhoneNormalizer
oro_address.importexport.email_normalizer.class: Oro\Bundle\AddressBundle\ImportExport\Serializer\Normalizer\EmailNormalizer
oro_address.importexport.address_type_normalizer.class: Oro\Bundle\AddressBundle\ImportExport\Serializer\Normalizer\AddressTypeNormalizer
oro_address.importexport.address_normalizer.class: Oro\Bundle\AddressBundle\ImportExport\Serializer\Normalizer\AddressNormalizer
oro_address.importexport.typed_address_normalizer.class: Oro\Bundle\AddressBundle\ImportExport\Serializer\Normalizer\TypedAddressNormalizer

services:
oro_address.importexport.primary_item_collection_normalizer:
class: %oro_address.importexport.primary_item_collection_normalizer.class%
tags:
- { name: oro_importexport.normalizer, priority: -5 }

oro_address.importexport.phone_normalizer:
class: %oro_address.importexport.phone_normalizer.class%
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ Validation configuration should be placed in file Resources/config/validation.ym
OroCRM\Bundle\ContactBundle\Entity\Contact:
properties:
addresses:
- Oro\Bundle\AddressBundle\Validator\Constraints\ContainsPrimary: ~
- Oro\Bundle\AddressBundle\Validator\Constraints\UniqueAddressTypes: ~
```
123 changes: 123 additions & 0 deletions src/Oro/Bundle/AddressBundle/Resources/public/css/less/address.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
.map-box {
/*background: url("../../img/vertical-separator.png") repeat-y 40% 0;*/
&:after {
content: "";
clear: both;
display: block;
}
.map-address-list {
width: 40%;
height: 420px;
background-color: #fbfbfb;
float: left;
overflow: hidden;
}
.map-address-list:hover {
overflow: auto;
}
.map-visual-frame {
border-left:1px solid #ddd;
float: left;
width: 60%;
height: 420px;
}
.map-visual {
border: 1px solid #d3d3d3;
height: 400px;
margin:10px;
img {
max-width:none;
}
}
.map-unknown {
line-height: 420px;
text-align: center;
}
.map-item {
border-bottom:1px solid #eee;
padding: 15px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
width: 100%;
cursor:pointer;
&:hover {
background:#f8f8f8;
}
address {
margin-bottom:0;
line-height:1.5em;
}
&.active {
background-color: #ecf1f9;
}
.inline {
clear:left;
margin-bottom:2px;
li {
padding:0;
.label {
background:none;
padding:0;
text-shadow:none;
color:#999;
font-weight:normal;
font-size:11px;
&:after {
content:", "
}
}
&:last-of-type {
.label:after {
content:"";
}
}
.label-info {
background:#6891cf;
color:#fff;
font-weight:bold;
padding:2px 4px;
}
}
}
}
.title-item {
font: bold 14px/18px @baseFontFamily;
float: left;
}
.map-actions {
position:relative;
float: right;
margin-right:-4px;
z-index:99;
.btn {
line-height:1em;
height:auto;
border: 0;
background: 0;
-webkit-box-shadow: none;
box-shadow: none;
padding: 0;
[class^='icon-'] {
&:before {
.opacity(30,.3);
font-size:15px;
}
&:hover {
&:before {
.opacity(70,.7);
}
}
}
}
}
}

@media only screen and (max-width: @smallScreen) {
.map-box {
.map-address-list, .map-visual-frame {
width: 100%;
height: auto;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function(_, Backbone, __, mediator, messenger, dialogWidget,
return Backbone.View.extend({
options: {
'mapOptions': {
zoom: 17
zoom: 12
},
'template': null,
'addressListUrl': null,
Expand Down
Loading

0 comments on commit ae27e9a

Please sign in to comment.