Made changes to get field alignment on receipt entry. I can get the text on the left by floating the label, but actually, I think I prefer the boxes on the left.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@386 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -171,10 +171,11 @@ function addPaymentSource(flash) {
|
||||
'</DIV>' +
|
||||
|
||||
'<DIV ID="payment-amount-div-%{id}" CLASS="input text required">' +
|
||||
' <LABEL FOR="payment-amount-%{id}">Amount</LABEL>' +
|
||||
' <INPUT TYPE="text" SIZE="20"' +
|
||||
' NAME="data[Entry][%{id}][amount]"' +
|
||||
' CLASS="payment"' +
|
||||
' ID="payment-amount-%{id}" />' +
|
||||
' <LABEL CLASS="payment" FOR="payment-amount-%{id}">Amount</LABEL>' +
|
||||
'</DIV>' +
|
||||
|
||||
<?php
|
||||
@@ -190,9 +191,15 @@ function addPaymentSource(flash) {
|
||||
for ($i=1; $i<=4; ++$i) {
|
||||
if (!empty($type["data{$i}_name"])) {
|
||||
$div .= '<DIV CLASS="input text required">';
|
||||
$div .= ' <LABEL FOR="payment-data'.$i.'-%{id}">'.$type["data{$i}_name"].'</LABEL>';
|
||||
$div .= ' <INPUT TYPE="text" SIZE="20" NAME="data[Entry][%{id}][type]['.$type['id'].'][data'.$i.']"';
|
||||
$div .= ' <INPUT TYPE="text" SIZE="20"';
|
||||
$div .= ' NAME="data[Entry][%{id}][type]['.$type['id'].'][data'.$i.']"';
|
||||
$div .= ' CLASS="payment"';
|
||||
$div .= ' ID="payment-data'.$i.'-%{id}" />';
|
||||
$div .= ' <LABEL';
|
||||
$div .= ' CLASS="payment"';
|
||||
$div .= ' FOR="payment-data'.$i.'-%{id}">';
|
||||
$div .= $type["data{$i}_name"];
|
||||
$div .= ' </LABEL>';
|
||||
$div .= '</DIV>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,6 +193,22 @@ table.list.ledger td.date.receipt { padding-left: 1em; }
|
||||
table.list.ledger td.evnrow { background: #f4f4f4; }
|
||||
|
||||
|
||||
/************************************************************
|
||||
************************************************************
|
||||
* Receipt Entry
|
||||
*/
|
||||
|
||||
input.payment {
|
||||
width: 10em;
|
||||
}
|
||||
label.payment {
|
||||
padding-left: 0.5em;
|
||||
/* float: left; */
|
||||
/* text-align: right; */
|
||||
/* display: block; */
|
||||
}
|
||||
|
||||
|
||||
/************************************************************
|
||||
************************************************************
|
||||
* Special cases
|
||||
|
||||
Reference in New Issue
Block a user