Commit b263f010 by hannan

nonchargeable changes

parent 41b6a554
...@@ -16,6 +16,18 @@ input[type=number] { ...@@ -16,6 +16,18 @@ input[type=number] {
} }
</style> </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"> <div class="ui segment">
<a class="ui blue left ribbon label">Non-Chargeable Form</a> <a class="ui blue left ribbon label">Non-Chargeable Form</a>
<br> <br>
...@@ -39,6 +51,21 @@ input[type=number] { ...@@ -39,6 +51,21 @@ input[type=number] {
</div> </div>
</form> </form>
<br> <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"> <form class="ui form" action="{{ route('timesheet::dashboard.savechargeablehours' )}}" method="POST">
{{csrf_field()}} {{csrf_field()}}
<input type="hidden" name="userId" value="{{$userId}}"> <input type="hidden" name="userId" value="{{$userId}}">
...@@ -48,7 +75,7 @@ input[type=number] { ...@@ -48,7 +75,7 @@ input[type=number] {
<table class="ui celled structured table"> <table class="ui celled structured table">
<thead> <thead>
<tr> <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 colspan="@if($phase == 1) 15 @else {{$daymonth-15}} @endif" class="center aligned">Date</th>
<th> <th>
<button type="submit" class="fluid center aligned ui blue compact labeled icon button"> <button type="submit" class="fluid center aligned ui blue compact labeled icon button">
...@@ -145,17 +172,6 @@ input[type=number] { ...@@ -145,17 +172,6 @@ input[type=number] {
</table> </table>
</form> </form>
<br> <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> </div>
@endsection @endsection
...@@ -163,6 +179,17 @@ input[type=number] { ...@@ -163,6 +179,17 @@ input[type=number] {
@push('script') @push('script')
<script> <script>
$(function(){
$("#task").click(function(){
$(".task").modal('show');
});
$(".task").modal({
closable: true
});
});
</script>
<script>
function onlynumber(evt) function onlynumber(evt)
{ {
var theEvent = evt || window.event; 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