Skip to content

Commit

Permalink
Merge pull request #228 from saklar13/fix
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
saklar13 committed Aug 28, 2015
2 parents 90b8efb + 1409c5a commit afcb8ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project/templates/admin/vacancy.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
{% endfor %}
<input type="submit" class="btn btn-default" value="Сохранить">
</form>
<a href="{{ url_for("admin.delete_vacancy", id=entry.id)}}" class="btn btn-danger vacancy-delete" onclick="return confirm('Удалить вакансию?')">
{% if entry %}
<a href="{{ url_for('admin.delete_vacancy', id=entry.id)}}" class="btn btn-danger vacancy-delete" onclick="return confirm('Удалить вакансию?')">
Удалить
</a>
{% endif %}
{% endblock %}

0 comments on commit afcb8ba

Please sign in to comment.