Add creation date when editing a link
Also, alter the title on edition Fixes #431
This commit is contained in:
parent
3e395a6bc6
commit
807cade64c
3 changed files with 16 additions and 3 deletions
|
@ -1431,7 +1431,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
'tags' => $tags,
|
'tags' => $tags,
|
||||||
'private' => $private
|
'private' => $private,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$link['linkdate'] = $link['created']->format(LinkDB::LINK_DATE_FORMAT);
|
$link['linkdate'] = $link['created']->format(LinkDB::LINK_DATE_FORMAT);
|
||||||
|
|
|
@ -992,6 +992,14 @@ form[name="linkform"].page-form {
|
||||||
color: #3f3f3f;
|
color: #3f3f3f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* EDIT LINK
|
||||||
|
*/
|
||||||
|
#editlinkform .created-date {
|
||||||
|
color: #767676;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LOGIN
|
* LOGIN
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8,11 +8,15 @@
|
||||||
<div id="editlinkform" class="pure-g">
|
<div id="editlinkform" class="pure-g">
|
||||||
<div class="pure-u-lg-1-5 pure-u-1-24"></div>
|
<div class="pure-u-lg-1-5 pure-u-1-24"></div>
|
||||||
<form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light">
|
<form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light">
|
||||||
<h2 class="window-title">{'Shaare'|t}</h2>
|
<h2 class="window-title">
|
||||||
|
{if="!$link_is_new"}{'Edit'|t}{/if}
|
||||||
|
{'Shaare'|t}
|
||||||
|
</h2>
|
||||||
<input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
|
<input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
|
||||||
{if="isset($link.id)"}
|
{if="isset($link.id)"}
|
||||||
<input type="hidden" name="lf_id" value="{$link.id}">
|
<input type="hidden" name="lf_id" value="{$link.id}">
|
||||||
{/if}
|
{/if}
|
||||||
|
{if="!$link_is_new"}<div class="created-date">{'Created:'|t} {$link.created|format_date}</div>{/if}
|
||||||
<div>
|
<div>
|
||||||
<label for="lf_url">{'URL'|t}</label>
|
<label for="lf_url">{'URL'|t}</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,7 +59,8 @@ <h2 class="window-title">{'Shaare'|t}</h2>
|
||||||
|
|
||||||
|
|
||||||
<div class="submit-buttons center">
|
<div class="submit-buttons center">
|
||||||
<input type="submit" value="{'Save'|t}" name="save_edit" class="" id="button-save-edit">
|
<input type="submit" name="save_edit" class="" id="button-save-edit"
|
||||||
|
value="{if="$link_is_new"}{'Save'|t}{else}{'Apply Changes'|t}{/if}">
|
||||||
{if="!$link_is_new"}
|
{if="!$link_is_new"}
|
||||||
<a href="?delete_link&lf_linkdate={$link.id}&token={$token}"
|
<a href="?delete_link&lf_linkdate={$link.id}&token={$token}"
|
||||||
title="" name="delete_link" class="button button-red confirm-delete">
|
title="" name="delete_link" class="button button-red confirm-delete">
|
||||||
|
|
Loading…
Reference in a new issue