You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.4 KiB
29 lines
1.4 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Create Animal • YOPA</title>
|
|
<script src="../static/bundle.js"></script>
|
|
<link rel="stylesheet" href="../static/style.css">
|
|
</head>
|
|
<body>
|
|
<header class="navbar mb-2 mt-2">
|
|
<section class="navbar-section">
|
|
<a href="/" class="navbar-brand text-bold mr-2">
|
|
Yopa
|
|
</a><a href="/" class="btn btn-link">
|
|
<i class="icon icon-home"></i>Home</a></section>
|
|
<section class="navbar-section">
|
|
YOPA is the best
|
|
</section>
|
|
</header>
|
|
|
|
<div id="new-object-form"></div>
|
|
|
|
<script>
|
|
onLoad(() => {
|
|
window.app = Yopa.newObjectForm({"model_id":0,"objects":[],"schema":{"obj_models":[{"id":0,"name":"Animal","name_property":5},{"id":1,"name":"Food","name_property":null}],"prop_models":[{"data_type":"Boolean","default":{"Boolean":false},"id":11,"multiple":false,"name":"carnivore","object":0,"optional":false,"unique":false},{"data_type":"String","default":{"String":""},"id":2,"multiple":false,"name":"Name","object":0,"optional":false,"unique":true},{"data_type":"Decimal","default":{"Decimal":0.0},"id":12,"multiple":false,"name":"weight","object":0,"optional":false,"unique":false},{"data_type":"String","default":{"String":""},"id":5,"multiple":false,"name":"czech name","object":0,"optional":true,"unique":false}],"rel_models":[{"id":15,"multiple":false,"name":"eats","object":0,"optional":true,"reciprocal_name":"eaten by","related":1}]}})
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|