Add information about item slug (readonly)

This commit is contained in:
Christophe Boulanger 2018-05-18 09:57:11 +02:00
parent 84344449ba
commit 56d1128203
3 changed files with 16 additions and 7 deletions

View File

@ -15,6 +15,9 @@
{% block content %}
<p style="color:red">{% trans 'SLUG (readonly item id)'%}&nbsp;:&nbsp;
<b>{{object.slug}}</b></p><hr />
<p>
<form method="post" enctype="multipart/form-data">
<div id="form-content">
{% csrf_token %}
@ -26,5 +29,6 @@
<button>{% trans "Cancel" %}</button>
</div>
{% endblock %}
</form>
{% endblock %}
</form>
</p>
{% endblock %}

View File

@ -10,7 +10,7 @@
</thead>
<tbody>
{% for destination in object.get_destination_terms %}
<tr><td><a href="{% url 'destinationterm-update' pk=destination.id connector_slug=object.slug %}">{{destination.text}}</a></td><td>{{destination.price}}</td><td>{{destination.description}}</td>
<tr><td><a href="{% url 'destinationterm-update' pk=destination.id connector_slug=object.slug %}" title="{{destination.slug}}">{{destination.text}}</a></td><td>{{destination.price}}</td><td>{{destination.description}}</td>
<td>{{destination.paymentrequired}}</td>
<td><a rel="popup" href="{% url 'destinationterm-delete' pk=destination.id connector_slug=object.slug %}" class="icon-remove-sign"></a></td>
</tr>
@ -29,7 +29,9 @@
</thead>
<tbody>
{% for motivation in object.get_motivation_terms %}
<tr><td><a href="{% url 'motivationterm-update' pk=motivation.id connector_slug=object.slug %}">{{motivation.text}}</a></td><td>{{motivation.price}}</td><td>{{motivation.description}}</td>
<tr><td><a href="{% url 'motivationterm-update' pk=motivation.id connector_slug=object.slug %}" title="{{motivation.slug}}">{{motivation.text}}</a></td>
<td>{{motivation.price}}</td>
<td>{{motivation.description}}</td>
<td><a rel="popup" href="{% url 'motivationterm-delete' pk=motivation.id connector_slug=object.slug %}" class="icon-remove-sign"></a></td>
</tr>
{% endfor %}

View File

@ -14,7 +14,9 @@
{% block content %}
<p style="color:red">{% trans 'SLUG (readonly item id)'%}&nbsp;:&nbsp;
<b>{{object.slug}}</b></p><hr />
<p>
<form method="post" enctype="multipart/form-data">
<div id="form-content">
{% csrf_token %}
@ -27,7 +29,8 @@
<!--a class="cancel" href="{{ resource.get_absolute_url }}">{% trans 'Cancel' %}</a-->
</div>
{% endblock %}
</form>
</form>
</p>
{% endblock %}
{% endblock %}