mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
[layout][iterate] item detail page actions
This commit is contained in:
@@ -92,25 +92,28 @@ erpnext.hub.Item = class Item extends SubPage {
|
|||||||
<button class="btn btn-xs btn-default" data-route="marketplace/home">${__('Back to home')}</button>
|
<button class="btn btn-xs btn-default" data-route="marketplace/home">${__('Back to home')}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row detail-page-section margin-bottom">
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
<div class="hub-item-image">
|
<div class="hub-item-image">
|
||||||
<img src="${item.image}">
|
<img src="${item.image}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8 flex flex-column">
|
||||||
<h2>${title}</h2>
|
<div class="detail-page-header">
|
||||||
<div class="text-muted">
|
<h2>${title}</h2>
|
||||||
<p>${where}${dot_spacer}${when}</p>
|
<div class="text-muted">
|
||||||
<p>${stats}</p>
|
<p>${where}${dot_spacer}${when}</p>
|
||||||
|
<p>${stats}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
<div class="hub-item-description">
|
<div class="page-actions detail-page-actions">
|
||||||
${description ?
|
<button class="btn btn-default text-muted" data-action="add_to_favourites">
|
||||||
`<b>${__('Description')}</b>
|
${__('Add to Favourites')} <i class="octicon octicon-heart text-extra-muted"></i>
|
||||||
<p>${description}</p>
|
</button>
|
||||||
` : `<p>${__('No description')}<p>`
|
<button class="btn btn-primary" data-action="contact_seller">
|
||||||
}
|
${__('Contact Seller')}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
@@ -124,18 +127,24 @@ erpnext.hub.Item = class Item extends SubPage {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row hub-item-description">
|
||||||
|
<h6 class="col-md-12 margin-top">
|
||||||
|
<b class="text-muted">Product Description</b>
|
||||||
|
</h6>
|
||||||
|
<p class="col-md-12">
|
||||||
|
${description ? description : __('No details')}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
<div class="row hub-item-seller">
|
<div class="row hub-item-seller">
|
||||||
<div class="col-md-12 margin-top margin-bottom">
|
|
||||||
|
<h6 class="col-md-12 margin-top margin-bottom">
|
||||||
<b class="text-muted">Seller Information</b>
|
<b class="text-muted">Seller Information</b>
|
||||||
</div>
|
</h6>
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
<img src="https://picsum.photos/200">
|
<img src="https://picsum.photos/200">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="margin-bottom"><a href="#marketplace/seller/${seller}" class="bold">${seller}</a></div>
|
<div class="margin-bottom"><a href="#marketplace/seller/${seller}" class="bold">${seller}</a></div>
|
||||||
<button class="btn btn-xs btn-default text-muted" data-action="contact_seller">
|
|
||||||
${__('Contact Seller')}
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- review area -->
|
<!-- review area -->
|
||||||
|
|||||||
Reference in New Issue
Block a user