Commit d0ab97a4 by Tatang

edit

1 parent 5588f645
......@@ -204,7 +204,7 @@ class ViewData(BaseView):
k = f[0]
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)
sm.add(colander.SchemaNode(
......
......@@ -147,9 +147,13 @@ class ViewData(BaseView):
if data:
invoice = data.h2h_ar_invoice
customer = invoice.customer
produk = data.produk
form_list = (
('inv_no', invoice.cust_inv_no or '', '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'),
('inquiry', format_json(data.inquiry), 'textarea'),
('purchase', format_json(data.payment), 'textarea'),
......@@ -164,7 +168,7 @@ class ViewData(BaseView):
k = f[0]
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)
sm.add(colander.SchemaNode(
......
......@@ -3,7 +3,7 @@
<div metal:fill-slot="content">
<style type="text/css">
#content-payment-view {
max-height: 100vw;
height: 100%;
overflow-y: auto;
}
</style>
......@@ -170,7 +170,7 @@
if (mID) {
var vUrl = getViewUrl(mID);
view_container.load(vUrl, function() {
$('textarea').attr('readonly', true);
$('.readonly').attr('readonly', true);
});
}
});
......
......@@ -3,7 +3,7 @@
<div metal:fill-slot="content">
<style type="text/css">
#content-payment-view {
max-height: 100vw;
height: 100%;
overflow-y: auto;
}
</style>
......@@ -170,7 +170,7 @@
if (mID) {
var vUrl = getViewUrl(mID);
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!