apply button in agenda edit form
This commit is contained in:
parent
eaee6f9154
commit
0c931559a0
@ -26,6 +26,9 @@
|
|||||||
<button type="submit">
|
<button type="submit">
|
||||||
<span class="icon ok">{%trans 'Save' %}</span>
|
<span class="icon ok">{%trans 'Save' %}</span>
|
||||||
</button>
|
</button>
|
||||||
|
<button type="submit" name="apply">
|
||||||
|
<span class="icon ok">{%trans 'Apply' %}</span>
|
||||||
|
</button>
|
||||||
<a href='{% url item_overview %}'>
|
<a href='{% url item_overview %}'>
|
||||||
<button type="button">
|
<button type="button">
|
||||||
<span class="icon cancel">{%trans 'Cancel' %}</span>
|
<span class="icon cancel">{%trans 'Cancel' %}</span>
|
||||||
|
@ -215,7 +215,9 @@ def edit(request, item_id=None, form='ItemText', default=None):
|
|||||||
messages.success(request, _('Item was successfully modified.'))
|
messages.success(request, _('Item was successfully modified.'))
|
||||||
if "application" in request.POST:
|
if "application" in request.POST:
|
||||||
item.application.writelog(_('Agenda item modified'), request.user)
|
item.application.writelog(_('Agenda item modified'), request.user)
|
||||||
|
if not 'apply' in request.POST:
|
||||||
return redirect(reverse('item_overview'))
|
return redirect(reverse('item_overview'))
|
||||||
|
else:
|
||||||
messages.error(request, _('Please check the form for errors.'))
|
messages.error(request, _('Please check the form for errors.'))
|
||||||
else:
|
else:
|
||||||
initial = {}
|
initial = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user