aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-11-02 16:26:59 +0100
committerAlex Auvolat <alex@adnab.me>2018-11-02 16:26:59 +0100
commita26dd9284352000cca6338b68c03594dcd900494 (patch)
treeb51c1a9ba734d0fba9a7d4a97df4ddca85dafbca /shardweb/lib
parent353769402b6fd2ca4ea1807c2733e161a768f85e (diff)
downloadshard-a26dd9284352000cca6338b68c03594dcd900494.tar.gz
shard-a26dd9284352000cca6338b68c03594dcd900494.zip
WIP for file upload (Merkle tree for signatures)
Diffstat (limited to 'shardweb/lib')
-rw-r--r--shardweb/lib/templates/directory/view.html.eex4
1 files changed, 2 insertions, 2 deletions
diff --git a/shardweb/lib/templates/directory/view.html.eex b/shardweb/lib/templates/directory/view.html.eex
index 2d185eb..ef8200b 100644
--- a/shardweb/lib/templates/directory/view.html.eex
+++ b/shardweb/lib/templates/directory/view.html.eex
@@ -52,7 +52,7 @@
<%= render ShardWeb.PageView, "shard_entry.html", conn: @conn, manifest: manifest, pk: @pk %>
</td>
<td>
- <%= form_for @conn, directory_path(@conn, :dir_rm), [class: "form-inline", style: "display: inline"], fn f -> %>
+ <%= form_for @conn, directory_path(@conn, :dir_rm), [class: "form-inline", style: "display: inline", onsubmit: "return confirm('Remove this item?');"], fn f -> %>
<%= hidden_input f, :dir_name, value: @name %>
<%= hidden_input f, :dir_public, value: @public %>
<%= hidden_input f, :item_name, value: name %>
@@ -99,7 +99,7 @@
<label><%= radio_button f, :add_stored, "yes" %>Stored <i class="fa fa-save"></i></label>
</div>
<div class="radio">
- <label><%= radio_button f, :add_stored, "no" %>Linked <i class="fa fa-link"></i></label>
+ <label><%= radio_button f, :add_stored, "no", [checked: true] %>Linked <i class="fa fa-link"></i></label>
</div>
</div>
</div>