Sha256: 6eb112dc81f22ad7cc2f38b70f7101fc6cf5789f953d870f1183792261bb1753
Contents?: true
Size: 1000 Bytes
Versions: 2
Compression:
Stored size: 1000 Bytes
Contents
<section> <h2>Edit: <%= @link.name %></h2> <form action='<%= update_path(@link) %>' method='POST'> <input type='hidden' name='_method' value='PUT'> <div class='form-row'> <label for='edit_new_name'>Name</label> <input type='text' id='edit_new_name' name='new_name' placeholder='short-name' value="<%= @link.name %>"> </div> <div class='form-row'> <label for='edit_url'>URL</label> <input type='text' id='edit_url' name='url' placeholder='https://...' value="<%= @link.url %>"> </div> <input type='submit' value='Save'> </form> <p>Entering a new name will create an another link for the URL. To rename completely, manually delete the old link; Be careful with renaming existing links.</p> <hr> <form action='<%= update_path(@link) %>' method='POST'> <input type='hidden' name='_method' value='DELETE'> <p><input type='submit' onclick="return confirm('Are you sure?')" class='btn-danger' value='Delete'></p> </form> </section>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
corpshort-0.2.0 | app/views/edit.erb |
corpshort-0.1.0 | app/views/edit.erb |