Display person information respecting thibault style

This commit is contained in:
Marc Ducobu 2015-08-25 18:31:24 +02:00
parent 39a859d85e
commit f48563fee3
5 changed files with 99 additions and 22 deletions

View File

@ -1,3 +1,47 @@
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-blue {
color: #334d5c; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-green {
color: #43b29d; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-green-dark {
color: #328474; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-yellow {
color: #eec84a; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-orange {
color: #e2793d; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-red {
color: #df4949; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-gray {
color: #ececec; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-beige {
color: #cabb9f; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-pink {
color: #dd506d; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-dark-gray {
color: #333333; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/main\/Resources\/public\/sass\/custom\/config\/_colors\.scss}line{font-family:\0000318}}
.chill-light-gray {
color: #b2b2b2; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/person\/Resources\/public\/sass\/person\.scss}line{font-family:\000034}}
div#header-person-name {
background: none repeat scroll 0 0 #328474;
@ -12,4 +56,18 @@ div#header-person-details {
padding-top: 1em;
padding-bottom: 1em; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/person\/Resources\/public\/sass\/person\.scss}line{font-family:\0000319}}
figure.person-details h2 {
font-family: 'open_sansbold';
margin-bottom: 0.3em; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/person\/Resources\/public\/sass\/person\.scss}line{font-family:\0000324}}
figure.person-details dl {
margin-top: 0.3em; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/person\/Resources\/public\/sass\/person\.scss}line{font-family:\0000328}}
figure.person-details dt {
font-family: 'open_sansbold'; }
@media -sass-debug-info{filename{font-family:file\:\/\/\/Users\/marcu\/Projects\/Chill\/vendor\/chill-project\/person\/Resources\/public\/sass\/person\.scss}line{font-family:\0000332}}
figure.person-details dl {
margin-left: 0; }
/*# sourceMappingURL=person.css.map */

View File

@ -1,7 +1,7 @@
{
"version": 3,
"mappings": ";AAGA,sBAAuB;EACnB,UAAU,EAAE,8BAAwC;EACpD,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,GAAG;EAChB,cAAc,EAAE,GAAG;;;AAGvB,yBAA0B;EACtB,UAAU,EAAE,8BAAmC;EAC/C,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,GAAG;EAChB,cAAc,EAAE,GAAG",
"sources": ["../sass/person.scss"],
"mappings": ";AAiBE,WAA+B;EAC7B,KAAK,EAJI,OAAO;;;AAGlB,YAA+B;EAC7B,KAAK,EAJY,OAAO;;;AAG1B,iBAA+B;EAC7B,KAAK,EAJoB,OAAO;;;AAGlC,aAA+B;EAC7B,KAAK,EAJ4B,OAAO;;;AAG1C,aAA+B;EAC7B,KAAK,EAJoC,OAAO;;;AAGlD,UAA+B;EAC7B,KAAK,EAJ4C,OAAO;;;AAG1D,WAA+B;EAC7B,KAAK,EAJoD,OAAO;;;AAGlE,YAA+B;EAC7B,KAAK,EAJ4D,OAAO;;;AAG1E,WAA+B;EAC7B,KAAK,EAJoE,OAAO;;;AAGlF,gBAA+B;EAC7B,KAAK,EAJ4E,OAAO;;;AAG1F,iBAA+B;EAC7B,KAAK,EAJoF,OAAO;;;ACXpG,sBAAuB;EACnB,UAAU,EAAE,8BAAwC;EACpD,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,GAAG;EAChB,cAAc,EAAE,GAAG;;;AAGvB,yBAA0B;EACtB,UAAU,EAAE,8BAAmC;EAC/C,KAAK,EAAE,IAAI;EACX,WAAW,EAAE,GAAG;EAChB,cAAc,EAAE,GAAG;;;AAItB,wBAAG;EACF,WAAW,EAAE,eAAe;EAC5B,aAAa,EAAE,KAAK;;AAGrB,wBAAG;EACF,UAAU,EAAE,KAAK;;AAGlB,wBAAG;EACF,WAAW,EAAE,eAAe;;AAG7B,wBAAG;EACF,WAAW,EAAE,CAAC",
"sources": ["../../../../main/Resources/public/sass/custom/config/_colors.scss","../sass/person.scss"],
"names": [],
"file": "person.css"
}

View File

