Commit ea532307 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Bug fix: runner update template call



The call to the runner update template in the view was wrong. I fixed
it. I tool as well the advantage of that fix to hide the command input
(the one used to register a runner on allgo) at the runner creation.
It's now possible to see it only when on the update view.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent c70ed1ae
......@@ -515,7 +515,7 @@ class RunnerUpdate(SuccessMessageMixin, LoginRequiredMixin, UpdateView):
form_class = RunnerForm
success_message = 'Runner updated successfully.'
success_url = reverse_lazy('main:runner_list')
template_name = 'runner_update_form.html'
template_name = 'runner_add_update.html'
def get_form_kwargs(self):
kwargs = super(RunnerUpdate, self).get_form_kwargs()
......
......@@ -39,6 +39,8 @@
{% endfor %}
</div>
{% url 'main:runner_create' as runner_url %}
{% if not request.get_full_path == runner_url %}
<div class="form-group">
<small id="runner-help" class="form-text text-muted">
In order to attach your runner to A||go, enter the following command line on your runner.
......@@ -56,6 +58,7 @@
</span>
</div>
</div>
{% endif %}
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment