forked from Wavyzz/dolibarr
Fix responsive
This commit is contained in:
@@ -292,7 +292,7 @@ if (!$rowid && $action != 'create' && $action != 'edit') {
|
||||
$membertype->amount = $objp->amount;
|
||||
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>';
|
||||
print '<td class="nowraponall">';
|
||||
print $membertype->getNomUrl(1);
|
||||
//<a href="'.$_SERVER["PHP_SELF"].'?rowid='.$objp->rowid.'">'.img_object($langs->trans("ShowType"),'group').' '.$objp->rowid.'</a>
|
||||
print '</td>';
|
||||
@@ -340,12 +340,7 @@ if (!$rowid && $action != 'create' && $action != 'edit') {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* Creation mode */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
// Creation
|
||||
if ($action == 'create') {
|
||||
$object = new AdherentType($db);
|
||||
|
||||
@@ -416,11 +411,7 @@ if ($action == 'create') {
|
||||
print "</form>\n";
|
||||
}
|
||||
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* View mode */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
// View
|
||||
if ($rowid > 0) {
|
||||
if ($action != 'edit') {
|
||||
$object = new AdherentType($db);
|
||||
@@ -455,8 +446,9 @@ if ($rowid > 0) {
|
||||
print yn($object->subscription);
|
||||
print '</tr>';
|
||||
|
||||
// Amount
|
||||
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><td>'.$langs->trans("VoteAllowed").'</td><td>';
|
||||
|
||||
@@ -761,7 +761,7 @@ class FormFile
|
||||
$arraykeys = array_keys($modellist);
|
||||
$modelselected = $arraykeys[0];
|
||||
}
|
||||
$morecss = 'maxwidth200';
|
||||
$morecss = 'minwidth75 maxwidth200';
|
||||
if ($conf->browser->layout == 'phone') {
|
||||
$morecss = 'maxwidth100';
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ print '<input type="hidden" name="entity" value="'.$entity.'" />';
|
||||
print "\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)
|
||||
// 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>
|
||||
<script type="text/javascript">
|
||||
$(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(){
|
||||
$("#clearsignature").css("display","");
|
||||
@@ -373,7 +373,7 @@ if ($action == "dosign" && empty($cancel)) {
|
||||
data: {
|
||||
"action" : "importSignature",
|
||||
"signaturebase64" : signature,
|
||||
"ref" : "'.dol_escape_js($REF).'",
|
||||
"ref" : \''.dol_escape_js($REF).'\',
|
||||
"mode" : "propale",
|
||||
},
|
||||
success: function(response) {
|
||||
|
||||
@@ -926,7 +926,8 @@ print '<!-- urlok = '.$urlok.' -->'."\n";
|
||||
print '<!-- urlko = '.$urlko.' -->'."\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
|
||||
$text = '';
|
||||
|
||||
@@ -4579,7 +4579,15 @@ div.backgreypublicpayment { background-color: #f0f0f0; padding: 20px; border-bot
|
||||
color: #222;
|
||||
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 {
|
||||
border: 1px solid #CCCCCC !important;
|
||||
width: 100%;
|
||||
|
||||
@@ -4531,7 +4531,15 @@ div.backgreypublicpayment { background-color: #f0f0f0; padding: 20px; border-bot
|
||||
span.buttonpaymentsmall {
|
||||
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 .CTableRow1 { background-color: #F0F0F0 !important; }
|
||||
#tablepublicpayment tr.liste_total { border-bottom: 1px solid #CCCCCC !important; }
|
||||
|
||||
Reference in New Issue
Block a user