<div class="row">
	<div class="col-12">
		<h1 class="h4 mb-3">{{ title }}</h1>
		<form action="{{ admin_dir }}/gdrive/edit/?id={{ id }}" method="post" class="needs-validation" novalidate>
			<div class="row">
				<div class="col-12 col-md-6 mr-auto">
					<div class="form-group">
						<label for="email">Email</label>
						<input type="email" name="email" id="email" class="form-control" value="{{ email }}" maxlength="100" required>
					</div>
					<div class="form-group">
						<label for="api_key">API Key</label>
						<input type="text" name="api_key" id="api_key" class="form-control" value="{{ api_key }}" maxlength="50" required>
					</div>
					<div class="form-group">
						<label for="client_id">Client ID</label>
						<input type="text" name="client_id" id="client_id" class="form-control" value="{{ client_id }}" maxlength="100" required>
					</div>
					<div class="form-group">
						<label for="client_secret">Client Secret</label>
						<input type="text" name="client_secret" id="client_secret" class="form-control" value="{{ client_secret }}" maxlength="50" required>
					</div>
					<div class="form-group">
						<label for="refresh_token">Refresh Token</label>
						<input type="text" name="refresh_token" id="refresh_token" class="form-control" maxlength="150" value="{{ refresh_token }}" required>
					</div>
					<div class="form-group form-row">
						<label for="status" class="col-2">Status</label>
						<div class="col-10">
							<div class="custom-control custom-checkbox">
								<input type="checkbox" class="custom-control-input" name="status" id="status" value="1" {{ status_checked }}>
								<label class="custom-control-label" for="status">Enable</label>
							</div>
						</div>
					</div>
					<div class="form-group">
						<input type="hidden" name="id" value="{{ id }}">
						<button type="submit" class="btn btn-success">
							<em class="fas fa-save mr-2"></em>Update
						</button>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

