mirror of
https://github.com/sergeyyarkov/digital-store.git
synced 2026-10-11 18:29:11 +03:00
recommend
This commit is contained in:
parent
316bab9ad5
commit
308dfb34de
@ -119,7 +119,8 @@ module.exports = function (server, db) {
|
|||||||
info: store.info,
|
info: store.info,
|
||||||
infoBottom: store.infoBottom,
|
infoBottom: store.infoBottom,
|
||||||
howToBuy: store.howToBuy,
|
howToBuy: store.howToBuy,
|
||||||
contacts: store.contacts
|
contacts: store.contacts,
|
||||||
|
recommendations: store.recommendations
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch {
|
} catch {
|
||||||
@ -266,9 +267,10 @@ module.exports = function (server, db) {
|
|||||||
email: req.body.email,
|
email: req.body.email,
|
||||||
infoBottom: req.body.infoBottom,
|
infoBottom: req.body.infoBottom,
|
||||||
howToBuy: req.body.howToBuy,
|
howToBuy: req.body.howToBuy,
|
||||||
contacts: req.body.contacts
|
contacts: req.body.contacts,
|
||||||
|
recommendations: req.body.recommendations
|
||||||
}
|
}
|
||||||
db.collection('content').updateOne({}, {$set: {title: data.title, email: data.email, info: data.info, infoBottom: data.infoBottom, howToBuy: data.howToBuy, contacts: data.contacts}});
|
db.collection('content').updateOne({}, {$set: {title: data.title, email: data.email, info: data.info, infoBottom: data.infoBottom, howToBuy: data.howToBuy, contacts: data.contacts, recommendations: data.recommendations}});
|
||||||
res.redirect('/control-panel/content');
|
res.redirect('/control-panel/content');
|
||||||
} catch {
|
} catch {
|
||||||
res.status(500).render('main/404');
|
res.status(500).render('main/404');
|
||||||
|
|||||||
@ -114,7 +114,8 @@ module.exports = function (server, db) {
|
|||||||
type: category.type,
|
type: category.type,
|
||||||
format: category.format,
|
format: category.format,
|
||||||
store: {
|
store: {
|
||||||
title: store.title
|
title: store.title,
|
||||||
|
recommendations: store.recommendations
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}))
|
}))
|
||||||
|
|||||||
3
dist/views/admin/content.pug
vendored
3
dist/views/admin/content.pug
vendored
@ -23,6 +23,9 @@ body.has-fixed-sidenav
|
|||||||
.input-field.col.s12
|
.input-field.col.s12
|
||||||
textarea(id="contacts" class="materialize-textarea" type="text" name="contacts") #{store.contacts}
|
textarea(id="contacts" class="materialize-textarea" type="text" name="contacts") #{store.contacts}
|
||||||
label(for="contacts") Контакты магазина
|
label(for="contacts") Контакты магазина
|
||||||
|
.input-field.col.s12
|
||||||
|
textarea(id="recommendations" class="materialize-textarea" type="text" name="recommendations") #{store.recommendations}
|
||||||
|
label(for="recommendations") Рекомендации к покупке аккаунтов
|
||||||
.input-field.col.s12
|
.input-field.col.s12
|
||||||
textarea(id="info" class="materialize-textarea" type="text" name="info") #{store.info}
|
textarea(id="info" class="materialize-textarea" type="text" name="info") #{store.info}
|
||||||
label(for="info") Блок с важной информацией
|
label(for="info") Блок с важной информацией
|
||||||
|
|||||||
10
dist/views/main/product.pug
vendored
10
dist/views/main/product.pug
vendored
@ -47,14 +47,8 @@ main.main-section
|
|||||||
p #{format}
|
p #{format}
|
||||||
hr
|
hr
|
||||||
h3 Рекомендации к покупке аккаунтов.
|
h3 Рекомендации к покупке аккаунтов.
|
||||||
p
|
p #{store.recommendations}
|
||||||
| Lorem ipsum dolor sit amet consectetur adipisicing elit. A saepe ad, atque
|
|
||||||
| cum officia ullam similique repudiandae excepturi at accusamus hic deserunt
|
|
||||||
| molestiae mollitia? Labore numquam officiis natus repellat fugit ipsum
|
|
||||||
| nesciunt, nam officia? Sunt ut quod provident dolore architecto laborum ab
|
|
||||||
| repellat ea sequi optio dolorum, tenetur quis eius rerum quibusdam nisi
|
|
||||||
| minus, debitis non. Impedit molestiae beatae, fugit similique sit labore quo
|
|
||||||
| incidunt id corporis quia officiis pariatur.
|
|
||||||
h3 Отзывы о товаре
|
h3 Отзывы о товаре
|
||||||
#commento
|
#commento
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user