Commit d0ab97a4 by Tatang

edit

1 parent 5588f645
...@@ -204,7 +204,7 @@ class ViewData(BaseView): ...@@ -204,7 +204,7 @@ class ViewData(BaseView):
k = f[0] k = f[0]
v = f[1] v = f[1]
wg = f[2] == 'textarea' and widget.TextAreaWidget(style='height:120px') or\ wg = f[2] == 'textarea' and widget.TextAreaWidget(rows=5, css_class="readonly") or\
widget.TextInputWidget(readonly=True) widget.TextInputWidget(readonly=True)
sm.add(colander.SchemaNode( sm.add(colander.SchemaNode(
......
...@@ -147,9 +147,13 @@ class ViewData(BaseView): ...@@ -147,9 +147,13 @@ class ViewData(BaseView):
if data: if data:
invoice = data.h2h_ar_invoice invoice = data.h2h_ar_invoice
customer = invoice.customer customer = invoice.customer
produk = data.produk
form_list = ( form_list = (
('inv_no', invoice.cust_inv_no or '', 'text'), ('inv_no', invoice.cust_inv_no or '', 'text'),
('customer', customer.nama, 'text'), ('customer', customer.nama, 'text'),
('vendor', data.vendor.nama, 'text'),
('denom', produk.kode, 'text'),
('produk', produk.nama, 'text'),
('harga', data.amt_sell or 0, 'text'), ('harga', data.amt_sell or 0, 'text'),
('inquiry', format_json(data.inquiry), 'textarea'), ('inquiry', format_json(data.inquiry), 'textarea'),
('purchase', format_json(data.payment), 'textarea'), ('purchase', format_json(data.payment), 'textarea'),
...@@ -164,7 +168,7 @@ class ViewData(BaseView): ...@@ -164,7 +168,7 @@ class ViewData(BaseView):
k = f[0] k = f[0]
v = f[1] v = f[1]
wg = f[2] == 'textarea' and widget.TextAreaWidget(style='height:120px') or\ wg = f[2] == 'textarea' and widget.TextAreaWidget(rows=5, css_class="readonly") or\
widget.TextInputWidget(readonly=True) widget.TextInputWidget(readonly=True)
sm.add(colander.SchemaNode( sm.add(colander.SchemaNode(
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div metal:fill-slot="content"> <div metal:fill-slot="content">
<style type="text/css"> <style type="text/css">
#content-payment-view { #content-payment-view {
max-height: 100vw; height: 100%;
overflow-y: auto; overflow-y: auto;
} }
</style> </style>
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
if (mID) { if (mID) {
var vUrl = getViewUrl(mID); var vUrl = getViewUrl(mID);
view_container.load(vUrl, function() { view_container.load(vUrl, function() {
$('textarea').attr('readonly', true); $('.readonly').attr('readonly', true);
}); });
} }
}); });
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div metal:fill-slot="content"> <div metal:fill-slot="content">
<style type="text/css"> <style type="text/css">
#content-payment-view { #content-payment-view {
max-height: 100vw; height: 100%;
overflow-y: auto; overflow-y: auto;
} }
</style> </style>
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
if (mID) { if (mID) {
var vUrl = getViewUrl(mID); var vUrl = getViewUrl(mID);
view_container.load(vUrl, function() { view_container.load(vUrl, function() {
$('textarea').attr('readonly', true); $('.readonly').attr('readonly', true);
}); });
} }
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!