Commit b263f010 by hannan

nonchargeable changes

parent 41b6a554
......@@ -16,6 +16,18 @@ input[type=number] {
}
</style>
<div class="ui small modal task">
<div class="header">
Add Task
</div>
<form action="">
</form>
<div class="actions">
<div class="ui blue button">Add</div>
</div>
</div>
<div class="ui segment">
<a class="ui blue left ribbon label">Non-Chargeable Form</a>
<br>
......@@ -39,6 +51,21 @@ input[type=number] {
</div>
</form>
<br>
<button class="center aligned ui olive compact labeled icon button" id="task">
<i class="plus icon"></i>
Task
</button>
@if($phase == 1)
<button class="center aligned ui green compact right labeled icon button" id="phase2" onclick="window.location.href='{{ route('timesheet::dashboard.nonChargeableForm', ['phase' => 2], ['month' => $month], ['year' => $year]) }}';">
<i class="angle double right icon"></i>
Phase 2
</button>
@else
<button class="center aligned ui green compact labeled icon button" id="phase1" onclick="window.location.href='{{ route('timesheet::dashboard.nonChargeableForm', ['phase' => 1], ['month' => $month], ['year' => $year]) }}';">
<i class="angle double left icon"></i>
Phase 1
</button>
@endif
<form class="ui form" action="{{ route('timesheet::dashboard.savechargeablehours' )}}" method="POST">
{{csrf_field()}}
<input type="hidden" name="userId" value="{{$userId}}">
......@@ -48,7 +75,7 @@ input[type=number] {
<table class="ui celled structured table">
<thead>
<tr>
<th colspan="2">Chargeable</th>
<th colspan="2">Non-Chargeable</th>
<th colspan="@if($phase == 1) 15 @else {{$daymonth-15}} @endif" class="center aligned">Date</th>
<th>
<button type="submit" class="fluid center aligned ui blue compact labeled icon button">
......@@ -145,17 +172,6 @@ input[type=number] {
</table>
</form>
<br>
@if($phase == 1)
<button class="center aligned ui green compact right labeled icon button" id="phase2" onclick="window.location.href='{{ route('timesheet::dashboard.nonChargeableForm', ['phase' => 2], ['month' => $month], ['year' => $year]) }}';">
<i class="angle double right icon"></i>
Phase 2
</button>
@else
<button class="center aligned ui green compact labeled icon button" id="phase1" onclick="window.location.href='{{ route('timesheet::dashboard.nonChargeableForm', ['phase' => 1], ['month' => $month], ['year' => $year]) }}';">
<i class="angle double left icon"></i>
Phase 1
</button>
@endif
</div>
@endsection
......@@ -163,6 +179,17 @@ input[type=number] {
@push('script')
<script>
$(function(){
$("#task").click(function(){
$(".task").modal('show');
});
$(".task").modal({
closable: true
});
});
</script>
<script>
function onlynumber(evt)
{
var theEvent = evt || window.event;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment