<div class="top-pad"></div>

<div class="content-padding" ng-show="ready">

	<h1 class="title"><i class="fa fa-wrench"></i>Shift settings</h1>

	<div class="divider"></div>

	<form name="form" novalidate>

		<div class="ul-inputs">

			<p><strong>Shifts</strong><br><br></p>
			<ul ng-class="{'submitted':submitted}" class="box-content2">
				<li class="li-input" ng-class="{'error':form.minutesToWaitBeforeCreateNewShift.$invalid}">
					<div class="label">We create new 1 hour shifts when off-shift drivers accept orders. For drivers whose shifts just ended, how many minutes should we wait till we ask them if they want to create a new 1 hour shift, rather than just letting them accept the order without asking this question?</div>
					<div class="input">
						<input type="number" ignore-mouse-wheel name="minutesToWaitBeforeCreateNewShift" ng-model="config.create_driver_shift_buffer" required>
					</div>
					<div class="notes">Value in minutes.</div>
					<div class="box-error">
						<small ng-show="form.minutesToWaitBeforeCreateNewShift.$error.required">Required.</small>
					</div>
				</li>
			</ul>


			<ul ng-class="{'submitted':submitted}" class="box-content2">
				<li class="li-input">
					<button class="button green" ng-click="save();">Save</button>
				</li>
			</ul>
		</div>

	</form>

</div>

<spinner-loading></spinner-loading>
<hack-expand-content></hack-expand-content>