Skip to content

Commit

Permalink
fix profile edit form of address selection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Nov 9, 2017
1 parent d829249 commit 0991baa
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
5 changes: 3 additions & 2 deletions Form/Type/ProfileContactType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ public function buildForm(FormBuilderInterface $builder, array $options)
ChoiceType::class,
[
'choices' => [
'contact.contacts.formOfAddress.male',
'contact.contacts.formOfAddress.female',
'contact.contacts.formOfAddress.male' => 0,
'contact.contacts.formOfAddress.female' => 1,
],
'choices_as_values' => true,
'translation_domain' => 'backend',
'expanded' => true,
]
Expand Down
10 changes: 10 additions & 0 deletions Resources/doc/1-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,13 @@ sulu_community_api:
resource: "@SuluCommunityBundle/Resources/config/routing_api.xml"
prefix: /admin/api
```
## Create database tables
Execute the following command to get the sqls to update your database.
```bash
php bin/console doctrine:schema:update --dump-sql
```

You can use `--force` to run the sqls but be carefully which other sql statements are executed.
9 changes: 5 additions & 4 deletions Resources/doc/2-setup-webspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ sulu_community:
webspaces:
<webspace_key>:
from:
name: 'Website'
email: %sulu_admin.email%
name: "Website"
email: "%sulu_admin.email%"
```
## Enable Security
Expand Down Expand Up @@ -63,7 +63,7 @@ security:
path: /logout
target: /
remember_me:
secret: '%secret%'
secret: "%secret%"
lifetime: 604800 # 1 week in seconds
path: /

Expand All @@ -77,5 +77,6 @@ sulu_security:
Create user roles with the following command:
```bash
app/console sulu:community:init
php bin/console sulu:community:init
```

8 changes: 4 additions & 4 deletions Resources/doc/3-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ sulu_community:
webspaces:
<webspace_key>:
from:
name: 'Website'
email: %sulu_admin.email%
name: "Website"
email: "%sulu_admin.email%"
to:
name: 'Admin'
email: %sulu_admin.email%
name: "Admin"
email: "%sulu_admin.email%"
role: CustomRoleName
firewall: CustomFirewallName

Expand Down

0 comments on commit 0991baa

Please sign in to comment.