@ -13,4 +13,23 @@ div#header-person-details {
color: #FFF;
padding-top: 1em;
padding-bottom: 1em;
}
figure.person-details {
h2 {
font-family: 'open_sansbold';
margin-bottom: 0.3em;
}
dl {
margin-top: 0.3em;
}
dt {
font-family: 'open_sansbold';
}
dl {
margin-left: 0;
}
}

View File

@ -39,26 +39,26 @@ This view should receive those arguments:
{{ include(edit_tmp_name, edit_tmp_args) }}
{% endif %}
<figure>
<h2>{{ 'General information'|trans }}</h2>
<figure class="person-details">
<h2 class="chill-red">{{ 'General information'|trans|upper }}</h2>
<dl>
<dt class="inline">{{ 'First name'|trans }}</dt>
<dt>{{ 'First name'|trans }}</dt>
<dd>{{ person.firstName }}</dd>
<dt class="inline">{{ 'Last name'|trans }}</dt>
<dt>{{ 'Last name'|trans }}</dt>
<dd>{{ person.lastName }}</dd>
<dt class="inline">{{ 'Gender'|trans }}</dt>
<dt>{{ 'Gender'|trans }}</dt>
<dd>{{ ( person.gender|default('Not given'))|trans }}</dd>
</dl>
</figure>
<figure>
<h2>{{ 'Birth information'|trans }}</h2>
<figure class="person-details">
<h2 class="chill-green">{{ 'Birth information'|trans|upper }}</h2>
<dl>
<dt class="inline">{{ 'Date of birth'|trans }}</dt>
<dt>{{ 'Date of birth'|trans }}</dt>
<dd>
{%- if person.birthdate is not null -%}
{{ person.birthdate|localizeddate('long', 'none') }}
@ -68,7 +68,7 @@ This view should receive those arguments:
</dd>
<dt class="inline">{{ 'Place of birth'|trans }}</dt>
<dt>{{ 'Place of birth'|trans }}</dt>
<dd>{{ person.placeOfBirth }}</dd>
<dd>{% spaceless %}
@ -88,11 +88,11 @@ This view should receive those arguments:
{{ include(edit_tmp_name, edit_tmp_args) }}
{% endif %}
<figure>
<h2>{{ 'Administrative information'|trans }}</h2>
<figure class="person-details">
<h2 class="chill-orange">{{ 'Administrative information'|trans|upper }}</h2>
<dl>
<dt class="inline">{{ 'Nationality'|trans }}</dt>
<dt>{{ 'Nationality'|trans }}</dt>
<dd>
{% if person.nationality is not null %}
{{ person.nationality.name|localize_translatable_string }}
@ -102,7 +102,7 @@ This view should receive those arguments:
</dd>
</dl>
<dl>
<dt class="inline">{{'Spoken languages'|trans}}</dt>
<dt>{{'Spoken languages'|trans}}</dt>
<dd>
{% if person.spokenLanguages|length == 0 %}
{{ 'Unknown spoken languages'|trans }}
@ -114,7 +114,7 @@ This view should receive those arguments:
</dd>
</dl>
<dl>
<dt class="inline">{{'Marital status'|trans}}</dt>
<dt>{{'Marital status'|trans}}</dt>
<dd>
{% if person.maritalStatus is not null %}
{{ person.maritalStatus.name|localize_translatable_string }}
@ -129,15 +129,15 @@ This view should receive those arguments:
{{ include(edit_tmp_name, edit_tmp_args) }}
{% endif %}
<figure>
<h2>{{ 'Contact information'|trans }}</h2>
<figure class="person-details">
<h2 class="chill-blue">{{ 'Contact information'|trans|upper }}</h2>
<dl>
<dt class="inline">{{ 'Email'|trans }}</dt>
<dt>{{ 'Email'|trans }}</dt>
<dd><pre>{{ person.email}}&nbsp;</pre></dd>
</dl>
<dl>
<dt class="inline">{{ 'Phonenumber'|trans }}</dt>
<dt>{{ 'Phonenumber'|trans }}</dt>
<dd><pre>{{ person.phonenumber}}&nbsp;</pre></dd>
</dl>
@ -148,7 +148,7 @@ This view should receive those arguments:
{% endif %}
{% if cFGroup %}
<figure>
<figure class="person-details">
{% for customField in cFGroup.customFields %}
{% if customField.type == 'title' %}
{{ chill_custom_field_widget(person.cFData , customField) }}

View File

@ -21,7 +21,7 @@
active
{% endif %}
{% endspaceless %} ">
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans }}</a>
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans|upper }}</a>
</li>
{% endfor %}
</ul>