Edit profile on its way

This commit is contained in:
Alexandre Bourlier 2018-05-14 21:16:04 +02:00
parent 643db32ed0
commit 61eb9bae4a
6 changed files with 40 additions and 15 deletions

View File

@ -29,6 +29,7 @@
<?php require_once('src/html/dashboard.html'); ?> <?php require_once('src/html/dashboard.html'); ?>
<?php require_once('src/html/members.html'); ?> <?php require_once('src/html/members.html'); ?>
<?php require_once('src/html/member.html'); ?> <?php require_once('src/html/member.html'); ?>
<?php require_once('src/html/edit-profile.html'); ?>
<?php require_once('src/html/projects.html'); ?> <?php require_once('src/html/projects.html'); ?>
<?php require_once('src/html/project.html'); ?> <?php require_once('src/html/project.html'); ?>
<?php require_once('src/html/channels.html'); ?> <?php require_once('src/html/channels.html'); ?>
@ -60,13 +61,13 @@
} }
// Listen for changes // Listen for changes
setInterval(function() { //setInterval(function() {
if (currentRoute != window.location.href) { //if (currentRoute != window.location.href) {
currentRoute = getCurrentRoute(); //currentRoute = getCurrentRoute();
insertChatIfNeeded(); //insertChatIfNeeded();
} //}
}, 15000); //}, 250);
// Inserts a chat in the current view if needed // Inserts a chat in the current view if needed
function insertChatIfNeeded() { function insertChatIfNeeded() {

View File

@ -1,8 +1,23 @@
<div id="dashboard" style="display: none"> <div id="dashboard" style="display: none">
<form> <!--<form>-->
<div class="form-group"> <!--<div class="form-group">-->
<input type="text" class="form-control form-control-sm" id="search-input" placeholder="Recherche" aria-describedby="search-help" autofocus /> <!--<input type="text" class="form-control form-control-sm" id="search-input" placeholder="Recherche" aria-describedby="search-help" autofocus />-->
<small id="search-help" class="form-text text-muted">* parmi les membres, les projets et les groupes de discussion</small> <!--<small id="search-help" class="form-text text-muted">* parmi les membres, les projets et les groupes de discussion</small>-->
<!--</div>-->
<!--</form>-->
<div class="list-condensed">
<ldp-router>
<ldp-route name="edit-profile" id-prefix="<?php echo $sdn; ?>/members/">
<ldp-display
data-src="<?php echo $sdn; ?>/members/1/"
set-name="firstname, name-separator, lastname"
value-name-separator="&nbsp;"
data-fields="avatar, name"
widget-avatar="ldp-display-img"
next="edit-profile"
></ldp-display>
</ldp-route>
</ldp-router>
</div> </div>
</form>
</div> </div>

View File

@ -0,0 +1,8 @@
<div id="edit-profile" style="display: none">
<ldp-form
data-fields=""
bind-resources
></ldp-form>
<h1>BOOM</h1>
</div>

View File

@ -12,10 +12,11 @@ document.addEventListener("DOMContentLoaded", function(event) {
if ((e.keyCode == 75 || e.keyCode == 80) && (e.ctrlKey === true || e.metaKey === true)) { if ((e.keyCode == 75 || e.keyCode == 80) && (e.ctrlKey === true || e.metaKey === true)) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
openSearchBar();
} }
else if (e.keyCode == 27 && navBar.classList.contains("search-mode")) { else if (e.keyCode == 27 && navBar.classList.contains("search-mode")) {
navBar.classList.remove("search-mode"); closeSearchBar();
} }
}); });

View File

@ -99,7 +99,7 @@
i { i {
color: white; color: white;
background-color: $twitter-color; background-color: $hd-color;
&#search-icon { &#search-icon {
display : none; display : none;

View File

@ -1,6 +1,6 @@
$hd-color: rgb(253, 200, 21); $hd-color: rgb(253, 200, 21);
$hd-color-faded: rgba(253, 200, 21, 0.8); $hd-color-faded: rgba(253, 200, 21, 0.8);
$twitter-color: #1DA1F2; $twitter-color: grey;
$menu-height: 46px; $menu-height: 46px;
$menu-font-size: 16px; $menu-font-size: 16px;