Projet

Général

Profil

0001-wcs-don-t-add-links-to-unreachable-forms-28778.patch

Frédéric Péters, 08 décembre 2018 15:26

Télécharger (1,64 ko)

Voir les différences:

Subject: [PATCH] wcs: don't add links to unreachable forms (#28778)

 combo/apps/wcs/templates/combo/wcs/list_of_forms.html | 2 +-
 data/themes/gadjo/static/css/agent-portal.scss        | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
combo/apps/wcs/templates/combo/wcs/list_of_forms.html
4 4
  {% for data in forms.data|dictsortreversed:"form_receipt_datetime" %}
5 5
  {% if data.url and data.title %}
6 6
  <li class="{{data.status_css_class}} {% if data.form_status_is_endpoint %}done{% endif %}"><a
7
      href="{{ data.url }}"><span class="form-title">{{data.name}}</span>
7
      {% if data.readable %}href="{{ data.url }}"{% endif %}><span class="form-title">{{data.name}}</span>
8 8
    <span class="form-number">{{data.form_number}}</span>
9 9
    <span class="form-status">{{data.status}}</span></a></li>
10 10
  {% endif %}
data/themes/gadjo/static/css/agent-portal.scss
170 170
				display: block;
171 171
				padding: 1rem;
172 172
				border: none;
173
				&:not([href]) {
174
					color: inherit;
175
				}
173 176
			}
174 177

  
175 178
			&:hover {
176
-