From c7eabc847a9fb8d9670079dbc5aabbafb9424190 Mon Sep 17 00:00:00 2001 From: erikaheidi Date: Thu, 2 May 2013 09:05:57 +0200 Subject: [PATCH 1/2] small changes to layout --- INSTALL | 15 ++++ .../Resources/views/Job/list.html.twig | 3 +- .../Resources/views/Job/show.html.twig | 73 +++++++++++-------- web/css/main.css | 8 ++ 4 files changed, 69 insertions(+), 30 deletions(-) create mode 100644 INSTALL diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..fd3827e --- /dev/null +++ b/INSTALL @@ -0,0 +1,15 @@ + +On a regular development Ubuntu Apache2-PHP5-MySQL server + +* edit app/config/parameters.yml.default and save as parameters.yml +# curl -sS https://getcomposer.org/installer | php +# php composer.phar install +# sudo apt-get install php-apc +# php app/console doctrine:schema:create +# sudo apache2ctl restart +# chmod 777 app/logs/ +# chmod 777 app/cache/ + +* edit app/config/config.yml and add cache : false to the twig configuration + +For optimal result, create a VirtualHost pointing to job-board/web diff --git a/src/AmsterdamPHP/JobBundle/Resources/views/Job/list.html.twig b/src/AmsterdamPHP/JobBundle/Resources/views/Job/list.html.twig index db0e86b..391d9ed 100644 --- a/src/AmsterdamPHP/JobBundle/Resources/views/Job/list.html.twig +++ b/src/AmsterdamPHP/JobBundle/Resources/views/Job/list.html.twig @@ -1,4 +1,5 @@ - + +
diff --git a/src/AmsterdamPHP/JobBundle/Resources/views/Job/show.html.twig b/src/AmsterdamPHP/JobBundle/Resources/views/Job/show.html.twig index c40f5d1..475cee4 100644 --- a/src/AmsterdamPHP/JobBundle/Resources/views/Job/show.html.twig +++ b/src/AmsterdamPHP/JobBundle/Resources/views/Job/show.html.twig @@ -18,11 +18,17 @@ {% block body -%}
- + + {% if is_granted('OWNER', entity) or is_granted('ROLE_ADMIN') %} +
+
+ + +
+ {% endif %}

{{ entity.title }}

@@ -61,34 +67,43 @@

- {% if is_granted('OWNER', entity) or is_granted('ROLE_ADMIN') %} -
- Edit -
- - -
- {% endif %} -

Poster Info

-
- {% if entity.user.companyLogo %} - - - - {% else %} - - {% endif %} +
-
    -
  • Company name: {{ entity.user.companyName }}
  • -
  • Contact name: {{ entity.user.name }}
  • -
-
+ + Apply by Email + -
- {{ entity.user.companyBio }} + + Apply with LinkedIn + +
+ +
+ +
+ +
+ {% if entity.user.companyLogo %} + + + + {% else %} + + {% endif %} +
+
+

{{ entity.user.companyName }}

+

Contact: {{ entity.user.name }}

+
+

+
+ +
+ {{ entity.user.companyBio }} +
+
{% endblock %} diff --git a/web/css/main.css b/web/css/main.css index 25f8547..76f75ac 100644 --- a/web/css/main.css +++ b/web/css/main.css @@ -174,4 +174,12 @@ footer { section.content { margin-top: 50px; } +} + +/* Job Details */ + +div.userActions { + padding: 20px 10px; + + } \ No newline at end of file From 189088d79e2d200911721b2f9d3891918efd5269 Mon Sep 17 00:00:00 2001 From: erikaheidi Date: Sat, 4 May 2013 12:34:49 +0200 Subject: [PATCH 2/2] share buttons --- .../Resources/views/Job/show.html.twig | 74 +++++++++++++------ web/css/main.css | 6 +- 2 files changed, 55 insertions(+), 25 deletions(-) diff --git a/src/AmsterdamPHP/JobBundle/Resources/views/Job/show.html.twig b/src/AmsterdamPHP/JobBundle/Resources/views/Job/show.html.twig index 475cee4..b41d7aa 100644 --- a/src/AmsterdamPHP/JobBundle/Resources/views/Job/show.html.twig +++ b/src/AmsterdamPHP/JobBundle/Resources/views/Job/show.html.twig @@ -57,9 +57,6 @@
-
+
-
- {% if entity.user.companyLogo %} - - - - {% else %} - - {% endif %} -
-
-

{{ entity.user.companyName }}

-

Contact: {{ entity.user.name }}

-
-

+
+ {% if entity.user.companyLogo %} + + + + {% else %} + + {% endif %}
+
+

{{ entity.user.companyName }}

+

Contact: {{ entity.user.name }}

+
+

+
-
- {{ entity.user.companyBio }} -
+
+ {{ entity.user.companyBio }} +
+ {% endblock %} {% block javascripts %} @@ -123,5 +127,29 @@ + {% endblock %} diff --git a/web/css/main.css b/web/css/main.css index 76f75ac..3395b81 100644 --- a/web/css/main.css +++ b/web/css/main.css @@ -179,7 +179,9 @@ footer { /* Job Details */ div.userActions { - padding: 20px 10px; - + padding: 10px; +} +div.userActions p { + margin-top: 20px; } \ No newline at end of file
Title