From: Jérémy Fabre Date: Mon, 3 Oct 2016 09:28:01 +0000 (+0200) Subject: Candidacies list X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=068ce6074a38875b74e01e657c83ffbbc9c456f4;p=mezzo.git Candidacies list --- diff --git a/app/static/src/sass/modules/boxes/_job-line-box.scss b/app/static/src/sass/modules/boxes/_job-line-box.scss index ca86cf74..ad9b142a 100644 --- a/app/static/src/sass/modules/boxes/_job-line-box.scss +++ b/app/static/src/sass/modules/boxes/_job-line-box.scss @@ -18,6 +18,16 @@ $module: ".job-line-box"; } + &--candidacy { + + #{$module}__title { + + @include margin-top(0); + + } + + } + &__title { @include margin-bottom(1); diff --git a/app/templates/job/candidacy_list.html b/app/templates/job/candidacy_list.html index 6dc1f4f7..2dc4c4b6 100644 --- a/app/templates/job/candidacy_list.html +++ b/app/templates/job/candidacy_list.html @@ -7,6 +7,13 @@ {{ candidacy.description }} {% endmetablock %}{% endblock %} +{% block breadcrumb_menu %} + {{block.super}} + +{% endblock %} + {% block page_class %} candidacy {% endblock %} diff --git a/app/templates/job/inc/candidacy_card.html b/app/templates/job/inc/candidacy_card.html index d58e19df..1091a82d 100644 --- a/app/templates/job/inc/candidacy_card.html +++ b/app/templates/job/inc/candidacy_card.html @@ -1,27 +1,38 @@ {% load i18n mezzanine_tags keyword_tags pages_tags organization_tags %} -
- {% with content.images.all|get_type:'card' as images %} - {% if images %} - {{ content.title }} - {% endif %} - {% endwith %} -

{{ content.title }}

-
- {# TODO à refaire en template tag #} - {% if content.date_from and content.date_to %} - {% trans "From" %} {{ content.date_from|date:"DATE_FORMAT" }} {% trans "to" %} {{ content.date_to|date:"DATE_FORMAT" }}
- {% elif content.date_from %} - {% trans "From" %} {{ content.date_from|date:"DATE_FORMAT" }}
- {% elif content.date_to %} - {% trans "until" %}{{ content.date_to|date:"DATE_FORMAT" }}
- {% endif %} - {{ content.description|slice:":500" }} +
+ +
+
+ + {% with content.images.all|get_type:'card' as images %} + {% if images %} + {{ content.title }} + {% endif %} + {% endwith %} + +
+
+ +

{{ content.title }}

+
+ {% if content.date_from and content.date_to %} + {% trans "From" %} {{ content.date_from|date:"DATE_FORMAT" }} {% trans "to" %} {{ content.date_to|date:"DATE_FORMAT" }}
+ {% elif content.date_from %} + {% trans "From" %} {{ content.date_from|date:"DATE_FORMAT" }}
+ {% elif content.date_to %} + {% trans "until" %}{{ content.date_to|date:"DATE_FORMAT" }}
+ {% endif %} +
+ {{ content.description }} +
+ {% if content.external_content and content.text_button_external %} + {{ content.text_button_external }} + {% endif %} + {% if content.content_object and content.text_button_internal %} + {{ content.text_button_internal }} + {% endif %} + +
-
- {% if content.external_content and content.text_button_external %} - {{ content.text_button_external }} - {% endif %} - {% if content.content_object and content.text_button_internal %} - {{ content.text_button_internal }} - {% endif %} +