* change todo/batchcreate view.

This commit is contained in:
Catouse
2018-05-08 16:16:11 +08:00
parent 1f144cf5af
commit 67f123fb2e
2 changed files with 13 additions and 25 deletions
+12 -25
View File
@@ -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&section=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&section=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';?>