mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 10:32:27 +08:00
feat(insert time): Add configurable date/time format for Alt+T shortcut
This commit is contained in:
parent
029d6df5ec
commit
22586bfcc0
@ -13,28 +13,16 @@ const TPL = /*html*/`
|
|||||||
${t("custom_date_time_format.description")}
|
${t("custom_date_time_format.description")}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="table table-borderless">
|
<div class="form-group row align-items-center">
|
||||||
<tr>
|
<div class="col-6">
|
||||||
<td>
|
<label for="custom-date-time-format">${t("custom_date_time_format.format_string")}</label>
|
||||||
${t("custom_date_time_format.format_string")}
|
<input type="text" id="custom-date-time-format" class="form-control custom-date-time-format" placeholder="YYYY-MM-DD HH:mm">
|
||||||
</td>
|
</div>
|
||||||
<td>
|
<div class="col-6">
|
||||||
<input type="text" id="custom-date-time-format" class="form-control custom-date-time-format"
|
<label>${t("custom_date_time_format.formatted_time")}</label>
|
||||||
placeholder="YYYY-MM-DD HH:mm">
|
<div class="formatted-date"></div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
${t("custom_date_time_format.formatted_time")}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<div class="formatted-date" style="padding-left: 0.5rem;">
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user