priority is now a radio button list not drop down

This commit is contained in:
Suraj 2016-02-02 21:08:49 +05:30
parent 57d096f8b9
commit 8be63f0bf1
2 changed files with 8 additions and 12 deletions

View File

@ -15,11 +15,10 @@
rows="10" style="border:none;border-bottom:1px solid gray; box-shadow:none;">{{.Content}}</textarea> rows="10" style="border:none;border-bottom:1px solid gray; box-shadow:none;">{{.Content}}</textarea>
<input type="text" name="id" value="{{.Id}}" class="hidden" /> <input type="text" name="id" value="{{.Id}}" class="hidden" />
Priority: <select name="priority"> Priority:
<option>---</option> <input type="radio" name="priority" value="3" {{if eq .Priority "3"}} checked="checked" {{end}} /> High
<option {{if eq .Priority "3"}} selected="true" {{end}} value="high">High</option> <input type="radio" name="priority" value="2" {{if eq .Priority "2"}} checked="checked" {{end}} /> Medium
<option {{if eq .Priority "2"}} selected="true" {{end}} value="medium">Medium</option> <input type="radio" name="priority" value="1" {{if eq .Priority "1"}} checked="checked" {{end}} /> Low
<option {{if eq .Priority "1"}} selected="true" {{end}} value="low">Low</option>
</select> </select>
</div> </div>
</div> </div>

View File

@ -22,14 +22,11 @@
<textarea class="form-control" name="content" id="add-note-content" placeholder="Content" rows="10" style="border:none;border-bottom:1px solid gray; box-shadow:none;"></textarea> <textarea class="form-control" name="content" id="add-note-content" placeholder="Content" rows="10" style="border:none;border-bottom:1px solid gray; box-shadow:none;"></textarea>
File: <input type="file" name="uploadfile" /> <br> File: <input type="file" name="uploadfile" /> <br>
Priority: <select name="priority"> Priority:
<option>---</option> <input type="radio" name="priority" value="3" /> High
<option value="3">High</option> <input type="radio" name="priority" value="2" /> Medium
<option value="2">Medium</option> <input type="radio" name="priority" value="1" /> Low
<option value="1">Low</option>
</select>
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>