Commit c2a45e45 by Őry Máté

dashboard: fix icon on operate template

fixes #174
parent d48175e1
...@@ -19,6 +19,6 @@ Do you want to do the following operation on {{obj}}: ...@@ -19,6 +19,6 @@ Do you want to do the following operation on {{obj}}:
<div class="pull-right"> <div class="pull-right">
<a class="btn btn-default" href="{{object.get_absolute_url}}" <a class="btn btn-default" href="{{object.get_absolute_url}}"
data-dismiss="modal">{% trans "Cancel" %}</a> data-dismiss="modal">{% trans "Cancel" %}</a>
<button class="btn btn-danger" type="submit">{% if op.icon %}<i class="icon-{{op.icon}}"></i> {% endif %}{{ op|capfirst }}</button> <button class="btn btn-danger" type="submit">{% if opview.icon %}<i class="icon-{{opview.icon}}"></i> {% endif %}{{ op|capfirst }}</button>
</div> </div>
</form> </form>
...@@ -536,6 +536,7 @@ class OperationView(DetailView): ...@@ -536,6 +536,7 @@ class OperationView(DetailView):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
ctx = super(OperationView, self).get_context_data(**kwargs) ctx = super(OperationView, self).get_context_data(**kwargs)
ctx['op'] = self.get_op() ctx['op'] = self.get_op()
ctx['opview'] = self
ctx['url'] = self.request.path ctx['url'] = self.request.path
return ctx return ctx
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment