mirror of
https://github.com/sergeyyarkov/digital-store.git
synced 2026-10-11 02:09:05 +03:00
recommend
This commit is contained in:
parent
b7f382dfde
commit
8a9b907b40
@ -119,7 +119,8 @@ module.exports = function (server, db) {
|
||||
info: store.info,
|
||||
infoBottom: store.infoBottom,
|
||||
howToBuy: store.howToBuy,
|
||||
contacts: store.contacts
|
||||
contacts: store.contacts,
|
||||
recommendations: store.recommendations
|
||||
}
|
||||
});
|
||||
} catch {
|
||||
@ -266,9 +267,10 @@ module.exports = function (server, db) {
|
||||
email: req.body.email,
|
||||
infoBottom: req.body.infoBottom,
|
||||
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');
|
||||
} catch {
|
||||
res.status(500).render('main/404');
|
||||
|
||||
@ -114,7 +114,8 @@ module.exports = function (server, db) {
|
||||
type: category.type,
|
||||
format: category.format,
|
||||
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
|
||||
textarea(id="contacts" class="materialize-textarea" type="text" name="contacts") #{store.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
|
||||
textarea(id="info" class="materialize-textarea" type="text" name="info") #{store.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}
|
||||
hr
|
||||
h3 Рекомендации к покупке аккаунтов.
|
||||
p
|
||||
| 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.
|
||||
p #{store.recommendations}
|
||||
|
||||
h3 Отзывы о товаре
|
||||
#commento
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user