Sha256: 0d11f1940e2f52f5070748fd97c2fe2aeabcc6aac8c68baa92adbb3fc7984cb4
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
<script> function deleteTopic(topic_id){ if (confirm("Are you sure you want to delete this help topic?")){ formObj = document.getElementById("deleteForm"); formObj.submit(); } } </script> <%= form_for @topic do |f| %> <h2>Editing Topic</h2> <%= render 'shared/error_messages', :object => f.object %><br/> <%= render 'fields', :f => f %> <br/> <%= f.submit "Edit Topic" %> <input type="button" class="redButton" value="Delete" onclick="deleteTopic(<%= @topic.id %>)"> <input type="button" value="Cancel" onclick="document.location='<%= topics_path %>'"> <% end %> <%= form_tag(topic_path, :method => :delete, :id => "deleteForm") %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
help_popups-1.0.0 | app/views/help_popups/topics/edit.html.erb |
help_popups-0.1.1 | app/views/help_popups/topics/edit.html.erb |
help_popups-0.1.0 | app/views/help_popups/topics/edit.html.erb |