"Create Update Listing"
Bootstrap 3.0.0 Snippet by edwarddikgale

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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 class="center">Add/Edit Listing (Event)</legend> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="textinput">Title/Name:</label> <div class="col-md-6"> <input id="textinput" name="textinput" type="text" placeholder="" class="form-control input-md" required=""> </div> </div> <!-- Select Basic --> <div class="form-group"> <label class="col-md-4 control-label" for="eventType">Type:</label> <div class="col-md-4"> <select id="eventType" name="eventType" class="form-control"> <option>Dj Performance</option> <option>Interview</option> <option>Live Show</option> <option>Radio Show</option> <option>Album Release</option> <option>EP Release</option> <option>Single Release</option> </select> </div> </div> <div class="form-group registration-date"> <label class="control-label col-md-4" for="registration-date">Start Date/Time:</label> <div class="col-md-4"> <div class="input-group registration-date-time"> <span class="input-group-addon" id="basic-addon1"><span class="glyphicon glyphicon-calendar" aria-hidden="true"></span></span> <input class="form-control" name="registration_date" id="registration-date" type="date"> <span class="input-group-addon" id="basic-addon1"><span class="glyphicon glyphicon-time" aria-hidden="true"></span></span> <input class="form-control" name="registration_time" id="registration-time" type="time"> </div> </div> </div> <!-- Appended Input--> <div class="form-group registration-date"> <label class="control-label col-md-4" for="registration-date">End Date/Time:</label> <div class="col-md-4"> <div class="input-group registration-date-time"> <span class="input-group-addon" id="basic-addon1"><span class="glyphicon glyphicon-calendar" aria-hidden="true"></span></span> <input class="form-control" name="registration_date" id="registration-date" type="date"> <span class="input-group-addon" id="basic-addon1"><span class="glyphicon glyphicon-time" aria-hidden="true"></span></span> <input class="form-control" name="registration_time" id="registration-time" type="time"> </div> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="venueName">Venue:</label> <div class="col-md-6"> <input id="venueName" name="venueName" type="text" placeholder="" class="form-control input-md"> </div> </div> <!-- Text input--> <div class="form-group"> <label class="col-md-4 control-label" for="webAddr">Website:</label> <div class="col-md-6"> <input id="webAddr" name="webAddr" type="text" placeholder="" class="form-control input-md"> </div> </div> <div class="form-group"> <label class="col-md-4 control-label" for="cost">Cost:</label> <div class="col-md-4"> <input id="cost" name="cost" type="text" placeholder="" class="form-control input-md"> </div> </div> <!-- Button (Double) --> <div class="form-group"> <label class="col-md-4 control-label" for="submitButton"></label> <div class="col-md-8"> <button id="submitButton" name="submitButton" class="btn btn-primary">Save</button> <button id="cancelButton" name="cancelButton" class="btn btn-danger">Cancel</button> </div> </div> </fieldset> </form>
.center { text-align: center; }
function addNow() { nowDate = moment().tz("Europe/London").format('YYYY-MM-DD'); nowTime = moment().tz("Europe/London").format('HH:mm:ss'); document.getElementById('registration-date').value = nowDate; document.getElementById('registration-time').value = nowTime; set = setTimeout(function () { addNow(); }, 1000); } function stopNow() { clearTimeout(set); }

Related: See More


Questions / Comments: