mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	feat(insert time): Add configurable date/time format for Alt+T shortcut
This commit is contained in:
		| @@ -7,34 +7,22 @@ import linkService from "../../../.././services/link.js"; | |||||||
|  |  | ||||||
| const TPL = /*html*/` | const TPL = /*html*/` | ||||||
| <div class="options-section"> | <div class="options-section"> | ||||||
|   <h4>${t("custom_date_time_format.title")}</h4> |     <h4>${t("custom_date_time_format.title")}</h4> | ||||||
|  |  | ||||||
|   <p class="description"> |     <p class="description"> | ||||||
|     ${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> |  | ||||||
|       <td> |  | ||||||
|         <input type="text" id="custom-date-time-format" class="form-control custom-date-time-format" |  | ||||||
|           placeholder="YYYY-MM-DD HH:mm"> |  | ||||||
|       </td> |  | ||||||
|     </tr> |  | ||||||
|  |  | ||||||
|     <tr> |  | ||||||
|       <td> |  | ||||||
|         ${t("custom_date_time_format.formatted_time")} |  | ||||||
|       </td> |  | ||||||
|       <td> |  | ||||||
|         <div class="formatted-date" style="padding-left: 0.5rem;"> |  | ||||||
|         </div> |         </div> | ||||||
|       </td> |         <div class="col-6"> | ||||||
|     </tr> |             <label>${t("custom_date_time_format.formatted_time")}</label> | ||||||
|   </table> |             <div class="formatted-date"></div> | ||||||
|  |         </div> | ||||||
|  |     </div> | ||||||
| </div> | </div> | ||||||
| `; | `; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user