penambahan nidn
This commit is contained in:
parent
00390b2505
commit
6c148b662c
@ -24,7 +24,7 @@
|
||||
<p class="description">{{ get_phrase('See your growth and get consulting support! ') }}</p>
|
||||
<div class="form-group mb-5">
|
||||
<label for="" class="form-label">{{ get_phrase('Name') }}</label>
|
||||
<input type="text" name="name" class="form-control @error('name') is-invalid @enderror" placeholder="Your Name" value="{{ old('name') }}">
|
||||
<input type="text" name="name" class="form-control @error('name') is-invalid @enderror" placeholder="{{ get_phrase('Your Name') }}" value="{{ old('name') }}">
|
||||
|
||||
@error('name')
|
||||
<small class="text-danger">{{ $message }}</small>
|
||||
@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<div class="form-group mb-5">
|
||||
<label for="" class="form-label">{{ get_phrase('Email') }}</label>
|
||||
<input type="email" name="email" class="form-control @error('email') is-invalid @enderror" placeholder="Your Email" value="{{ old('email') }}">
|
||||
<input type="email" name="email" class="form-control @error('email') is-invalid @enderror" placeholder="{{ get_phrase('Your Email') }}" value="{{ old('email') }}">
|
||||
|
||||
@error('email')
|
||||
<small class="text-danger">{{ $message }}</small>
|
||||
@ -54,23 +54,23 @@
|
||||
</div>
|
||||
|
||||
<div id="become-instructor-fields" class="{{ old('instructor') ? '' : 'd-none' }}">
|
||||
<div class="form-group mb-5">
|
||||
<label for="" class="form-label">{{ get_phrase('NIDN') }}</label>
|
||||
<input class="form-control @error('phone') is-invalid @enderror" id="nidn" type="text" name="nidn" placeholder="{{ get_phrase('Enter your NIDN number') }}" value="{{ old('nidn') }}">
|
||||
@error('phone')
|
||||
{{-- <div class="form-group mb-5">
|
||||
<label for="nidn" class="form-label">{{ get_phrase('NIDN') }}</label>
|
||||
<input class="form-control @error('nidn') is-invalid @enderror" id="nidn" type="text" name="nidn" placeholder="{{ get_phrase('Enter your NIDN number') }}" value="{{ old('nidn') }}">
|
||||
@error('nidn')
|
||||
<small class="text-danger">{{ $message }}</small>
|
||||
@enderror
|
||||
</div>
|
||||
</div> --}}
|
||||
<div class="form-group mb-5">
|
||||
<label for="phone" class="form-label">{{ get_phrase('Phone') }}</label>
|
||||
<input class="form-control @error('phone') is-invalid @enderror" id="phone" type="phone" name="phone" placeholder="{{ get_phrase('Enter your phone number') }}" value="{{ old('phone') }}">
|
||||
<input class="form-control @error('phone') is-invalid @enderror" id="phone" type="tel" name="phone" placeholder="{{ get_phrase('Enter your phone number') }}" value="{{ old('phone') }}">
|
||||
@error('phone')
|
||||
<small class="text-danger">{{ $message }}</small>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="form-group mb-5">
|
||||
<label for="document" class="form-label">{{ get_phrase('Document') }} <small>(doc, docs, pdf, txt, png, jpg, jpeg)</small></label>
|
||||
<input class="form-control @error('document') is-invalid @enderror" id="document" type="file" name="document">
|
||||
<input class="form-control @error('document') is-invalid @enderror" id="document" type="file" name="document" accept=".doc,.docx,.pdf,.txt,.png,.jpg,.jpeg" onchange="validateFileSize(this)">
|
||||
@error('document')
|
||||
<small class="text-danger">{{ $message }}</small>
|
||||
@enderror
|
||||
@ -142,5 +142,18 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// File size validation
|
||||
function validateFileSize(input) {
|
||||
const file = input.files[0];
|
||||
if (file) {
|
||||
const fileSizeInMB = file.size / (1024 * 1024); // Convert to MB
|
||||
if (fileSizeInMB > 2) {
|
||||
// Show error message using existing toaster system
|
||||
error('{{ get_phrase("File size exceeds 2MB limit.") }}');
|
||||
input.value = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
Loading…
Reference in New Issue
Block a user