UPDATE public.core_assets
SET asset_innerhtml='<form id="stash_files_form"  autocomplete="off">
	
	<div class="row">
	
		<div class="form-group col-md-3">
			<label for="stash_files_select">{form_stash_files_select}</label>
			<input type="file" onchange="jivaCoreFunc.loadFile(this, ''getFileName'');"  class="form-control" id="stash_files_select" name="file" required>
		</div>
		
		<div class="form-group col-md-3">
			<label for="stash_files_objectid">{form_stash_files_objectid}</label>
			<input type="text" class="form-control" id="stash_files_objectid" name="objectId" required>
		</div>
		
		<div class="form-group col-md-3">
			<label for="stash_files_title">{form_stash_files_title}</label>
			<input type="text" class="form-control" id="stash_files_title" name="title" required>
			<input type="hidden" class="form-control" id="id" name="id" required>
		</div>
		
		<div class="form-group col-md-3">
			<label for="folder">{form_stash_files_select_folder}</label>
			<select type="text" class="form-control" id="folder" required>
				<option disabled selected value> -- select an option -- </option>
				<option value="documents">documents</option>
				<option value="images">images</option>
				<option value="videos">videos</option>
			</select>
		</div>
	</div>
		
	<div class="row">
       <div class="form-group col-md-8">
            <label for="meta">{form_stash_files_meta}</label>
            <div class="jc-jsoneditor" style="width: auto; height: auto;" id="meta" data-name="meta" data-type="jsoneditor" data-value=''{"objectId": "xxxxx", "objectCategory": "xxxxx"}'' ></div>
       </div>		
  	</div>
  	
</form>',
asset_parameters='{}'::jsonb WHERE asset_name='stash_files_form';
INSERT INTO public.core_permissions
(code, permission_name, parent, permission_function, default_child, permission_namespace, "module", permission_description, permission_type, icon, ord, guest, meta, hidden)
VALUES('XSFUPD', 'stash_files_update', 'SFILEDT', 'updStashFiles', '', 'stash/files', 'stash', 'Permission to update files', 'EXE', '', 1, false, NULL, false);
INSERT INTO public.core_permissions
(code, permission_name, parent, permission_function, default_child, permission_namespace, "module", permission_description, permission_type, icon, ord, guest, meta, hidden)
VALUES('BFILSRC', 'stash_files_list_button_search', 'SSFILES', '', '', 'stash/files', 'stash', 'Permission to for search button', 'BUT', 'fas fa-search', 1, false, NULL, false);
INSERT INTO public.core_permissions
(code, permission_name, parent, permission_function, default_child, permission_namespace, "module", permission_description, permission_type, icon, ord, guest, meta, hidden)
VALUES('BFILFRM', 'stash_files_list_button_filters_remove', 'SSFILES', '', '', 'stash/files', 'stash', 'Permission to for remove filter button', 'BUT', 'fas fa-times', 1, false, NULL, false);
INSERT INTO public.core_permissions
(code, permission_name, parent, permission_function, default_child, permission_namespace, "module", permission_description, permission_type, icon, ord, guest, meta, hidden)
VALUES('BFILFLT', 'stash_files_list_button_filters', 'SSFILES', '', '', 'stash/files', 'stash', 'Permission to for filter button', 'BUT', 'fas fa-filter', 1, false, NULL, false);
