diff --git a/module/task/css/create.css b/module/task/css/create.css index c723963b03..02a3660e8f 100644 --- a/module/task/css/create.css +++ b/module/task/css/create.css @@ -6,6 +6,9 @@ .chosen-container {max-width: 980px} -.minw-80px {min-width: 120px;} -.minw-60px {min-width: 50px;} +#priRowCol, #estRowCol {width: 110px;} +.col-table .input-group {width: 100%} +#taskPlanCol, #mailCol {width: 50%} +#planAndMailCell.has-mail-col #taskPlanCol {padding-right: 5px;} +#planAndMailCell.has-mail-col #taskPlanCol + #mailCol {padding-left: 5px;} diff --git a/module/task/js/create.js b/module/task/js/create.js index d5e0308eda..a92ebf7610 100644 --- a/module/task/js/create.js +++ b/module/task/js/create.js @@ -152,14 +152,20 @@ $(document).ready(function() $('[data-toggle=tooltip]').tooltip(); - /* Code for kanban following codes. */ - // ajust style for file box - var ajustFilebox = function() + // adjust form controls layout + var ajustFormControls = function() { - applyCssStyle('.fileBox > tbody > tr > td:first-child {transition: none; width: ' + ($('#dataPlanGroup').width() - 2) + 'px}', 'filebox') + // adjust style for file box + applyCssStyle('.fileBox > tbody > tr > td:first-child {transition: none; width: ' + ($('#dataPlanGroup').width() - 1) + 'px}', 'filebox'); + + // adjust #priRowCol and #estRowCol size + var $priRowCol = $('#priRowCol'), + $estRowCol = $('#estRowCol'); + $priRowCol.css('width', 55 + $priRowCol.find('.input-group-addon').outerWidth()); + $estRowCol.css('width', 55 + $estRowCol.find('.input-group-addon').outerWidth()); }; - ajustFilebox(); - $(window).resize(ajustFilebox); + ajustFormControls(); + $(window).resize(ajustFormControls); /* First unbind ajaxForm for form.*/ $("form[data-type='ajax']").unbind('submit'); diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php index f6c9c6d3e1..6b90a40690 100644 --- a/module/task/view/create.html.php +++ b/module/task/view/create.html.php @@ -72,11 +72,9 @@ $hiddenPri = strpos(",$showFields,", ',pri,') === false; $hiddenEst = strpos(",$showFields,", ',estimate,') === false; ?> - - -
-
- + +
+
task->pri;?> - task->priList, '', "class='form-control minw-80px'");?> + task->priList, '', "class='form-control'");?> - - - task->estimateAB;?> - task->hour}'");?> -
- + + + +
+
+ task->estimateAB;?> + task->hour}'");?> +
+
+
@@ -123,33 +125,36 @@ task->mailto : $lang->task->datePlan;?> - - -
- - estStarted, "class='form-control form-date' placeholder='{$lang->task->estStarted}'");?> - - - ~ - - - deadline, "class='form-control form-date' placeholder='{$lang->task->deadline}'");?> - -
+ '> +
+ +
+
+ + estStarted, "class='form-control form-date' placeholder='{$lang->task->estStarted}'");?> + + + ~ + + + deadline, "class='form-control form-date' placeholder='{$lang->task->deadline}'");?> + +
+
+ + +
+
+ + task->mailto;?> + + acl == 'private' ? $members : $users, str_replace(' ', '', $task->mailto), "multiple class='form-control'");?> + fetch('my', 'buildContactLists');?> +
+
+ +
- - - - -
- - task->mailto;?> - - acl == 'private' ? $members : $users, str_replace(' ', '', $task->mailto), "multiple class='form-control'");?> - fetch('my', 'buildContactLists');?> -
- -