You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2017/12/20 11:19:54 UTC
svn commit: r1818776 -
/ofbiz/ofbiz-plugins/trunk/ecommerce/template/quote/QuoteList.ftl
Author: deepak
Date: Wed Dec 20 11:19:54 2017
New Revision: 1818776
URL: http://svn.apache.org/viewvc?rev=1818776&view=rev
Log:
Improved: Update markup of List Quotes page according to standard markup given by Bootstrap v4.0.s (OFBIZ-10095)
Thanks Nitish Mishra for your contribution
Modified:
ofbiz/ofbiz-plugins/trunk/ecommerce/template/quote/QuoteList.ftl
Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/quote/QuoteList.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/quote/QuoteList.ftl?rev=1818776&r1=1818775&r2=1818776&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/quote/QuoteList.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/quote/QuoteList.ftl Wed Dec 20 11:19:54 2017
@@ -17,70 +17,67 @@ specific language governing permissions
under the License.
-->
-<div class="screenlet">
- <h3>${uiLabelMap.EcommerceQuoteHistory}</h3>
- <div class="screenlet-body">
- <table>
- <tr>
- <td width="10%">
- <div><span style="white-space: nowrap;">${uiLabelMap.OrderQuote} ${uiLabelMap.CommonNbr}</span></div>
- </td>
- <td width="10"> </td>
- <td width="20%">
- <div>${uiLabelMap.CommonName}</div>
- </td>
- <td width="10"> </td>
- <td width="40%">
- <div>${uiLabelMap.CommonDescription}</div>
- </td>
- <td width="10"> </td>
- <td width="10%">
- <div>${uiLabelMap.CommonStatus}</div>
- </td>
- <td width="10"> </td>
- <td width="20%">
- <div>${uiLabelMap.OrderOrderQuoteIssueDate}</div>
- <div>${uiLabelMap.CommonValidFromDate}</div>
- <div>${uiLabelMap.CommonValidThruDate}</div>
- </td>
- <td width="10"> </td>
- <td width="10"> </td>
- </tr>
+<div class="card m-3">
+ <div class="card-header">
+ <strong>${uiLabelMap.EcommerceQuoteHistory}</strong>
+ </div>
+ <div class="card-body">
+ <#if quoteList?has_content>
+ <table class="table">
+ <thead>
+ <tr>
+ <th>
+ ${uiLabelMap.OrderQuote} ${uiLabelMap.CommonNbr}
+ </th>
+ <th>
+ ${uiLabelMap.CommonName}
+ </th>
+ <th>
+ ${uiLabelMap.CommonDescription}
+ </th>
+ <th>
+ ${uiLabelMap.CommonStatus}
+ </th>
+ <th>
+ ${uiLabelMap.OrderOrderQuoteIssueDate}
+ </th>
+ <th>${uiLabelMap.CommonValidFromDate}</th>
+ <th>${uiLabelMap.CommonValidThruDate}</th>
+ <th colspan="2"></th>
+ </tr>
+ </thead>
+ <tbody>
<#list quoteList as quote>
<#assign status = quote.getRelatedOne("StatusItem", true)>
-
<tr>
<td>
- <div>${quote.quoteId}</div>
+ ${quote.quoteId!}
</td>
- <td width="10"> </td>
<td>
- <div>${quote.quoteName!}</div>
+ ${quote.quoteName?default("N/A")}
</td>
- <td width="10"> </td>
<td>
- <div>${quote.description!}</div>
+ ${quote.description?default("N/A")}
</td>
- <td width="10"> </td>
<td>
- <div>${status.get("description",locale)}</div>
+ ${status.get("description",locale)?default("N/A")}
</td>
- <td width="10"> </td>
<td>
- <div><span style="white-space: nowrap;">${quote.issueDate!}</span></div>
- <div><span style="white-space: nowrap;">${quote.validFromDate!}</span></div>
- <div><span style="white-space: nowrap;">${quote.validThruDate!}</span></div>
+ ${quote.issueDate?default("N/A")}
</td>
- <td width="10"> </td>
- <td align="right">
+ <td>${quote.validFromDate?default("N/A")}</td>
+ <td>${quote.validThruDate?default("N/A")}</td>
+ <td colspan="2">
<a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonView}</a>
</td>
- <td width="10"> </td>
</tr>
</#list>
- <#if !quoteList?has_content>
- <tr><td colspan="9"><h3>${uiLabelMap.OrderNoQuoteFound}</h3></td></tr>
- </#if>
+ </tbody>
</table>
+ <#else>
+ <div class="alert alert-light" role="alert">
+ <h3>${uiLabelMap.OrderNoQuoteFound}</h3>
+ </div>
+ </#if>
</div>
</div>