* change todo/batchcreate view.
This commit is contained in:
@@ -12,17 +12,10 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" id="todoBatchAddHeader">
|
||||
<div class="modal-actions">
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=todo§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php if(isonlybody()):?>
|
||||
<div class="divider"></div>
|
||||
<button id='closeModal' type="button" class="btn btn-link" data-dismiss="modal"><i class="icon icon-close"></i></button>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<h4 class="modal-title pull-left"><?php echo $lang->todo->batchCreate . $lang->todo->common;?></h4>
|
||||
|
||||
<div id="mainContent" class="main-content">
|
||||
<div class="main-header">
|
||||
<h2><?php echo $lang->todo->batchCreate . $lang->todo->common;?></h2>
|
||||
<div class="input-group pull-left">
|
||||
<span class="input-group-addon"><?php echo $lang->todo->date;?></span>
|
||||
<input type="text" name="date" value="<?php echo $date;?>" class="form-control form-date" autocomplete="off" />
|
||||
@@ -33,6 +26,10 @@
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
<div class="pull-right btn-toolbar">
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=todo§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
</div>
|
||||
</div>
|
||||
<form id='todoBatchAddForm' class='modal-body' method='post' target='hiddenwin' action='<?php echo $this->createLink('todo', 'batchCreate');?>'>
|
||||
<?php
|
||||
@@ -90,15 +87,13 @@
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class="hidden">
|
||||
<div class='checkbox-primary'>
|
||||
<input type="hidden" name="date" value="<?php echo $date;?>" />
|
||||
<input type="checkbox" name="switchDate" class="control-time-switch" />
|
||||
<label></label>
|
||||
</div>
|
||||
<input type="hidden" name="date" value="<?php echo $date;?>" />
|
||||
<input type="checkbox" name="switchDate" class="control-time-switch" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script language='Javascript'>
|
||||
|
||||
<script>
|
||||
var $form = $('#todoBatchAddForm').on('change', '.control-time-switch', function()
|
||||
{
|
||||
var $checkbox = $(this);
|
||||
@@ -119,13 +114,5 @@ $header.find('[name="date"]').on('change', function()
|
||||
});
|
||||
|
||||
var batchCreateNum = '<?php echo $config->todo->batchCreate;?>';
|
||||
<?php if(isonlybody()):?>
|
||||
$(function()
|
||||
{
|
||||
parent.$('.modal-header').hide();
|
||||
parent.$('.modal-body').css('padding', '0px');
|
||||
$('#closeModal').click(function(){parent.$.closeModal();});
|
||||
})
|
||||
<?php endif;?>
|
||||
</script>
|
||||
<?php include './footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user