Commit 8cfcc7e7 by Azhan Hannan

Confirmation Pop Up : save mandays, add project team, edit project team, edit project

parent 7d6b4c63
...@@ -84,9 +84,53 @@ ...@@ -84,9 +84,53 @@
</select> --> </select> -->
</div> </div>
<button class="ui blue button" type="submit">Update</button> <div class="ui modal tiny update">
<i class="close icon"></i>
<div class="header">
Update Confirmation
</div>
<div class="content">
<div class="ui header">Are you sure you want to make changes for this project team?</div>
</div>
<div class="actions">
<button class="ui red deny button" type="button">
Nope
</button>
<!-- <button class="ui blue button" type="submit">Update</button> -->
<button class="ui positive right labeled icon button" type="submit">
Yes, I'm sure
<i class="checkmark icon"></i>
</button>
</div>
</div>
<button class="ui blue button" onclick="update()" type="submit">Update</button>
<button class="ui green button" type="button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProjectTeam', ['id'=> $pid] ) }} ';">Back</button> <button class="ui green button" type="button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProjectTeam', ['id'=> $pid] ) }} ';">Back</button>
</form> </form>
</div> </div>
@endsection @endsection
@push('script')
<script type="text/javascript">
function update() {
alert("Are you sure you want to make changes for this project team?");
}
</script>
<script type="text/javascript">
$(function(){
$("#update").click(function(){
$(".update").modal('show');
});
$(".update").modal({
closable: true
});
});
</script>
@endpush
\ No newline at end of file
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</tbody> </tbody>
</table> </table>
<button class="ui blue button" type="submit">Save</button> <button class="ui blue button" onclick="save()" type="submit">Save</button>
<button class="ui green button" type="button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProject') }} ';">Back</button> <button class="ui green button" type="button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProject') }} ';">Back</button>
</form> </form>
</div> </div>
...@@ -83,6 +83,13 @@ ...@@ -83,6 +83,13 @@
@endsection @endsection
@push('script') @push('script')
<script type="text/javascript">
function save() {
alert('Are you sure you want to keep the changes?');
}
</script>
<script> <script>
function onlynumber(evt) function onlynumber(evt)
{ {
......
...@@ -58,10 +58,35 @@ ...@@ -58,10 +58,35 @@
</select> </select>
</div> </div>
<div class="ui primary submit button">Add</div> <!-- <button class="ui button yellow create_btn" type="submit" id="update">Update</button> -->
<!-- <div class="ui primary submit button" type="submit" id="addpteam">Add</div> -->
<button class="ui primary button" type="submit" onclick="addpteam()">Add</button>
<button class="ui green button" type="button" onclick="history.back()">Back</button> <button class="ui green button" type="button" onclick="history.back()">Back</button>
<div class="ui error message"></div> <div class="ui error message"></div>
<div class="ui modal tiny addpteam">
<i class="close icon"></i>
<div class="header">
Confirmation
</div>
<div class="content">
<div class="ui header">Are you sure you want to add the project team?</div>
<!-- <p>Is it okay to use this photo?</p> -->
</div>
<div class="actions">
<div class="ui red deny button">
Nope
</div>
<div class="ui positive right labeled icon submit button">
Yes, I'm sure
<i class="checkmark icon"></i>
</div>
</div>
</div>
</form> </form>
</div> </div>
...@@ -208,4 +233,21 @@ function myDepartment() { ...@@ -208,4 +233,21 @@ function myDepartment() {
} }
</script> </script>
<script type="text/javascript">
$(function(){
$("#addpteam").click(function(){
$(".addpteam").modal('show');
});
$(".addpteam").modal({
closable: true
});
});
</script>
<script type="text/javascript">
function addpteam() {
alert("Are you sure you want to add the project team?");
}
</script>
@endpush @endpush
\ No newline at end of file
@extends('ui::layouts.app') @extends('ui::layouts.app')
@section('content') @section('content')
<div class="ui segment"> <div class="ui segment">
<a class="ui blue left ribbon label">Edit Project</a> <a class="ui blue left ribbon label">Edit Project</a>
<br><br> <br><br>
...@@ -36,8 +37,55 @@ ...@@ -36,8 +37,55 @@
<option value="0">Inactive</option> <option value="0">Inactive</option>
</select> </select>
</div> </div>
<button class="ui blue button" type="submit">Update</button>
<div class="ui modal tiny update">
<i class="close icon"></i>
<div class="header">
Update Confirmation
</div>
<div class="content">
<div class="ui header">Are you sure you want to make changes for this project?</div>
<!-- <p>Is it okay to use this photo?</p> -->
</div>
<div class="actions">
<div class="ui red deny button">
Nope
</div>
<button class="ui positive right labeled icon button" type="button">
Yes, I'm sure
<i class="checkmark icon"></i>
</button>
</div>
</div>
<button class="ui button yellow create_btn" onclick="update()" type="submit">Update</button>
<!-- <button class="ui button yellow create_btn" type="button" id="update">Update</button> -->
<button class="ui green button" type="button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProject') }} ';">Back</button> <button class="ui green button" type="button" onclick="window.location.href='{{ route('timesheet::maintenance.senaraiProject') }} ';">Back</button>
</form> </form>
</div> </div>
@endsection @endsection
@push('script')
<script type="text/javascript">
$(function(){
$("#update").click(function(){
$(".update").modal('show');
});
$(".update").modal({
closable: true
});
});
</script>
<script type="text/javascript">
function update(){
alert('Are you sure you want make changes for this project?');
}
</script>
@endpush
\ No newline at end of file
...@@ -44,6 +44,7 @@ class MaintenanceController extends Controller ...@@ -44,6 +44,7 @@ class MaintenanceController extends Controller
// dd($roleid); // dd($roleid);
$chargeable = 1; $chargeable = 1;
// dd($roleid);
if($roleid == '9' || $roleid == '2' || $roleid == '6' ) if($roleid == '9' || $roleid == '2' || $roleid == '6' )
{ {
...@@ -73,7 +74,6 @@ class MaintenanceController extends Controller ...@@ -73,7 +74,6 @@ class MaintenanceController extends Controller
->orWhere('pm_name', 'like', "%$keyword%") ->orWhere('pm_name', 'like', "%$keyword%")
->orWhere('pd_name', 'like', "%$keyword%") ->orWhere('pd_name', 'like', "%$keyword%")
->paginate('10'); ->paginate('10');
// dd($data);
} }
else else
// if($roleid == '8') // if($roleid == '8')
...@@ -107,6 +107,7 @@ class MaintenanceController extends Controller ...@@ -107,6 +107,7 @@ class MaintenanceController extends Controller
->orWhere('pm_name', 'like', "%$keyword%") ->orWhere('pm_name', 'like', "%$keyword%")
->orWhere('pd_name', 'like', "%$keyword%") ->orWhere('pd_name', 'like', "%$keyword%")
->paginate('10'); ->paginate('10');
// dd($user->staff_id);
} }
// dd($project); // dd($project);
......
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