improve layout of view page (address)

This commit is contained in:
Julien Fastré 2017-08-19 20:15:15 +02:00
parent c72813557b
commit b5ad33e521
5 changed files with 36 additions and 28 deletions

View File

@ -49,22 +49,23 @@ div#person_details_container {
div.person-view { div.person-view {
/* custom fields on the home page */ } /* custom fields on the home page */ }
div.person-view figure.person-details h2 { div.person-view figure.person-details {
font-family: 'Open Sans'; /* background-color: $black;
font-weight: 600; padding-top: 0.2em;
margin-bottom: 0.3em; padding-bottom: 0.2em;
font-variant: small-caps; } }*/ }
div.person-view figure.person-details dl { div.person-view figure.person-details h2 {
margin-top: 0.3em; } font-family: 'Open Sans';
div.person-view figure.person-details dt { font-weight: 600;
font-family: 'Open Sans'; margin-bottom: 0.3em;
font-weight: 600; } font-variant: small-caps; }
div.person-view figure.person-details dd { div.person-view figure.person-details dl {
margin-left: 0; } margin-top: 0.3em; }
div.person-view figure.person-details a.sc-button { div.person-view figure.person-details dt {
background-color: #000; font-family: 'Open Sans';
padding-top: 0.2em; font-weight: 600; }
padding-bottom: 0.2em; } div.person-view figure.person-details dd {
margin-left: 0; }
div.person-view div.custom-fields figure.person-details { div.person-view div.custom-fields figure.person-details {
display: flex; display: flex;
flex-flow: row wrap; } flex-flow: row wrap; }

View File

@ -1,7 +1,7 @@
{ {
"version": 3, "version": 3,
"mappings": "AAkBE,wGAA+B;EAC7B,KAAK,EAJI,OAAO;;AAGlB,yGAA+B;EAC7B,KAAK,EAJY,OAAO;;AAG1B,iBAA+B;EAC7B,KAAK,EAJoB,OAAO;;AAGlC,aAA+B;EAC7B,KAAK,EAJ4B,OAAO;;AAG1C,0GAA+B;EAC7B,KAAK,EAJoC,OAAO;;AAGlD,uGAA+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,O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OAAO;;AAG1E,WAA+B;EAC7B,KAAK,EAJoE,OAAO;;AAGlF,gBAA+B;EAC7B,KAAK,EAJ4E,OAAO;;AAG1F,iBAA+B;EAC7B,KAAK,EAJoF,OAAO;;ACZpG,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;;AAGvB,4BAA6B;EAC5B,WAAW,EAAE,IAAI;EACjB,cAAc,EAAE,IAAI;;AAGrB,eAAgB;EA6BZ,oCAAoC;EA5BpC,qCAAsB;IAsB1B;;;mBAGe;IAxBH,wCAAG;MACC,WAAW,EAAE,WAAW;MACxB,WAAW,EAAE,GAAG;MAChB,aAAa,EAAE,KAAK;MACpB,YAAY,EAAE,UAAU;IAG5B,wCAAG;MACK,UAAU,EAAE,KAAK;IAGzB,wCAAG;MACH,WAAW,EAAE,WAAW;MACxB,WAAW,EAAE,GAAG;IAGhB,wCAAG;MACK,WAAW,EAAE,CAAC;EAY1B,uDAAsB;IAClB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,QAAQ;IAkBnB,wFAAgC;MAC5B,KAAK,EAAE,GAAG;MACV,YAAY,EAAE,IAAI;IAGtB,uFAAgC;MAC5B,KAAK,EAAE,gBAAgB",
"sources": ["../../../../main/Resources/public/sass/custom/config/_colors.scss","../sass/person.scss","../../../../main/Resources/public/sass/config/_colors.scss"], "sources": ["../../../../main/Resources/public/sass/custom/config/_colors.scss","../sass/person.scss"],
"names": [], "names": [],
"file": "person.css" "file": "person.css"
} }

View File

@ -42,11 +42,11 @@ div.person-view {
margin-left: 0; margin-left: 0;
} }
a.sc-button { // a.sc-button {
background-color: $black; /* background-color: $black;
padding-top: 0.2em; padding-top: 0.2em;
padding-bottom: 0.2em; padding-bottom: 0.2em;
} }*/
} }
/* custom fields on the home page */ /* custom fields on the home page */

View File

@ -173,12 +173,19 @@ This view should receive those arguments:
<dd> <dd>
{%- if person.lastAddress is not empty -%} {%- if person.lastAddress is not empty -%}
{{ address._render(person.lastAddress) }} {{ address._render(person.lastAddress) }}
<a href="{{ path('chill_person_address_edit', { 'person_id': person.id, 'address_id' : person.lastAddress.id } ) }}">
{{ 'Edit'|trans }} <ul class="record_actions record_actions_small">
</a><br/> <li>
<a href="{{ path('chill_person_address_list', { 'person_id': person.id } ) }}"> <a href="{{ path('chill_person_address_edit', { 'person_id': person.id, 'address_id' : person.lastAddress.id } ) }}" class="sc-button has-hidden button-small bt-edit">
{{ 'Addresses\'history'|trans }} <span class="show-on-hover">{{ 'Edit'|trans }}</span>
</a> </a>
</li>
<li>
<a href="{{ path('chill_person_address_list', { 'person_id': person.id } ) }}" class="sc-button has-hidden button-small">
<i class="fa fa-list" aria-hidden="true"></i><span class="show-on-hover">{{ "Addresses'history"|trans }}</span>
</a>
</li>
</ul>
{%- else -%} {%- else -%}
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span> <span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
<a href="{{ path('chill_person_address_new', { 'person_id' : person.id } ) }}" class=""> <a href="{{ path('chill_person_address_new', { 'person_id' : person.id } ) }}" class="">

View File

@ -1,6 +1,6 @@
<div class="grid-8 centered" style="text-align:center; margin-top: 1.5em;"> <div class="grid-8 centered" style="text-align:center; margin-top: 1.5em;">
<a href="{{ path('chill_person_new') }}"> <a href="{{ path('chill_person_new') }}">
<div class="grid-3 sc-button blue" style="float: inherit;"> <div class="sc-button blue" style="float: inherit;">
{{ 'Add a person'|trans }} {{ 'Add a person'|trans }}
</div> </div>
</a> </a>