diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/static/media/styles.css | 4 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/sheet_organization.html | 22 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/sheet_person.html | 73 | 
3 files changed, 51 insertions, 48 deletions
diff --git a/ishtar_common/static/media/styles.css b/ishtar_common/static/media/styles.css index 3db227c99..771a13747 100644 --- a/ishtar_common/static/media/styles.css +++ b/ishtar_common/static/media/styles.css @@ -90,10 +90,6 @@ div#foot{      text-align: center;  } -.sheet{ -    font-size: 0.9em; -} -  .sheet .card-body{      padding: 0.5em;  } diff --git a/ishtar_common/templates/ishtar/sheet_organization.html b/ishtar_common/templates/ishtar/sheet_organization.html index 403eb7dec..483a97ef1 100644 --- a/ishtar_common/templates/ishtar/sheet_organization.html +++ b/ishtar_common/templates/ishtar/sheet_organization.html @@ -1,18 +1,22 @@  {% extends "ishtar/sheet.html" %} -{% load i18n window_header window_tables %} +{% load i18n window_header window_field window_tables %} -{% block head_title %}{% trans "Organization" %}{% endblock %} +{% block head_title %}{% trans "Organization:" %} {{item.name}}{% endblock %} -{% block content %} +{% block toolbar %}  {% window_nav item window_id 'show-organization' 'organization_modify' %} -<p><label>{% trans "Name" %}</label> <span class='value'>{{item.name}}</span></p> -<p><label>{%trans "Created by:"%}</label> <span class='value'>{{ item.history_creator.ishtaruser.person }}</span></p> -{% include "ishtar/blocks/sheet_address_section.html" %} -{% if item.phone %}<p><label>{% trans "Phone" %}</label> <span class='value'>{{item.phone}}</span></p> {% endif %} -{% if item.mobile_phone %}<p><label>{% trans "Mobile phone" %}</label> <span class='value'>{{item.mobile_phone}}</span></p> {% endif %} +{% endblock %} +{% block content %} +<div class="row"> +  {% field_flex "Name" item.name %} +  {% field_flex_detail "Created by" item.history_creator.ishtaruser.person %} +  {% include "ishtar/blocks/sheet_address_section.html" %} +  {% field_flex "Phone" item.phone %} +  {% field_flex "Mobile phone" item.mobile_phone %} +</div> -<table class='simple'> +<table class='table table-striped'>    <caption>{%trans "Person in the organization"%}</caption>    <tr>      <th>{% trans "Name" %}</th> diff --git a/ishtar_common/templates/ishtar/sheet_person.html b/ishtar_common/templates/ishtar/sheet_person.html index aa5192dc4..b9a7055b8 100644 --- a/ishtar_common/templates/ishtar/sheet_person.html +++ b/ishtar_common/templates/ishtar/sheet_person.html @@ -1,23 +1,26 @@  {% extends "ishtar/sheet.html" %}  {% load i18n window_field window_tables window_header %} -{% block head_title %}{% trans "Person"%}{% endblock %} -{% block content %} +{% block head_title %}{% trans "Person:"%} {{item}}{% endblock %} + +{% block toolbar %}  {% window_nav item window_id 'show-person' 'person_modify' %} -<h3>{% trans "Identity" %}</h3> - -<ul class='form-flex'> -{% field_li "Title" item.full_title %} -{% field_li "Name" item.name %} -{% field_li "Surname" item.surname %} -{% field_li "Raw name" item.raw_name %} -{% field_li_detail "Created by" item.history_creator.ishtaruser.person %} -{% field_li "Email" item.email %} -{% field_li "Type(s)" item.person_types_list %} -</ul> +{% endblock %} + +{% block content %} + +<div class="row"> +{% field_flex "Title" item.full_title %} +{% field_flex "Name" item.name %} +{% field_flex "Surname" item.surname %} +{% field_flex "Raw name" item.raw_name %} +{% field_flex_detail "Created by" item.history_creator.ishtaruser.person %} +{% field_flex "Email" item.email %} +{% field_flex "Type(s)" item.person_types_list %} +</div>  {% if item.phone or item.phone2 or item.phone3 or item.mobile_phone %} -<table class='formset table-form'> +<table class='table table-striped'>    <caption>{% trans "Phone" %}</caption>    <tr>      <th>{% trans "Phone type" %}</th> @@ -44,33 +47,33 @@  {% if item.address or item.postal_code or item.town %}  <h3>{% trans "Business address" %}</h3> -<ul class='form-flex'> -    {% field_li "Address" item.address %} -    {% field_li "Address complement" item.address_complement %} -    {% field_li "Postal code" item.postal_code %} -    {% field_li "Town" item.town %} -</ul>{% endif %} +<div class="row"> +    {% field_flex "Address" item.address %} +    {% field_flex "Address complement" item.address_complement %} +    {% field_flex "Postal code" item.postal_code %} +    {% field_flex "Town" item.town %} +</div>{% endif %}  {% if item.alt_address or item.alt_postal_code or item.alt_town %}  <h3>{% trans "Other address" %}</h3> -<ul class='form-flex'> -    {% field_li "Address" item.alt_address %} -    {% field_li "Address complement" item.alt_address_complement %} -    {% field_li "Postal code" item.alt_postal_code %} -    {% field_li "Town" item.alt_town %} -</ul>{% endif %} +<div class="row"> +    {% field_flex "Address" item.alt_address %} +    {% field_flex "Address complement" item.alt_address_complement %} +    {% field_flex "Postal code" item.alt_postal_code %} +    {% field_flex "Town" item.alt_town %} +</div>{% endif %}  {% if item.attached_to %}<h3>{% trans "Associated organization"%}</h3> -<ul class='form-flex'> -    {% field_li_detail "Name" item.attached_to %} -    {% field_li "Address" item.attached_to.address %} -    {% field_li "Address complement" item.attached_to.address_complement %} -    {% field_li "Postal code" item.attached_to.postal_code %} -    {% field_li "Town" item.attached_to.town %} -    {% field_li "Phone" item.attached_to.phone %} -    {% field_li "Mobile phone" item.attached_to.mobile_phone %} -</ul>{% endif %} +<div class="row"> +    {% field_flex_detail "Name" item.attached_to %} +    {% field_flex "Address" item.attached_to.address %} +    {% field_flex "Address complement" item.attached_to.address_complement %} +    {% field_flex "Postal code" item.attached_to.postal_code %} +    {% field_flex "Town" item.attached_to.town %} +    {% field_flex "Phone" item.attached_to.phone %} +    {% field_flex "Mobile phone" item.attached_to.mobile_phone %} +</div>{% endif %}  {% trans "Associated operations as scientist" as ao %}  | 
