Skip to content

Commit

Permalink
manage resource modified
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijitbonik committed Jun 12, 2018
1 parent 18f764b commit 4c5ef98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions BasicArticle/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def edit_article(request, pk):
message = "transition doesn' exist"
except States.DoesNotExist:
message = "state doesn' exist"
if to_state.name == 'publish':
IndexDocuments(article.pk, article.title, article.body, article.created_at)
#if to_state.name == 'publish':
#IndexDocuments(article.pk, article.title, article.body, article.created_at)
return redirect('article_view',pk=pk)
else:
message=""
Expand Down
6 changes: 0 additions & 6 deletions templates/manage_resource.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@
<li><a href="#"> <form id="manageresources" name="nodeidform" method="post" >
{% csrf_token %}
<span>{{node.name}}</span>
<input type="hidden" id="nodeid" name="nodeid" value = {{node.id}} >
<input type="submit" class="btn btn-link" value =" {{node.id}} ">
{% if node.is_leaf_node %}
<i class="fa fa-edit EditTopicDialog" style="color: red;" data-toggle="modal" data-id = {{ node.id }} data-target="#modalEditTopic" data-whatever="@mdo"></i>
<i class="fa fa-trash DeleteTopicDialog" style="color: red;" data-toggle="modal" data-id = {{ node.id }} data-target="#modalDeleteTopic" data-whatever="@mdo"></i>
{%endif%}
</form>
</a>
{% if not node.is_leaf_node %}
Expand Down

0 comments on commit 4c5ef98

Please sign in to comment.