-- Auto-generated SQL script #202207221040
UPDATE public.core_permissions
	SET parent='MGEAR',"module"='gear',permission_name='gear_gears_list',permission_namespace='gear/gears'
	WHERE code='PDTYGRS';

-- Auto-generated SQL script #202207221017
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gears_list_view',permission_namespace='gear/gears'
	WHERE code='SGEARSL';

    -- Auto-generated SQL script #202207221021
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gears_list_edit',permission_namespace='gear/gears'
	WHERE code='SGRSEDT';

-- Auto-generated SQL script #202207221015
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gears_list_edit_save',permission_namespace='gear/gears'
	WHERE code='BGRSSAV';

-- Auto-generated SQL script #202207221017
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gears_list_edit_back',permission_namespace='gear/gears'
	WHERE code='BGRSBCK';


-- Auto-generated SQL script #202207221018
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gears_assign',permission_namespace='gear/gears'
	WHERE code='BGRSASS';

-- Auto-generated SQL script #202207221019
UPDATE public.core_permissions
	SET permission_function='getGearGears',"module"='gear',permission_name='gear_gears_list_get',permission_namespace='gear/gears'
	WHERE code='XGRSGET';

-- Auto-generated SQL script #202207221020
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gears_list_view_delete',permission_namespace='gear/gears'
	WHERE code='BGRSDEL';

-- Auto-generated SQL script #202207221022
UPDATE public.core_permissions
	SET permission_function='delGearGears',"module"='gear',permission_name='gear_gears_delete',permission_namespace='gear/gears'
	WHERE code='XGRSDEL';

-- Auto-generated SQL script #202207221025
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gear_add_user',permission_namespace='gear/gears'
	WHERE code='XGRSUSR';

-- Auto-generated SQL script #202207221025
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gears_list_view_edit',permission_namespace='gear/gears'
	WHERE code='BGRSEDT';

-- Auto-generated SQL script #202207221026
UPDATE public.core_permissions
	SET permission_function='addGearGears',"module"='gear',permission_name='gear_gears_add',permission_namespace='gear/gears'
	WHERE code='XGRSADD';

-- Auto-generated SQL script #202207221027
UPDATE public.core_permissions
	SET permission_function='updGearGears',"module"='gear',permission_name='gear_gears_update',permission_namespace='gear/gears'
	WHERE code='XGRSUPD';

-- Auto-generated SQL script #202207221027
UPDATE public.core_permissions
	SET "module"='gear',permission_name='gear_gears_list_view_add',permission_namespace='gear/gears'
	WHERE code='BGRSADD';


-- Auto-generated SQL script #202207221046
UPDATE public.core_assets
	SET asset_innerhtml='<form id="gear_gears_form" autocomplete="off">

	<div class="row">
		<div class="form-group col-md-6">
			<label for="gear">{form_gear_gears_gear}</label>
			<input id="gear" type="text" class="form-control" name="gear" required>
			<input id="id" type="hidden" class="form-control" name="id" required>	
		</div>
		
		<div class="form-group col-md-6">
			<label for="gears_user_id">{form_gear_gears_user_id}</label>
			<select id="gears_user_id" class="form-control" name="user_id" data-list="/api/v1/users/" data-null-first>
			</select>
		</div>
	</div><br>
	
    <div class="row">
		<div class="form-group control col-md-4">
			<label for="gears_meta">{form_gear_gears_location}</label>
			<input id="gears_meta" type="text" class="form-control" name="location" >
		</div>
        <div class="form-group control col-md-4">
			<label for="gears_meta">{form_gear_gears_position}</label>
			<input id="gears_meta" type="text" class="form-control" name="position" >
		</div>
        <div class="form-group control col-md-4">
			<label for="gears_meta">{form_gear_gears_type}</label>
			<input id="gears_meta" type="text" class="form-control" name="type" >
		</div>
    </div>
    <!-- <div class="row">
		<div class="form-group control col-md-3">
			<label for="gears_meta">{form_gear_gears_position}</label>
			<input id="gears_meta" type="text" class="form-control" name="position" >
		</div>
	</div>
	
    <div class="row">
		<div class="form-group control col-md-3">
			<label for="gears_meta">{form_gear_gears_type}</label>
			<input id="gears_meta" type="text" class="form-control" name="type" >
		</div>
	</div> -->
	
    <div class="row">
		<div class="form-group control col-md-12">
			<label for="gears_meta">{form_gear_gears_meta}</label>
			<textarea id="gears_meta" type="text" class="form-control" name="meta" required></textarea>
		</div>
	</div>

	
</form>',asset_name='gear_gears_form'
	WHERE asset_name='duty_gears_form';




ALTER TABLE public.duty_gears RENAME TO gear_gears;
