Commit 7100627b by Őry Máté

Merge branch 'issue-174'


dashboard: fix icon on operate template
parents 4833c479 c2a45e45
...@@ -20,7 +20,7 @@ Do you want to do the following operation on {{obj}}: ...@@ -20,7 +20,7 @@ Do you want to do the following operation on {{obj}}:
<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" id="op-form-send"> <button class="btn btn-danger" type="submit" id="op-form-send">
{% if op.icon %}<i class="icon-{{op.icon}}"></i> {% endif %}{{ op|capfirst }} {% if opview.icon %}<i class="icon-{{opview.icon}}"></i> {% endif %}{{ op|capfirst }}
</button> </button>
</div> </div>
</form> </form>
...@@ -537,6 +537,7 @@ class OperationView(DetailView): ...@@ -537,6 +537,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