"Screen 1: RDJ processing"
Bootstrap 3.3.0 Snippet by jportali111813

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <form class="form-horizontal"> <fieldset> <!-- Form Name --> <legend>Accounting Self Service - RDJ processing</legend> <!-- Select Basic --> <div class="form-group"> <label class="col-md-4 control-label" for="selectbasic">Type of accounting file</label> <div class="col-md-4"> <select id="selectbasic" name="selectbasic" class="form-control"> <option value="1">CRE</option> <option value="2">CRI</option> <option value="3">SGIBML</option> </select> </div> </div> <!-- File Button --> <div class="form-group"> <label class="col-md-4 control-label" for="filebutton">File to upload</label> <div class="col-md-4"> <input id="filebutton" name="filebutton" class="input-file" type="file"> </div> </div> <!-- Multiple Radios --> <div class="form-group"> <label class="col-md-4 control-label" for="radios">RDJ environment</label> <div class="col-md-4"> <div class="radio"> <label for="radios-0"> <input type="radio" name="radios" id="radios-0" value="1" checked="checked"> UAT* </label> </div> <div class="radio"> <label for="radios-1"> <input type="radio" name="radios" id="radios-1" value="2"> Prod-like </label> </div> </div> </div> <!-- Based off the original date picker: http://bootsnipp.com/snippets/featured/simple-datepicker-with-momentjs --> <!-- Button --> <div class="form-group"> <label class="col-md-4 control-label" for="singlebutton"></label> <div class="col-md-4"> <button id="singlebutton" name="singlebutton" class="btn btn-primary">Submit</button> </div> </div> </fieldset> </form>
$(document).ready(function() { $('.date-picker').each(function () { var $datepicker = $(this), cur_date = ($datepicker.data('date') ? moment($datepicker.data('date'), "YYYY/MM/dd") : moment()); function updateDisplay(cur_date) { $('#dateinput').val(cur_date); $datepicker.find('.date-container > .date > .text').text(cur_date.format('Do')); $datepicker.find('.date-container > .month > .text').text(cur_date.format('MMMM')); $datepicker.find('.date-container > .year > .text').text(cur_date.format('YYYY')); $datepicker.data('date', cur_date.format('YYYY/MM/DD')); } updateDisplay(moment()); $datepicker.on('click', '[data-toggle="datepicker"]', function(event) { event.preventDefault(); var cur_date = moment($(this).closest('.date-picker').data('date'), "YYYY/MM/DD"), type = ($(this).data('type') ? $(this).data('type') : "date"), method = ($(this).data('method') ? $(this).data('method') : "add"), amt = ($(this).data('amt') ? $(this).data('amt') : 1); if (method == "add") { var duration = moment.duration(1,type); cur_date = cur_date.add(duration); }else if (method == "subtract") { cur_date = cur_date.subtract(1,type); } updateDisplay(cur_date); }); }); });

Related: See More


Questions / Comments: