PHRAS-2829 lightbox-mobile nw design

This commit is contained in:
Harrys Ravalomanana
2019-11-21 17:30:07 +04:00
parent b98d51397d
commit 443fce14da
5 changed files with 21 additions and 6 deletions

View File

@@ -25,6 +25,9 @@ li.image_box{
margin:0px 15px 15px 0px; margin:0px 15px 15px 0px;
padding:0px; padding:0px;
text-align:center; text-align:center;
.thumb_wrapper {
background: #ededed;
}
} }
a.no.active_choice{ a.no.active_choice{
background-color:red; background-color:red;
@@ -45,10 +48,13 @@ a.active_choice{
} }
.valid_choice.agree{ .valid_choice.agree{
background-image: url('#{$iconsPath}ok.png'); background: #7ed321;
border-top-left-radius: 100px;
} }
.valid_choice.disagree{ .valid_choice.disagree{
background-image: url('#{$iconsPath}delete.png'); background: #d0021b;
border-top-left-radius: 100px;
}
} }
.thumb_wrapper { .thumb_wrapper {

View File

@@ -585,4 +585,9 @@ button.confirm_report {
min-height: 26px; min-height: 26px;
padding: 10px 0; padding: 10px 0;
} }
.ui-listview >.ui-li-static {
padding: .7em 1em;
text-overflow: inherit;
white-space: inherit;
}

View File

@@ -50,7 +50,6 @@
class="ui-btn-right jqm-home">{{ 'Home' | trans }}</a> class="ui-btn-right jqm-home">{{ 'Home' | trans }}</a>
</div> </div>
<div id="content" data-role="content"> <div id="content" data-role="content">
{{ thumbnail.format100percent(record.get_preview()) }}
<div class="nav_button"> <div class="nav_button">
{% if prevId != NULL %} {% if prevId != NULL %}
<a data-ajax="false" id="left-btn" <a data-ajax="false" id="left-btn"
@@ -64,6 +63,7 @@
{% endif %} {% endif %}
<div style="clear: both;"></div> <div style="clear: both;"></div>
</div> </div>
{{ thumbnail.format100percent(record.get_preview()) }}
{% if basket_element.getBasket().getValidation() %} {% if basket_element.getBasket().getValidation() %}
{% if basket_element.getBasket().getValidation().getParticipant(app.getAuthenticatedUser()).getCanAgree() %} {% if basket_element.getBasket().getValidation().getParticipant(app.getAuthenticatedUser()).getCanAgree() %}
<fieldset data-role="controlgroup" data-type="horizontal" style="text-align:center;"> <fieldset data-role="controlgroup" data-type="horizontal" style="text-align:center;">
@@ -81,7 +81,7 @@
</a> </a>
</div> </div>
<div> <div>
<ul data-role="listview" id="notes_{{basket_element.getId()}}"> <ul data-role="listview" class="lightbox-list-view" id="notes_{{basket_element.getId()}}">
{% include 'lightbox/sc_note.html.twig' %} {% include 'lightbox/sc_note.html.twig' %}
</ul> </ul>
</div> </div>

View File

@@ -8,7 +8,7 @@
{{ validationDatas.getParticipant().getUser().getDisplayName() }} {{ validationDatas.getParticipant().getUser().getDisplayName() }}
</h3> </h3>
{% if validationDatas.getNote() != '' %} {% if validationDatas.getNote() != '' %}
<p style="text-align:left;">{{ 'validation:: note' | trans }} : {{ validationDatas.getNote()|nl2br }}</p> <p style="text-align:left;">{{ 'validation:: note' | trans }} : {{ validationDatas.getNote()|nl2br }} </p>
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}

View File

@@ -38,6 +38,7 @@
{% set basket_length = basket.getElements().count() %} {% set basket_length = basket.getElements().count() %}
{% trans with {'%basket_length%' : basket_length} %}%basket_length% documents{% endtrans %} {% trans with {'%basket_length%' : basket_length} %}%basket_length% documents{% endtrans %}
</p> </p>
{% if basket.getValidation() %}
<div class="report_wrapper"> <div class="report_wrapper">
<a id="report_summary" class="report_btn report_summary" href="#" onclick="$.ajax({ <a id="report_summary" class="report_btn report_summary" href="#" onclick="$.ajax({
type: 'GET', type: 'GET',
@@ -60,7 +61,7 @@
{{ 'lightbox::list' | trans }} {{ 'lightbox::list' | trans }}
</a> </a>
</div> </div>
{% endif %}
<input type="hidden" id="navigation" value="{{ basket.getId() }}"> <input type="hidden" id="navigation" value="{{ basket.getId() }}">
<div id="report" class="summary_block"> <div id="report" class="summary_block">
<ul class="image_set"> <ul class="image_set">
@@ -78,6 +79,8 @@
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
</div>
<div class="btn-container"> <div class="btn-container">
{% if basket.getValidation() and basket.getValidation().getParticipant(app.getAuthenticatedUser()).getCanAgree() %} {% if basket.getValidation() and basket.getValidation().getParticipant(app.getAuthenticatedUser()).getCanAgree() %}
<button class="confirm_report" style="width:100%;" title="{{ 'validation::envoyer mon rapport' | trans }}"> <button class="confirm_report" style="width:100%;" title="{{ 'validation::envoyer mon rapport' | trans }}">
@@ -89,6 +92,7 @@
</div> </div>
<div class="report_list_backup" id="report_list_backup">&nbsp;</div> <div class="report_list_backup" id="report_list_backup">&nbsp;</div>
<div class="report_summary_backup " id="report_summary_backup">&nbsp;</div> <div class="report_summary_backup " id="report_summary_backup">&nbsp;</div>
</div> </div>
{% endblock %} {% endblock %}