mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Merge pull request #4448 from dbalders/master
Update PSM Date and Time to be Selectable Instead of Text
This commit is contained in:
commit
30874a6e71
3 changed files with 12 additions and 4 deletions
|
@ -49,7 +49,8 @@ form {
|
||||||
input[type="tel"],
|
input[type="tel"],
|
||||||
input[type="text"],
|
input[type="text"],
|
||||||
input[type="url"],
|
input[type="url"],
|
||||||
input[type="date"] {
|
input[type="date"],
|
||||||
|
input[type="datetime-local"] {
|
||||||
padding-left: 3.2rem;
|
padding-left: 3.2rem;
|
||||||
}
|
}
|
||||||
.gh-select {
|
.gh-select {
|
||||||
|
@ -144,6 +145,7 @@ input[type="tel"],
|
||||||
input[type="text"],
|
input[type="text"],
|
||||||
input[type="url"],
|
input[type="url"],
|
||||||
input[type="date"],
|
input[type="date"],
|
||||||
|
input[type="datetime-local"],
|
||||||
textarea,
|
textarea,
|
||||||
.gh-select,
|
.gh-select,
|
||||||
select {
|
select {
|
||||||
|
@ -166,6 +168,11 @@ select {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fix for iOS where this element _looks_ like a <select> element
|
||||||
|
input[type="datetime-local"] {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="post-setting-date">Publish Date</label>
|
<label for="post-setting-date">Publish Date</label>
|
||||||
<span class="input-icon icon-calendar">
|
<span class="input-icon icon-calendar">
|
||||||
{{gh-input class="post-setting-date" id="post-setting-date" value=publishedAtValue name="post-setting-date" focus-out="setPublishedAt" stopEnterKeyDownPropagation="true"}}
|
{{gh-input type="datetime-local" class="post-setting-date" id="post-setting-date" value=publishedAtValue name="post-setting-date" focus-out="setPublishedAt" stopEnterKeyDownPropagation="true"}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,10 @@ parseDateFormats = ['DD MMM YY @ HH:mm', 'DD MMM YY HH:mm',
|
||||||
'DD-MM-YY @ HH:mm', 'DD-MM-YY HH:mm',
|
'DD-MM-YY @ HH:mm', 'DD-MM-YY HH:mm',
|
||||||
'DD-MM-YYYY @ HH:mm', 'DD-MM-YYYY HH:mm',
|
'DD-MM-YYYY @ HH:mm', 'DD-MM-YYYY HH:mm',
|
||||||
'YYYY-MM-DD @ HH:mm', 'YYYY-MM-DD HH:mm',
|
'YYYY-MM-DD @ HH:mm', 'YYYY-MM-DD HH:mm',
|
||||||
'DD MMM @ HH:mm', 'DD MMM HH:mm'];
|
'DD MMM @ HH:mm', 'DD MMM HH:mm',
|
||||||
|
'YYYY-MM-DDTHH:mm'];
|
||||||
|
|
||||||
displayDateFormat = 'DD MMM YY @ HH:mm';
|
displayDateFormat = 'YYYY-MM-DDTHH:mm';
|
||||||
|
|
||||||
// Add missing timestamps
|
// Add missing timestamps
|
||||||
verifyTimeStamp = function (dateString) {
|
verifyTimeStamp = function (dateString) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue