Commit bb279670 authored by Clément's avatar Clément

update: index.html

parent 5be7c645
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.20/webcomponents-loader.js"></script>
<link rel="import" href="https://cdn.happy-dev.fr/sib-core/sib-display.html" />
<link rel="import" href="https://cdn.happy-dev.fr/sib-core/sib-form.html" />
<link rel="import" href="sib-router.html" />
<style>
sib-display {
display: flex;
}
#detail {
float: right;
border: solid blue;
}
.set1 {
display: flex;
color: orange;
}
.text {
font-weight: bold;
}
[active] {
color: orange;
}
</style>
</head>
<body>
<div id="loader" style="display:none">Chargement...</div>
<sib-router default-route="list">
<sib-route name="list">Voir la liste</sib-route>
<sib-route name="form">Voir le formulaire</sib-route>
</sib-router>
<main>
<div id="list">
<sib-router>
<sib-route name="detail" id-prefix="http://localhost:8000/members/">Voir le détail</sib-route>
</sib-router>
<div id="detail">
<sib-router>
<sib-route name="detail-red" id-prefix="http://localhost:8000/members/">en rouge</sib-route>
<sib-route name="detail-blue" id-prefix="http://localhost:8000/members/">en bleu</sib-route>
</sib-router>
<sib-display
id="detail-red"
style="color:red"
bind-resources
loader-id="loader"
data-src="http://localhost:8000/members/Alexandre/"
data-fields="firstname, author, text, assignees"
value-text="Ceci est un détail"
widget-assignees="sib-display-list"
></sib-display>
<sib-display
id="detail-blue"
style="color:blue"
bind-resources
loader-id="loader"
data-src="http://localhost:8000/members/Alexandre/"
data-fields="firstname, author, text, assignees"
value-text="Ceci est un détail"
widget-assignees="sib-display-list"
></sib-display>
</div>
<sib-display
id="list"
data-src="http://localhost:8000/members/"
data-fields="set1, author"
set-set1="firstname, lastname"
value-text="youpi"
search-fields="firstname, lastname"
next="detail"
></sib-display>
</div>
<div id="form">
<sib-router default-route="create">
<sib-route name="create">Nouveau</sib-route>
<sib-route name="edit">Modifier</sib-route>
</sib-router>
<section id="form-root">
<sib-form id="create" data-src="http://localhost:8000/members/"></sib-form>
<sib-form
id="edit"
data-src="http://localhost:8000/members/Alexandre/"
next="list"
widget-done="sib-form-checkbox"
label-name="What's your name, honey?"
range-author="http://localhost:8000/members/"
></sib-form>
</section>
</div>
<sib-trigger next="detail">Go to detail</sib-trigger>
</main>
</body>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Startin’Blox tests - router</title>
<style>
html {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
margin: 1em;
color: #444;
}
</style>
</head>
<body>
<h1>Startin’Blox</h1>
<h2>Home page</h2>
<p><a href="https://startinblox.com/">https://startinblox.com/</a></p>
<h2>Startin’Blox: Router</h2>
<h3>Examples</h3>
<ul>
<li><a href="examples/basic.html">basic</a></li>
</ul>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment