Commit 1e4a5cc6 by Azhan Hannan

log pia #172 -> selection mengikut current month & phase

parent e59e48af
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<label>Month</label> <label>Month</label>
<select name="month" class="ui fluid dropdown" required="required"> <select name="month" class="ui fluid dropdown" required="required">
@foreach ($month as $key => $value) @foreach ($month as $key => $value)
<option value="{{ $key+1 }}">{{ $value }}</option> <option value="{{ $key+1 }}" @if($key+1 == date('m')) selected="selected" @endif>{{ $value }}</option>
@endforeach @endforeach
</select> </select>
</div> </div>
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
<div class="three wide field"> <div class="three wide field">
<label>Phase</label> <label>Phase</label>
<select name="phase" class="ui fluid dropdown" required="required"> <select name="phase" class="ui fluid dropdown" required="required">
<option value="1">1st Half-month</option> <option value="1" @if(date('d') < 16) selected="selected" @endif >1st Half-month</option>
<option value="2">2nd Half-month</option> <option value="2" @if(date('d') > 15) selected="selected" @endif >2nd Half-month</option>
</select> </select>
</div> </div>
......
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