Fix responsive
This commit is contained in:
parent
4eb9a7625a
commit
3fc0205d0b
@ -292,7 +292,7 @@ if (!$rowid && $action != 'create' && $action != 'edit') {
|
|||||||
$membertype->amount = $objp->amount;
|
$membertype->amount = $objp->amount;
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td>';
|
print '<td class="nowraponall">';
|
||||||
print $membertype->getNomUrl(1);
|
print $membertype->getNomUrl(1);
|
||||||
//<a href="'.$_SERVER["PHP_SELF"].'?rowid='.$objp->rowid.'">'.img_object($langs->trans("ShowType"),'group').' '.$objp->rowid.'</a>
|
//<a href="'.$_SERVER["PHP_SELF"].'?rowid='.$objp->rowid.'">'.img_object($langs->trans("ShowType"),'group').' '.$objp->rowid.'</a>
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@ -340,12 +340,7 @@ if (!$rowid && $action != 'create' && $action != 'edit') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Creation
|
||||||
/* ************************************************************************** */
|
|
||||||
/* */
|
|
||||||
/* Creation mode */
|
|
||||||
/* */
|
|
||||||
/* ************************************************************************** */
|
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
$object = new AdherentType($db);
|
$object = new AdherentType($db);
|
||||||
|
|
||||||
@ -416,11 +411,7 @@ if ($action == 'create') {
|
|||||||
print "</form>\n";
|
print "</form>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************** */
|
// View
|
||||||
/* */
|
|
||||||
/* View mode */
|
|
||||||
/* */
|
|
||||||
/* ************************************************************************** */
|
|
||||||
if ($rowid > 0) {
|
if ($rowid > 0) {
|
||||||
if ($action != 'edit') {
|
if ($action != 'edit') {
|
||||||
$object = new AdherentType($db);
|
$object = new AdherentType($db);
|
||||||
@ -455,8 +446,9 @@ if ($rowid > 0) {
|
|||||||
print yn($object->subscription);
|
print yn($object->subscription);
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
// Amount
|
||||||
print '<tr><td class="titlefield">'.$langs->trans("Amount").'</td><td>';
|
print '<tr><td class="titlefield">'.$langs->trans("Amount").'</td><td>';
|
||||||
print ((is_null($object->amount) || $object->amount === '') ? '' : price($object->amount));
|
print ((is_null($object->amount) || $object->amount === '') ? '' : '<span class="amount">'.price($object->amount).'</span>');
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans("VoteAllowed").'</td><td>';
|
print '<tr><td>'.$langs->trans("VoteAllowed").'</td><td>';
|
||||||
|
|||||||
@ -761,7 +761,7 @@ class FormFile
|
|||||||
$arraykeys = array_keys($modellist);
|
$arraykeys = array_keys($modellist);
|
||||||
$modelselected = $arraykeys[0];
|
$modelselected = $arraykeys[0];
|
||||||
}
|
}
|
||||||
$morecss = 'maxwidth200';
|
$morecss = 'minwidth75 maxwidth200';
|
||||||
if ($conf->browser->layout == 'phone') {
|
if ($conf->browser->layout == 'phone') {
|
||||||
$morecss = 'maxwidth100';
|
$morecss = 'maxwidth100';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -195,7 +195,7 @@ print '<input type="hidden" name="entity" value="'.$entity.'" />';
|
|||||||
print "\n";
|
print "\n";
|
||||||
print '<!-- Form to sign -->'."\n";
|
print '<!-- Form to sign -->'."\n";
|
||||||
|
|
||||||
print '<table id="dolpaymenttable" summary="Payment form" class="center">'."\n";
|
print '<table id="dolpublictable" summary="Payment form" class="center">'."\n";
|
||||||
|
|
||||||
// Show logo (search order: logo defined by ONLINE_SIGN_LOGO_suffix, then ONLINE_SIGN_LOGO_, then small company logo, large company logo, theme logo, common logo)
|
// Show logo (search order: logo defined by ONLINE_SIGN_LOGO_suffix, then ONLINE_SIGN_LOGO_, then small company logo, large company logo, theme logo, common logo)
|
||||||
// Define logo and logosmall
|
// Define logo and logosmall
|
||||||
@ -358,7 +358,7 @@ if ($action == "dosign" && empty($cancel)) {
|
|||||||
print '<script language="JavaScript" type="text/javascript" src="'.DOL_URL_ROOT.'/includes/jquery/plugins/jSignature/jSignature.js"></script>
|
print '<script language="JavaScript" type="text/javascript" src="'.DOL_URL_ROOT.'/includes/jquery/plugins/jSignature/jSignature.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("#signature").jSignature({ color:"#000", lineWidth:4, height: 180});
|
$("#signature").jSignature({ color:"#000", lineWidth:4, '.(empty($conf->dol_optimize_smallscreen) ? '' : 'width: 280, ' ).'height: 180});
|
||||||
|
|
||||||
$("#signature").on("change",function(){
|
$("#signature").on("change",function(){
|
||||||
$("#clearsignature").css("display","");
|
$("#clearsignature").css("display","");
|
||||||
@ -373,7 +373,7 @@ if ($action == "dosign" && empty($cancel)) {
|
|||||||
data: {
|
data: {
|
||||||
"action" : "importSignature",
|
"action" : "importSignature",
|
||||||
"signaturebase64" : signature,
|
"signaturebase64" : signature,
|
||||||
"ref" : "'.dol_escape_js($REF).'",
|
"ref" : \''.dol_escape_js($REF).'\',
|
||||||
"mode" : "propale",
|
"mode" : "propale",
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
|
|||||||
@ -926,7 +926,8 @@ print '<!-- urlok = '.$urlok.' -->'."\n";
|
|||||||
print '<!-- urlko = '.$urlko.' -->'."\n";
|
print '<!-- urlko = '.$urlko.' -->'."\n";
|
||||||
print "\n";
|
print "\n";
|
||||||
|
|
||||||
print '<table id="dolpaymenttable" summary="Payment form" class="center">'."\n";
|
// Section with payment informationsummary
|
||||||
|
print '<table id="dolpublictable" summary="Payment form" class="center">'."\n";
|
||||||
|
|
||||||
// Output introduction text
|
// Output introduction text
|
||||||
$text = '';
|
$text = '';
|
||||||
|
|||||||
@ -4579,7 +4579,15 @@ div.backgreypublicpayment { background-color: #f0f0f0; padding: 20px; border-bot
|
|||||||
color: #222;
|
color: #222;
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
}
|
}
|
||||||
#dolpaymenttable { min-width: 320px; font-size: 16px; } /* Width must have min to make stripe input area visible. Lower than 320 makes input area crazy for credit card that need zip code */
|
|
||||||
|
#dolpublictable {
|
||||||
|
min-width: 300px; font-size: 16px;
|
||||||
|
padding: 6px;
|
||||||
|
}
|
||||||
|
#dolpaymenttable {
|
||||||
|
min-width: 320px; font-size: 16px;
|
||||||
|
} /* Width must have min to make stripe input area visible. Lower than 320 makes input area crazy for credit card that need zip code */
|
||||||
|
|
||||||
#tablepublicpayment {
|
#tablepublicpayment {
|
||||||
border: 1px solid #CCCCCC !important;
|
border: 1px solid #CCCCCC !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
@ -4531,7 +4531,15 @@ div.backgreypublicpayment { background-color: #f0f0f0; padding: 20px; border-bot
|
|||||||
span.buttonpaymentsmall {
|
span.buttonpaymentsmall {
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
#dolpaymenttable { min-width: 320px; font-size: 16px; } /* Width must have min to make stripe input area visible. Lower than 320 makes input area crazy for credit card that need zip code */
|
|
||||||
|
#dolpublictable {
|
||||||
|
min-width: 300px; font-size: 16px;
|
||||||
|
padding: 6px;
|
||||||
|
}
|
||||||
|
#dolpaymenttable {
|
||||||
|
min-width: 320px; font-size: 16px;
|
||||||
|
} /* Width must have min to make stripe input area visible. Lower than 320 makes input area crazy for credit card that need zip code */
|
||||||
|
|
||||||
#tablepublicpayment { border: 1px solid #CCCCCC !important; width: 100%; padding: 20px; }
|
#tablepublicpayment { border: 1px solid #CCCCCC !important; width: 100%; padding: 20px; }
|
||||||
#tablepublicpayment .CTableRow1 { background-color: #F0F0F0 !important; }
|
#tablepublicpayment .CTableRow1 { background-color: #F0F0F0 !important; }
|
||||||
#tablepublicpayment tr.liste_total { border-bottom: 1px solid #CCCCCC !important; }
|
#tablepublicpayment tr.liste_total { border-bottom: 1px solid #CCCCCC !important; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user