<AppBarTop @leftRoute="privilege-info.index" @title="Privilege Info" @rightAction={{ action "savePrivilegeInfo"  }} @rightActionInProgress={{ rightActionInProgress }} @rightIcon="bxs-message-square-check" />
<section class="content-header">
	<div class="container">
		<div class="row align-items-center">
			<div class="col-6 col-sm order-sm-last text-right order-last">
				<h6 class="mb-0"><strong>HOYU</strong></h6>
			</div>
			<div class="col-6 col-sm mt-2 mt-sm-0 order-sm-first order-first">
			</div>
		</div>
	</div>
</section>
<section class="content-body">
	<div class="container">
		<div class="col-12">
			{{#if errorMessages}}
				<div class="alert on alert-danger alert-dismissible fade show" role="alert">
					<ul class="mb-0 ml-2">
					{{#each errorMessages as |item| }}
						<li>{{ item }}</li>
					{{/each}}
					</ul>
				</div>
			{{/if}}
			<div class="accordion-div" id="accordion-privilege-info">
				<AppCard @id="privilege-info"  @showHeader={{ true }} @parentId="privilege-info" @title="Privilege Info">
					<div class="row">
						<div class="col-12 col-md-6">
							<AppInputComboboxAutocomplete @name="groupId" @searchField="name" @primaryValue="name" @valuePath="groupId" @label="User Group" @model={{ model.coreUserGroup }} @modelAll={{ model }} @options={{ this.groupIds }} @didValidate={{ didValidate }} @isEditable={{ if formConfig.groupId formConfig.groupId.isEditable true }}/>
						</div>
						<div class="col-12 col-md-6">
							<AppInputComboboxAutocomplete @name="functionId" @searchField="name" @primaryValue="name" @valuePath="functionId" @label="Function Info" @model={{ model.coreFunctionInfo }} @modelAll={{ model }} @options={{ this.functionIds }} @didValidate={{ didValidate }} @isEditable={{ if formConfig.functionId formConfig.functionId.isEditable true }}/>
						</div>
						<div class="col-12 col-md-6">
							<div class="form-check form-check-inline form-checkbox form-group">
								<input type="checkbox" class="form-check-input d-none" value="1" id="allow-create-{{index}}" onclick={{action (mut model.allowCreate) value="target.checked"}} checked={{ eq model.allowCreate "1" }}>
								<label class="form-check-label align-items-center d-flex align-items-center{{if model.allowCreate " checked" ""}}" for="allow-create-{{index}}">
									<i class="bx bxs-check-circle"></i><span>&nbsp;&nbsp;Allow Create</span></label>
							</div>
						</div>
						<div class="col-12 col-md-6">
							<div class="form-check form-check-inline form-checkbox form-group">
								<input type="checkbox" class="form-check-input d-none" value="1" id="allow-read-{{index}}" onclick={{action (mut model.allowRead) value="target.checked"}} checked={{ eq model.allowRead "1" }}>
								<label class="form-check-label align-items-center d-flex align-items-center{{if model.allowRead " checked" ""}}" for="allow-read-{{index}}">
									<i class="bx bxs-check-circle"></i><span>&nbsp;&nbsp;Allow Read</span></label>
							</div>
						</div>
						<div class="col-12 col-md-6">
							<div class="form-check form-check-inline form-checkbox form-group">
								<input type="checkbox" class="form-check-input d-none" value="1" id="allow-update-{{index}}" onclick={{action (mut model.allowUpdate) value="target.checked"}} checked={{ eq model.allowUpdate "1" }}>
								<label class="form-check-label align-items-center d-flex align-items-center{{if model.allowUpdate " checked" ""}}" for="allow-update-{{index}}">
									<i class="bx bxs-check-circle"></i><span>&nbsp;&nbsp;Allow Update</span></label>
							</div>
						</div>
						<div class="col-12 col-md-6">
							<div class="form-check form-check-inline form-checkbox form-group">
								<input type="checkbox" class="form-check-input d-none" value="1" id="allow-delete-{{index}}" onclick={{action (mut model.allowDelete) value="target.checked"}} checked={{ eq model.allowDelete "1" }}>
								<label class="form-check-label align-items-center d-flex align-items-center{{if model.allowDelete " checked" ""}}" for="allow-delete-{{index}}">
									<i class="bx bxs-check-circle"></i><span>&nbsp;&nbsp;Allow Delete</span></label>
							</div>
						</div>
						<div class="col-12 col-md-6">
							<div class="form-check form-check-inline form-checkbox form-group">
								<input type="checkbox" class="form-check-input d-none" value="1" id="allow-submit-change-request-{{index}}" onclick={{action (mut model.allowSubmitChangeRequest) value="target.checked"}} checked={{ eq model.allowSubmitChangeRequest "1" }}>
								<label class="form-check-label align-items-center d-flex align-items-center{{if model.allowSubmitChangeRequest " checked" ""}}" for="allow-submit-change-request-{{index}}">
									<i class="bx bxs-check-circle"></i><span>&nbsp;&nbsp;Allow Submit Change Request</span></label>
							</div>
						</div>
						<div class="col-12 col-md-6">
							<div class="form-check form-check-inline form-checkbox form-group">
								<input type="checkbox" class="form-check-input d-none" value="1" id="allow-cancel-request-{{index}}" onclick={{action (mut model.allowCancelRequest) value="target.checked"}} checked={{ eq model.allowCancelRequest "1" }}>
								<label class="form-check-label align-items-center d-flex align-items-center{{if model.allowCancelRequest " checked" ""}}" for="allow-cancel-request-{{index}}">
									<i class="bx bxs-check-circle"></i><span>&nbsp;&nbsp;Allow Cancel Request</span></label>
							</div>
						</div>
						<div class="col-12 col-md-6">
							<div class="form-check form-check-inline form-checkbox form-group">
								<input type="checkbox" class="form-check-input d-none" value="1" id="is-show-{{index}}" onclick={{action (mut model.isShow) value="target.checked"}} checked={{ eq model.isShow "1" }}>
								<label class="form-check-label align-items-center d-flex align-items-center{{if model.isShow " checked" ""}}" for="is-show-{{index}}">
									<i class="bx bxs-check-circle"></i><span>&nbsp;&nbsp;Is Show</span></label>
							</div>
						</div>
					</div>
				</AppCard>
			</div>
		</div>
	</div>
</section>
