Skip to content

Commit 5342a2d

Browse files
committed
feat: add storage update action and organization creation forms
1 parent 767db63 commit 5342a2d

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

CoCreate.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ module.exports = {
3939
"demo-code": "{{./src/demos/demo.html}}"
4040
}
4141
}
42-
]
42+
],
43+
"configPath": "/home/cocreate/CoCreate/CoCreate-website/CoCreate.config.js",
44+
"filePath": "/home/cocreate/CoCreate/CoCreate-website/CoCreate.config.js",
45+
"hideMessage": false
4346
};

src/account/organization/update.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@
199199
hover-attribute="class"
200200
hover-value="display:inline-flex!important">
201201
<div class="display:none options">
202+
<a
203+
actions="updateStorage">
204+
<i src="../assets/svg/trash.svg"></i>
205+
</a>
202206
<a
203207
actions="click, timeout(1000), action($document #deleteStorage)"
204208
click-query="$document #deleteStorageKey"
@@ -270,4 +274,18 @@
270274
<input id="deleteStorageKey" type="hidden" key="" />
271275
<a id="deleteStorage" actions="save"></a>
272276
</form>
277+
<form>
278+
<input type="text" array="organizations" state_id="accountOrg" object key="_id">
279+
<input type="text" array="users" object="$user_id" key="_id">
280+
<!-- <input type="text" array="users" object="$user_id" key="lastname">
281+
<input type="email" array="users" object="$user_id" key="email">
282+
<input type="password" array="users" object="$user_id" key="password"> -->
283+
<button actions="createOrganization">Create</button>
284+
</form>
285+
<form>
286+
<input type="text" array="organizations" object key="_id" state_id="accountOrg">
287+
<input type="text" array="users" object="$user_id" key="_id">
288+
<button actions="createOrganization">Create with</button>
289+
</form>
290+
273291
</section>

0 commit comments

Comments
 (0)