mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
fix html for date picker and accordion
This commit is contained in:
parent
1e08ea06e9
commit
805dbe212a
|
@ -1366,7 +1366,7 @@ $(document).ready(function() {
|
|||
$dateformat = getConvertDateFormat();
|
||||
$content = '
|
||||
<div class="input-group date" id="'.$varName.'date">
|
||||
<input type="text" class="form-control" name="'.$varName.'" value="'.$defDate. '" data-date="'.$defDate.'" data-selectmenu="presetexpdate" data-date-format="'.$dateformat.'"'.($lang ? 'data-date-language="'.str_replace('_', '-', $lang).'"' : '').' data-date-autoclose="true" data-provide="datepicker">
|
||||
<input type="text" class="form-control" name="'.$varName.'" value="'.$defDate. '" data-date="'.$defDate.'" data-selectmenu="presetexpdate" data-date-format="'.$dateformat.'"'.($lang ? 'data-date-language="'.str_replace('_', '-', $lang).'"' : '').($startdate ? ' data-date-start-date="'.$startdate.'"' : '').($enddate ? ' data-date-end-date="'.$enddate.'"' : '').' data-date-autoclose="true" data-provide="datepicker">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
|
@ -1743,7 +1743,7 @@ $(document).ready(function() {
|
|||
*/
|
||||
$content = '
|
||||
<div class="input-group date">
|
||||
<input type="text" class="form-control" id="'.$fieldname.'_'.$attrdef->getId().'" name="'.$fieldname.'['.$attrdef->getId().']" value="'.($objvalue ? $objvalue : '').'" data-date="'.getReadableDate().'" data-date-format="'.$dateformat.'" data-date-language="'.str_replace('_', '-', $this->params['session']->getLanguage()).'" data-date-autoclose="true" data-provide="datepicker">
|
||||
<input type="text" class="form-control" id="'.$fieldname.'_'.$attrdef->getId().($namepostfix ? '_'.$namepostfix : '').'" name="'.$fieldname.'['.$attrdef->getId().']'.($namepostfix ? '['.$namepostfix.']' : '').'" value="'.($objvalue ? $objvalue : '').'" data-date="'.getReadableDate().'" data-date-format="'.$dateformat.'" data-date-language="'.str_replace('_', '-', $this->params['session']->getLanguage()).'" data-date-autoclose="true" data-provide="datepicker">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
|
@ -3527,13 +3527,13 @@ $("body").on("click", "span.openpopupbox", function(e) {
|
|||
?>
|
||||
<div class="accordion" id="accordion<?php echo $id; ?>">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion<?php echo $id; ?>" href="#collapse<?php echo $id; ?>">
|
||||
<div class="card-header" id="accordionheader<?php echo $id; ?>">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion<?php echo $id; ?>" data-target="#collapse<?php echo $id; ?>">
|
||||
<?php echo $title; ?>
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse<?php echo $id; ?>" class="accordion-body collapse" style="height: 0px;">
|
||||
<div class="accordion-inner">
|
||||
<div id="collapse<?php echo $id; ?>" class="collapse" data-parent="accordion<?php echo $id; ?>">
|
||||
<div class="card-body">
|
||||
<?php
|
||||
echo $content;
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user