Go back to lot detail when cancel lot edit
This commit is contained in:
Cayo Puigdefabregas 2022-03-04 13:51:05 +01:00
parent d98d09cc7d
commit 6b3ccee58f
1 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,11 @@
</div> </div>
<div class="col-12"> <div class="col-12">
{% if form.id %}
<a href="{{ url_for('inventory.devices.lotdevicelist', lot_id=form.id) }}" class="btn btn-danger">Cancel</a>
{% else %}
<a href="{{ url_for('inventory.devices.devicelist') }}" class="btn btn-danger">Cancel</a> <a href="{{ url_for('inventory.devices.devicelist') }}" class="btn btn-danger">Cancel</a>
{% endif %}
<button class="btn btn-primary" type="submit">Save</button> <button class="btn btn-primary" type="submit">Save</button>
</div> </div>
</form> </form>