Skip to content

Commit

Permalink
Update scheduled email, update navbar sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
ajifatur committed Jun 11, 2021
1 parent 2d0a48f commit c9f6eda
Show file tree
Hide file tree
Showing 11 changed files with 243 additions and 69 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 24 additions & 9 deletions resources/views/admin/email/create.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,21 @@
@endif
</div>
</div>
<div class="form-group row form-jadwal d-none">
<div class="form-group row form-jadwal {{ old('terjadwal') != 1 ? 'd-none' : '' }}">
<label class="col-md-2 col-form-label">Waktu Pengiriman Email <span class="text-danger">*</span></label>
<div class="col-md-10">
<div class="input-group">
<input type="text" name="waktu" class="form-control {{ $errors->has('waktu') ? 'is-invalid' : '' }}" value="{{ old('waktu') }}">
<input type="text" name="scheduled" class="form-control clockpicker {{ $errors->has('scheduled') ? 'is-invalid' : '' }}" value="{{ old('scheduled') }}" autocomplete="off">
<div class="input-group-append">
<span class="input-group-text {{ $errors->has('waktu') ? 'border-danger' : '' }}"><i class="fa fa-clock-o"></i></span>
<span class="input-group-text {{ $errors->has('scheduled') ? 'border-danger' : '' }}"><i class="fa fa-clock-o"></i></span>
</div>
</div>
@if($errors->has('waktu'))
<div class="small text-danger mt-1">{{ ucfirst($errors->first('waktu')) }}</div>
@if($errors->has('scheduled'))
<div class="small text-danger mt-1">{{ ucfirst($errors->first('scheduled')) }}</div>
@endif
</div>
</div>
<div class="form-group row">
<div class="form-group row form-penerima {{ old('terjadwal') == 0 || old('terjadwal') == null ? '' : 'd-none' }}">
<label class="col-md-2 col-form-label">Penerima <span class="text-danger">*</span></label>
<div class="col-md-10">
<a class="btn btn-sm btn-secondary btn-search" href="#"><i class="fa fa-search mr-2"></i>Cari Penerima</a>
Expand All @@ -93,7 +93,7 @@
<div class="form-group row">
<label class="col-md-2 col-form-label"></label>
<div class="col-md-10">
<button type="submit" class="btn btn-theme-1"><i class="fa fa-send mr-2"></i>Kirim</button>
<button type="submit" class="btn btn-theme-1"><i class="fa fa-save mr-2"></i>Simpan</button>
</div>
</div>
</form>
Expand Down Expand Up @@ -178,14 +178,27 @@

@include('faturcms::template.admin._js-editor')

<script src="{{ asset('assets/plugins/clockpicker/bootstrap-clockpicker.min.js') }}"></script>
<script type="text/javascript">
// Quill
generate_quill("#editor");
// Clockpicker
$(".clockpicker").clockpicker({
autoclose: true
});
// Change Terjadwal
$(document).on("change", "input[name=terjadwal]", function(){
var terjadwal = $(this).val();
terjadwal == 1 ? $(".form-jadwal").removeClass("d-none") : $(".form-jadwal").addClass("d-none");
if(terjadwal == 1){
$(".form-jadwal").removeClass("d-none");
$(".form-penerima").addClass("d-none");
}
else{
$(".form-penerima").removeClass("d-none");
$(".form-jadwal").addClass("d-none");
}
});
// Button Search
Expand Down Expand Up @@ -380,8 +393,10 @@ function countChecked(array){
@section('css-extra')

<link rel="stylesheet" type="text/css" href="{{ asset('assets/plugins/quill/quill.snow.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('assets/plugins/clockpicker/bootstrap-clockpicker.min.css') }}">
<style type="text/css">
#modal-search .modal-content, #modal-import .modal-content {max-height: 500px; overflow-y: hidden;}
#modal-search .modal-content {max-height: calc(100vh - 50px); overflow-y: hidden;}
#modal-import .modal-content {max-height: 500px; overflow-y: hidden;}
.modal-body {overflow-y: auto;}
#table-receivers tr td {padding: .5rem!important;}
#table-receivers tr:hover {background-color: #eeeeee!important;}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/email/detail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function countChecked(array){

<link rel="stylesheet" type="text/css" href="{{ asset('assets/plugins/quill/quill.snow.css') }}">
<style type="text/css">
.modal-content {max-height: 500px; overflow-y: hidden;}
#modal-search .modal-content {max-height: calc(100vh - 50px); overflow-y: hidden;}
.modal-body {overflow-y: auto;}
#table-receivers tr td {padding: .5rem!important;}
#table-receivers tr:hover {background-color: #eeeeee!important;}
Expand Down
Loading

0 comments on commit c9f6eda

Please sign in to comment.