Merge pull request #809 from openclassify/vedat

date format
This commit is contained in:
Muammer Top 2020-11-23 16:32:10 +03:00 committed by GitHub
commit cf19acbe81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -93,6 +93,8 @@ getMyAdvs(type);
function addAdsRow(id, href, image, name, formatted_price, city, country, cat1, cat2, status) {
city = (city) ? city : '';
country = (country) ? country : '';
return "<div class='col-md-12 mb-2 profile-ads border-bottom border-white'>\n" +
"<div class='row bg-light'>\n" +
"<div class='col-md-2 justify-content-center align-self-center border-right border-white'>\n" +
@ -160,7 +162,7 @@ function dropdownRow(id, type) {
return dropdown;
}
function addDropdownBlock () {
function addDropdownBlock() {
const dropdowns = $('.my-ads-dropdown')
for (let i = 0; i < dropdowns.length; i++) {
const currentDropdown = $(dropdowns[i])

View File

@ -146,7 +146,7 @@
<label class="control-label font-weight-bold">
{{ trans("visiosoft.module.profile::field.birthday.name") }}
</label>
{{ profileForm.fields.birthday.input|raw }}
{{ profileForm.fields.birthday.configSet('date_format','Y-m-d').setPlaceholder(now|date('Y-m-d')).input|raw }}
</div>
</div>