diff --git a/app/views/learning_objects/show.html.erb b/app/views/learning_objects/show.html.erb index 185f660505b0826c7594d2bc1ba398c1de35efb7..ee0f8edcf10ba9c47b9670b1a0730b72632fd55f 100644 --- a/app/views/learning_objects/show.html.erb +++ b/app/views/learning_objects/show.html.erb @@ -73,14 +73,20 @@ </a> </div> <div class="col-md-3 action"> - <a tabindex="0" class="btn btn-default btn-xs add_to_collection" role="button" data-toggle="popover" data-placement="left" title="Adicionar as coleções" data-loid="<%= @learning_object.id %>" data-poload="/learning_objects/<%= ERB::Util.url_encode(@learning_object.id) %>/collections.json"> + <a tabindex="0" class="add_to_collection" role="button" data-toggle="popover" data-placement="left" title="Adicionar as coleções" data-loid="<%= @learning_object.id %>" data-poload="/learning_objects/<%= ERB::Util.url_encode(@learning_object.id) %>/collections.json"> <%= image_tag "icons/collection-add.png", alt: "Adicionar à coleção" %> <h6>adicionar à coleção</h6> </a> </div> <div class="col-md-3 action"> - <%= render "complaints/complaints_button" %> - <h6>denunciar objeto</h6> + <button type="button" class="btn btn-default btn-xs add_to_complaint " data-toggle="button" data-trigger="click" aria-pressed="false" autocomplete="off" title="Denunciar Objeto" border-style: "none" style='background-color: transparent !important; border: 0' > + <%= image_tag "icons/report-circle.png", alt: "Denunciar objeto" %> + <h6 style="color: #F05A28">denunciar objeto</h6> + </button> + + <div id="complaints_list_popover" class="popover"> + <%= render 'complaints/form' %> + </div> </div> </div> </div>