<input type="hidden" name="token" value="{$token}">
<div>
<input type="submit" value="{'Rename'|t}" name="renametag">
- <input type="submit" value="{'Delete'|t}" name="deletetag" class="button-red">
+ <input type="submit" value="{'Delete'|t}" name="deletetag" class="button button-red confirm-delete">
</div>
</form>
</div>
text-decoration: none;
vertical-align: center;
font-weight: normal;
+ display: inline-block;
}
background: #ac2925;
}
+.page-form .submit-buttons {
+ margin-bottom: 10px;
+}
+
@media screen and (min-width: 64em) {
.page-form .submit-buttons {
position: relative;
}
}
+@media screen and (max-width: 64em) {
+ .page-form .submit-buttons .button {
+ display: block;
+ margin: auto;
+ }
+}
+
.page-form select {
color: #252525;
}
</div>
- <div class="submit-buttons">
- <input type="submit" value="{'Save'|t}" name="save_edit">
+ <div class="submit-buttons center">
+ <input type="submit" value="{'Save'|t}" name="save_edit" class="">
{if="!$link_is_new"}
<a href="?delete_link&lf_linkdate={$value.id}&token={$token}"
- title="" name="delete_link" class="button button-red">
+ title="" name="delete_link" class="button button-red confirm-delete">
{'Delete'|t}
</a>
{/if}
/**
* Confirmation message before deletion.
*/
-var deleteLinks = document.querySelectorAll('.delete-link');
+var deleteLinks = document.querySelectorAll('.confirm-delete');
[].forEach.call(deleteLinks, function(deleteLink) {
deleteLink.addEventListener('click', function(event) {
if(! confirm('Are you sure you want to delete this link ?')) {
</a>
{if="isLoggedIn()"}
<a href="?delete_link&lf_linkdate={$value.id}&token={$token}"
- title="{'Delete'|t}" class="delete-link pure-u-0 pure-u-lg-visible">
+ title="{'Delete'|t}" class="delete-link pure-u-0 pure-u-lg-visible confirm-delete">
<i class="fa fa-trash"></i>
</a>
{/if}
{/if}
{if="isLoggedIn()"}
<a href="?delete_link&lf_linkdate={$value.id}&token={$token}"
- title="{'Delete'|t}" class="delete-link">
+ title="{'Delete'|t}" class="delete-link confirm-delete">
<i class="fa fa-trash"></i>
</a>
{/if}