Skip to content
This repository has been archived by the owner on Mar 9, 2018. It is now read-only.

Commit

Permalink
upload to point refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rlbaltha committed Apr 17, 2015
1 parent 34eaf85 commit 1c5cfce
Show file tree
Hide file tree
Showing 25 changed files with 459 additions and 195 deletions.
1 change: 1 addition & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function registerBundles()
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
new JMS\DiExtraBundle\JMSDiExtraBundle($this),
new Vich\UploaderBundle\VichUploaderBundle(),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new AppBundle\AppBundle(),
);

Expand Down
4 changes: 2 additions & 2 deletions app/Resources/FOSUserBundle/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@


<body>
<div class="col-xs-offset-2 col-xs-8" style="margin-top: 20px;">
<img src="http://vintageathens.mynmi.net/img/logowhite.png" class="img-responsive" alt="Responsive image">
<div class="col-xs-offset-2 col-xs-8 col-sm-offset-2 col-sm-8" style="margin-top: 20px;">
<img src="http://vintageathens.mynmi.net/img/logowhite.png" class="img-responsive" alt="Vintage Logo Responsive image">
</div>
<div class="col-sm-4 col-xs-12 center">
{% for type, messages in app.session.flashBag.all %}
Expand Down
5 changes: 2 additions & 3 deletions app/Resources/views/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@
{% if is_granted('ROLE_ADMIN') %}
<li><a href="{{ path('location') }}">Locations</a></li>
{% endif %}
<li><a href="{{ path('point') }}">Points</a></li>
<li><a href="{{ path('mypoints') }}">My Points</a></li>
<li><a title='Upload' href="{{ path('file_new') }}"><i class="glyphicon glyphicon-upload"></i> Upload</a></li>
<li><a href="{{ path('file') }}">Points</a></li>
<li><a href="{{ path('myuploads') }}">My Points</a></li>
<li>
<a href="{{ path('fos_user_security_logout') }}">
{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
Expand Down
8 changes: 8 additions & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ doctrine:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true

# Doctrine extensions
stof_doctrine_extensions:
default_locale: en_US
orm:
default:
timestampable: true


# Swiftmailer Configuration
swiftmailer:
transport: "%mailer_transport%"
Expand Down
6 changes: 4 additions & 2 deletions app/config/config_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ monolog:
assetic:
use_controller: true

#swiftmailer:
# delivery_address: [email protected]
swiftmailer:
transport: "%mailer_transport%"
username: "%mailer_user%"
password: "%mailer_password%"
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"sensio/distribution-bundle": "~3.0,>=3.0.12",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"stof/doctrine-extensions-bundle": "dev-master",
"stof/doctrine-extensions-bundle": "~1.1@dev",
"friendsofsymfony/user-bundle": "~2.0@dev",
"jms/serializer-bundle": "0.13.*@dev",
"jms/security-extra-bundle": "dev-master",
Expand Down
70 changes: 34 additions & 36 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1c5cfce

Please sign in to comment.