修改列表和登录

登录设置默认一天
列表页各行换色并点击换色
修改返回的一些bug
This commit is contained in:
郝大全
2017-07-18 16:56:22 +08:00
parent e982acb181
commit 980f49b486
8 changed files with 28 additions and 11 deletions

View File

@@ -104,18 +104,18 @@
<label class="col-sm-3 control-label" for="notify">邮件通知</label>
<div class="col-sm-6" >
<label class="radio-inline">
<input type="radio" name="notify" value="0" checked> 不通知
<input type="radio" name="notify" value="0" checked readonly> 不通知
</label>
<label class="radio-inline">
<input type="radio" name="notify" value="1"> 执行失败通知
<input type="radio" name="notify" value="1" > 执行失败通知
</label>
<label class="radio-inline">
<input type="radio" name="notify" value="2"> 执行结束通知
<input type="radio" name="notify" value="2" > 执行结束通知
</label>
</div>
<div class="col-sm-3" style="padding-top:5px;">
<i style="font-size: 12px;color: red">暂不支持</i>
</div>
</div>
@@ -156,6 +156,8 @@ $(function () {
return false;
});
$("input[name='notify']").click(function () {
// alert("暂不启用");
// return;
if ($(this).val() > 0) {
$('.notify_email').removeClass('hide');
} else {

View File

@@ -117,7 +117,7 @@
</label>
</div>
<div class="col-sm-3" style="padding-top:5px;">
<i style="font-size: 12px;color: red">暂不支持</i>
</div>
</div>

View File

@@ -69,7 +69,7 @@
</thead>
<tbody>
{{range $k,$v := .list}}
<tr>
<tr {{if eq $v.is_odd 0 }} style="background: #FFFFFF " {{else}} style="background: #f8f8f8" {{end}}>
<td class="chk"><input type="checkbox" name="ids" value="{{$v.id}}" /></td>
<td> {{$v.id}} </td>
<td>
@@ -80,8 +80,6 @@
{{end}}
&nbsp;
{{$v.name}}-{{$v.group_name}}
</td>
<td> {{$v.cron_spec}} </td>
<td> {{$v.description}} </td>
@@ -158,4 +156,8 @@ function batch(action) {
}
return false;
}
//点击行换色
$('tbody tr').click(function(){
$(this).addClass("warning").siblings().removeClass("warning");
});
</script>

View File

@@ -39,7 +39,7 @@
<hr />
<div class="btn-group">
<a href="{{urlfor "TaskController.Logs" "id" .task.Id}}" class="btn btn-default"><span class="icon-chevron-left"></span> 返 回</a>
<button class="btn btn-default reback"><span class="icon-chevron-left"></span> 返 回</button>
</div>
</div>