add link to ticket in ticket edition popup (#77950) #6
|
@ -6,7 +6,7 @@
|
||||||
{% if issue.info.doc_focus %}<span class="icon doc"></span>{% endif %}
|
{% if issue.info.doc_focus %}<span class="icon doc"></span>{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="type">
|
<td class="type">
|
||||||
{{ issue.info.issue_type }}
|
{{ issue.info.issue_type|default:"" }}
|
||||||
|
|||||||
</td>
|
</td>
|
||||||
<td class="issue"><a href="{{ issue.url }}">#{{ issue.id }}</a></td>
|
<td class="issue"><a href="{{ issue.url }}">#{{ issue.id }}</a></td>
|
||||||
<td class="subject">
|
<td class="subject">
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
{% extends "scrutiny/base.html" %}
|
{% extends "scrutiny/base.html" %}
|
||||||
|
{% load gadjo %}
|
||||||
|
|
||||||
{% block appbar %}
|
{% block appbar %}
|
||||||
<h2>Infos du ticket #{{ form.instance.issue_id }}</h2>
|
<h2>Infos du ticket #{{ issue.id }}</h2>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
|
<p><a href="{{ issue.url }}">{{ issue.url }}</a></p>
|
||||||
tnoel
commented
Pour montrer que j'ai tout relu je signale qu'il manque un espace entre issue.url et }}. Pour montrer que j'ai tout relu je signale qu'il manque un espace entre issue.url et }}.
lguerin
commented
et il manquait aussi la ref du ticket dans le message de commit :) et il manquait aussi la ref du ticket dans le message de commit :)
|
|||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form|with_template }}
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<button class="submit-button">Enregistrer</button>
|
<button class="submit-button">Enregistrer</button>
|
||||||
<a class="cancel" href="/">Annuler</a>
|
<a class="cancel" href="/">Annuler</a>
|
||||||
|
|
|
@ -361,6 +361,10 @@ class IssueInfoUpdate(FormView):
|
||||||
self.issue = Issue(kwargs['issue_id'])
|
self.issue = Issue(kwargs['issue_id'])
|
||||||
return super().dispatch(request, *args, **kwargs)
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
|
def get_context_data(self, **kwargs):
|
||||||
|
kwargs['issue'] = self.issue
|
||||||
|
return super().get_context_data(**kwargs)
|
||||||
|
|
||||||
def get_form_kwargs(self):
|
def get_form_kwargs(self):
|
||||||
info, created = IssueInfo.objects.get_or_create(issue_id=self.issue.id)
|
info, created = IssueInfo.objects.get_or_create(issue_id=self.issue.id)
|
||||||
kwargs = super().get_form_kwargs()
|
kwargs = super().get_form_kwargs()
|
||||||
|
|
Loading…
Reference in New Issue
au passage, sinon, si on ne fait qu'afficher la popup et la fermer, ça affiche None au refresh de la page