增加後台圖檔旋轉功能。加強報名地址檢查。修正前台文字。增加前後台報名欄位。設定報名欄位TWID為UNIQUE。修正前台報名可以連續送出的問題。
This commit is contained in:
@ -158,6 +158,10 @@
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#dataForm').submit(function(){
|
||||
$(this).find(':input[type=submit]').prop('disabled', true);
|
||||
});
|
||||
|
||||
$('#regTwid').on('change', function(){
|
||||
var val = $(this).val();
|
||||
val = toHalfWidth(val);
|
||||
|
@ -34,6 +34,35 @@
|
||||
@endif
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">疾病類別</label>
|
||||
<div class="form-control" >
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="disease_type" id="diseaseType1" value="1" {{ old('disease_type') == "1" ? 'checked' : '' }} required>
|
||||
<label class="form-check-label" for="diseaseType1">
|
||||
代謝症候群
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="disease_type" id="diseaseType2" value="2" {{ old('disease_type') == "2" ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="diseaseType2">
|
||||
糖尿病
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="disease_type" id="diseaseType3" value="3" {{ old('disease_type') == "3" ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="diseaseType3">
|
||||
初期慢性腎臟病
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="disease_type" id="diseaseType4" value="4" {{ old('disease_type') == "4" ? 'checked' : '' }}>
|
||||
<label class="form-check-label" for="diseaseType4">
|
||||
糖尿病及初期慢性腎臟病
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="regHospitalName" class="form-label">就醫院所</label>
|
||||
<input type="text" class="form-control" id="regHospitalName" name="hospital_name" required value="{{ old('hospital_name') }}" placeholder="範例:XX醫院">
|
||||
@ -154,6 +183,10 @@
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#dataForm').submit(function(){
|
||||
$(this).find(':input[type=submit]').prop('disabled', true);
|
||||
});
|
||||
|
||||
$('#regTwid').on('change', function(){
|
||||
var val = $(this).val();
|
||||
val = toHalfWidth(val);
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div class="col-md-8 main-area">
|
||||
<ul>
|
||||
<li>
|
||||
桃園市政府:<a href="https://www.tycg.gov.tw/" target="_blank">https://www.tycg.gov.tw/</a>
|
||||
桃園市政府衛生局:<a href="https://www.tycg.gov.tw/" target="_blank">https://www.tycg.gov.tw/</a>
|
||||
</li>
|
||||
<li>
|
||||
桃園市政府衛生局官方FB:<a href="https://zh-tw.facebook.com/tychbfans" target="_blank">https://zh-tw.facebook.com/tychbfans</a>
|
||||
|
@ -132,6 +132,9 @@
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
$('#dataForm').submit(function(){
|
||||
$(this).find(':input[type=submit]').prop('disabled', true);
|
||||
});
|
||||
|
||||
$('#regTwid').on('change', function(){
|
||||
var val = $(this).val();
|
||||
|
@ -23,12 +23,15 @@
|
||||
></embed>
|
||||
|
||||
@else
|
||||
<a href="{{ $field['url'] }}" data-lightbox="uploadImages">
|
||||
<a href="{{ $field['url'] }}" class="lightboxBtn" data-lightbox="uploadImages">
|
||||
<img style="border: solid gray 1px"
|
||||
src="{{ $field['url'] }}"
|
||||
height="{{ $field['height'] ?? '' }}"
|
||||
/>
|
||||
</a>
|
||||
@if (isset($field['image-rotation-url']))
|
||||
<br><a class="btn" onclick="var self = this; $.ajax({async: false, url:'{{ $field['image-rotation-url'] }}', method: 'POST', headers: {'Content-Type': 'application/json', 'X-CSRF-TOKEN': $('meta[name=\'csrf-token\']').attr('content')}, error: function(jqXHR, textStatus, errorThrown){alert('錯誤:' + errorThrown);}, success: function(data) { var elem = $(self).parent().find('img'); var src=$(elem).attr('src').split('?')[0] + '?' + (new Date().getTime()).toString(); $(elem).attr('src', src); $(elem).parent().attr('href', src); } });">旋轉圖片</a>
|
||||
@endif
|
||||
@endif
|
||||
@if(isset($field['hint']))
|
||||
<p class="help-block">{!! $field['hint'] !!}</p>
|
||||
|
Reference in New Issue
Block a user