<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #2661: delete dataset/group javascript confirm</title>
    <link>http://localhost/ticket/2661</link>
    <description>&lt;p&gt;
in 2375-demo-theme-development
&lt;/p&gt;
&lt;p&gt;
templates/package/confirm_delete.html needs to be made to look nice note some writing in black
&lt;/p&gt;
&lt;p&gt;
delete button needs nice home on dataset/edit
&lt;/p&gt;
&lt;p&gt;
you can add js support add ?confirm=yes to url on dataset button to force delete
&lt;/p&gt;
&lt;p&gt;
Please note delete is not yet implemented - but will be in the next few hours
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/2661</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Wed, 11 Jul 2012 13:45:27 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2661#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/2661#comment:1</guid>
      <description>
        &lt;p&gt;
@aron,
&lt;/p&gt;
&lt;p&gt;
we only can delete - see button if we have permission
&lt;/p&gt;
&lt;p&gt;
if you make logic/auth/delete.py package_delete() return {'success': True} then it will give everyone the permission - useful for testing
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>aron.carroll</dc:creator>

      <pubDate>Thu, 12 Jul 2012 11:29:38 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2661#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/2661#comment:2</guid>
      <description>
        &lt;p&gt;
Styled in c165639
&lt;/p&gt;
&lt;p&gt;
Toby, it would be good to display a flash message once the dataset has been deleted.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Tue, 17 Jul 2012 08:50:34 GMT</pubDate>
      <title>summary changed</title>
      <link>http://localhost/ticket/2661#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/2661#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;summary&lt;/strong&gt;
                changed from &lt;em&gt;prettify delete dataset&lt;/em&gt; to &lt;em&gt;delete dataset/group javascript confirm&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
@aron,
&lt;/p&gt;
&lt;p&gt;
flash messages added
&lt;/p&gt;
&lt;p&gt;
I've changed these to being done via form
&lt;/p&gt;
&lt;p&gt;
javascript action:
&lt;/p&gt;
&lt;p&gt;
on click delete button display dialog
&lt;/p&gt;
&lt;p&gt;
confirm -&amp;gt; set hidden input name=confirm_delete value -&amp;gt; "yes" submit form
&lt;/p&gt;
&lt;p&gt;
no -&amp;gt; stop form submit
&lt;/p&gt;
&lt;p&gt;
hope that makes sense if not shout
&lt;/p&gt;
&lt;p&gt;
need this for dataset/group will also need for resource/related at some point soon
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>aron.carroll</dc:creator>

      <pubDate>Tue, 17 Jul 2012 11:28:45 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2661#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/2661#comment:4</guid>
      <description>
        &lt;p&gt;
Implemented in d980ec7. But we really need to go over the delete implementation as it could be much cleaner.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Thu, 19 Jul 2012 08:18:19 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2661#comment:5</link>
      <guid isPermaLink="false">http://localhost/ticket/2661#comment:5</guid>
      <description>
        &lt;p&gt;
@aron
&lt;/p&gt;
&lt;p&gt;
can you change this so that we now post to the href if confirmed
&lt;/p&gt;
&lt;p&gt;
should then work for group, dataset, related
&lt;/p&gt;
&lt;p&gt;
resource will pretend to work but not actually delete yet
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>toby</dc:creator>

      <pubDate>Thu, 19 Jul 2012 16:41:10 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/2661#comment:6</link>
      <guid isPermaLink="false">http://localhost/ticket/2661#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>