<ol class="breadcrumb">
	<li><a href="#/">Dashboard</a></li>
	<li>Settings</li>
	<li class="active">PayJunction</li>
</ol>

<div class="container-fluid">
	<div class="row">
		<div class="col-md-12">
			<form name="form" class="form-horizontal" ng-submit="vm._save(vm.setting)" novalidate>
				<div class="panel panel-midnightblue">
					<div class="panel-heading">
						<h2>PayJunction</h2>
					</div>
					<div class="panel-body">
						<p>Fields with <span style="color: #cc0000;">*</span> are required.</p>
						<p>Routely uses PayJunction to process payments. Click <a href="https://www.payjunction.com/" target="_blank">here</a> to create an account.
						<div class="form-group">
							<label for="active" class="col-sm-2 control-label">Active <span style="color: #cc0000;">*</span></label>
							<div class="col-sm-8">
								<select class="form-control" name="active" id="active" ng-model="vm.setting.active" ng-required="true">
									<option value="">-- Select --</option>
									<option value="1">Yes</option>
									<option value="0">No</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="username" class="col-sm-2 control-label">Username <span style="color: #cc0000;">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="form-control" name="username" id="username" ng-model="vm.setting.username" ng-required="true">
							</div>
						</div>
						<div class="form-group">
							<label for="password" class="col-sm-2 control-label">Password <span style="color: #cc0000;">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="form-control" name="password" id="password" ng-model="vm.setting.password" ng-required="true">
							</div>
						</div>
						<div class="form-group">
							<label for="app_key" class="col-sm-2 control-label">Application Key <span style="color: #cc0000;">*</span></label>
							<div class="col-sm-8">
								<input type="text" class="form-control" name="app_key" id="app_key" ng-model="vm.setting.app_key" ng-required="true">
							</div>
						</div>
						<div class="form-group">
							<label for="environment" class="col-sm-2 control-label">Environment <span style="color: #cc0000;">*</span></label>
							<div class="col-sm-8">
								<select class="form-control" name="environment" id="environment" ng-model="vm.setting.environment" ng-required="true">
									<option value="">-- Select --</option>
									<option value="live">Live</option>
									<option value="test">Test</option>
								</select>
							</div>
						</div>
					</div>
					<div class="panel-footer">
						<div class="row">
							<div class="col-sm-8 col-sm-offset-2">
								<button type="submit" ng-disabled="!form.$valid" class="btn-primary btn">Save</button>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
