Added forms to View() views: group, machine, user + comment and indent correctly
This commit is contained in:
parent
a066b4b7c1
commit
e51d56e7a5
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace view\group\form\create;
|
||||
|
||||
use \generic\core\i_view;
|
||||
|
||||
|
||||
class main extends i_view{
|
||||
|
||||
public function __construct(){}
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
<form class='valid'>
|
||||
|
||||
<input id='create_name' type='text' placeholder='Nom'><br>
|
||||
<span class='error-msg create_name'></span><br>
|
||||
|
||||
<select id='create_class'>
|
||||
<option value='-' selected disabled>Type de groupe</option>
|
||||
<option value='0'>utilisateurs</option>
|
||||
<option value='1'>machines</option>
|
||||
</select>
|
||||
|
||||
<span class='error-msg create_class'></span><br>
|
||||
|
||||
|
||||
<button id='create_submit'>Créer</button>
|
||||
|
||||
</form>
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace view\group\form\edit;
|
||||
|
||||
use \generic\core\i_view;
|
||||
|
||||
|
||||
class main extends i_view{
|
||||
|
||||
public function __construct(){}
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
<form class='neutral'>
|
||||
|
||||
<!-- Recherche de groupe -->
|
||||
<input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
|
||||
<input id='edit_search_id' type='hidden' value=''>
|
||||
|
||||
<!-- Indice du resultat -->
|
||||
<span class='edit_search_view'>groupe <span class='edit_search_num'>0</span> sur <span class='edit_search_sum'>0</span></span><br><br>
|
||||
<button id='edit_search_submit' class='search'>Trouver/Suivant</button><br>
|
||||
|
||||
<br><br><hr class='OR' data-label='PUIS' /><br><br>
|
||||
|
||||
<!-- Modification de groupe -->
|
||||
<input id='edit_name' type='text' placeholder='Nom'><br>
|
||||
<span class='error-msg edit_name'></span><br>
|
||||
|
||||
<input id='edit_class' type='text' placeholder='Type de groupe' disabled><br>
|
||||
<button id='edit_submit' disabled>Modifier</button>
|
||||
|
||||
</form>
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace view\group\form\remove;
|
||||
|
||||
use \generic\core\i_view;
|
||||
|
||||
|
||||
class main extends i_view{
|
||||
|
||||
public function __construct(){}
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
<form class='invalid'>
|
||||
|
||||
<!-- Recherche de groupe -->
|
||||
<input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
|
||||
<input id='remove_search_id' type='hidden' value=''>
|
||||
|
||||
<!-- Indice du resultat -->
|
||||
<span class='remove_search_view'>groupe <span class='remove_search_num'>0</span> sur <span class='remove_search_sum'>0</span></span><br><br>
|
||||
<button id='remove_search_submit' class='search'>Trouver/Suivant</button><br>
|
||||
|
||||
<br><br><hr class='OR' data-label='PUIS' /><br><br>
|
||||
|
||||
<!-- Suppression de groupe -->
|
||||
<input id='remove_name' type='text' placeholder='Nom' disabled><br>
|
||||
<input id='remove_class' type='text' placeholder='Type de groupe' disabled><br>
|
||||
<button id='remove_submit' disabled>Supprimer</button>
|
||||
|
||||
</form>
|
|
@ -1,5 +1,9 @@
|
|||
<form class='valid'>
|
||||
|
||||
<input id='create_name' type='text' placeholder='Name'><br>
|
||||
<span class='error-msg create_name'></span><br>
|
||||
|
||||
|
||||
<button id='create_submit'>Créer</button>
|
||||
|
||||
</form>
|
|
@ -1,4 +1,6 @@
|
|||
<form class='neutral'>
|
||||
|
||||
<!-- Recherche de machine -->
|
||||
<input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
|
||||
<input id='edit_search_id' type='hidden' value=''>
|
||||
|
||||
|
@ -8,7 +10,9 @@
|
|||
|
||||
<br><br><hr class='OR' data-label='PUIS' /><br><br>
|
||||
|
||||
<!-- Modification de machine -->
|
||||
<input id='edit_name' type='text' placeholder='Name'><br>
|
||||
<span class='error-msg edit_name'></span><br>
|
||||
<button id='edit_submit' disabled>Modifier</button>
|
||||
|
||||
</form>
|
|
@ -1,4 +1,6 @@
|
|||
<form class='invalid'>
|
||||
|
||||
<!-- Recherche de machine -->
|
||||
<input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
|
||||
<input id='remove_search_id' type='hidden' value=''>
|
||||
|
||||
|
@ -8,6 +10,7 @@
|
|||
|
||||
<br><br><hr class='OR' data-label='PUIS' /><br><br>
|
||||
|
||||
<!-- Suppression de machine -->
|
||||
<input id='remove_name' type='text' placeholder='Name'><br>
|
||||
<button id='remove_submit' disabled>Supprimer</button>
|
||||
</form>
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace view\user\form\create;
|
||||
|
||||
use \generic\core\i_view;
|
||||
|
||||
|
||||
class main extends i_view{
|
||||
|
||||
public function __construct(){}
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
<form class='valid'>
|
||||
|
||||
<input id='create_code' type='text' placeholder='CO-DE-RF-ID'><br>
|
||||
<span class='error-msg create_code'></span><br>
|
||||
|
||||
<input id='create_username' type='text' placeholder='Username'><br>
|
||||
<span class='error-msg create_username'></span><br>
|
||||
|
||||
<input id='create_firstname' type='text' placeholder='Firstname'><br>
|
||||
<span class='error-msg create_firstname'></span><br>
|
||||
|
||||
<input id='create_lastname' type='text' placeholder='Lastname'><br>
|
||||
<span class='error-msg create_lastname'></span><br>
|
||||
|
||||
<input id='create_mail' type='text' placeholder='Mail'><br>
|
||||
<span class='error-msg create_mail'></span><br>
|
||||
|
||||
|
||||
<button id='create_submit'>Créer</button>
|
||||
|
||||
</form>
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace view\user\form\edit;
|
||||
|
||||
use \generic\core\i_view;
|
||||
|
||||
|
||||
class main extends i_view{
|
||||
|
||||
public function __construct(){}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
<form class='neutral'>
|
||||
|
||||
<!-- Recherche d'utilisateur -->
|
||||
<input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
|
||||
<input id='edit_search_id' type='hidden' value=''>
|
||||
|
||||
<!-- Indice du resultat -->
|
||||
<span class='edit_search_view'>utilisateur <span class='edit_search_num'>0</span> sur <span class='edit_search_sum'>0</span></span><br><br>
|
||||
<button id='edit_search_submit' class='search'>Trouver/Suivant</button><br>
|
||||
|
||||
<br><br><hr class='OR' data-label='PUIS' /><br><br>
|
||||
|
||||
<!-- Modification d'utilisateur -->
|
||||
<input id='edit_code' type='text' placeholder='CO-DE-RF-ID'><br>
|
||||
<span class='error-msg edit_code'></span><br>
|
||||
<input id='edit_username' type='text' placeholder='Username'><br>
|
||||
<span class='error-msg edit_username'></span><br>
|
||||
<input id='edit_firstname' type='text' placeholder='Firstname'><br>
|
||||
<span class='error-msg edit_firstname'></span><br>
|
||||
<input id='edit_lastname' type='text' placeholder='Lastname'><br>
|
||||
<span class='error-msg edit_lastname'></span><br>
|
||||
<input id='edit_mail' type='text' placeholder='Mail'><br>
|
||||
<span class='error-msg edit_mail'></span><br>
|
||||
<button id='edit_submit' disabled>Modifier</button>
|
||||
|
||||
</form>
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace view\user\form\remove;
|
||||
|
||||
use \generic\core\i_view;
|
||||
|
||||
|
||||
class main extends i_view{
|
||||
|
||||
public function __construct(){}
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
<form class='invalid'>
|
||||
|
||||
<!-- Recherche d'utilisateur -->
|
||||
<input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br>
|
||||
<input id='remove_search_id' type='hidden' value=''>
|
||||
|
||||
<!-- Indice du resultat -->
|
||||
<span class='remove_search_view'>utilisateur <span class='remove_search_num'>0</span> sur <span class='remove_search_sum'>0</span></span><br><br>
|
||||
<button id='remove_search_submit' class='search'>Trouver/Suivant</button><br>
|
||||
|
||||
<br><br><hr class='OR' data-label='PUIS' /><br><br>
|
||||
|
||||
<!-- Suppression d'utilisateur -->
|
||||
<input id='remove_code' type='text' placeholder='Code'><br>
|
||||
<span class='error-msg remove_code'></span><br>
|
||||
<input id='remove_username' type='text' placeholder='Username'><br>
|
||||
<span class='error-msg remove_username'></span><br>
|
||||
<button id='remove_submit' disabled>Supprimer</button>
|
||||
|
||||
</form>
|
|
@ -80,20 +80,8 @@
|
|||
=========================================================*/
|
||||
echo "<section data-sublink='create'>";
|
||||
|
||||
echo "<form class='valid'>";
|
||||
echo "<input id='create_name' type='text' placeholder='Nom'><br>";
|
||||
echo "<span class='error-msg create_name'></span><br>";
|
||||
|
||||
echo "<select id='create_class'>
|
||||
<option value='-' selected disabled>Type de groupe</option>
|
||||
<option value='0'>utilisateurs</option>
|
||||
<option value='1'>machines</option>
|
||||
</select>";
|
||||
|
||||
echo "<span class='error-msg create_class'></span><br>";
|
||||
|
||||
echo "<button id='create_submit'>Créer</button>";
|
||||
echo "</form>";
|
||||
$view = View::load('group.form.create');
|
||||
echo $view->render();
|
||||
|
||||
echo '</section>';
|
||||
|
||||
|
@ -112,22 +100,8 @@
|
|||
=========================================================*/
|
||||
echo "<section data-sublink='remove'>";
|
||||
|
||||
echo "<form class='invalid'>";
|
||||
// Recherche de groupe
|
||||
echo "<input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br>";
|
||||
echo "<input id='remove_search_id' type='hidden' value=''>";
|
||||
// Indice du resultat
|
||||
echo "<span class='remove_search_view'>groupe <span class='remove_search_num'>0</span> sur <span class='remove_search_sum'>0</span></span><br><br>";
|
||||
echo "<button id='remove_search_submit' class='search'>Trouver/Suivant</button><br>";
|
||||
|
||||
|
||||
echo "<br><br><hr class='OR' data-label='PUIS' /><br><br>";
|
||||
|
||||
// Suppression de groupe
|
||||
echo "<input id='remove_name' type='text' placeholder='Nom' disabled><br>";
|
||||
echo "<input id='remove_class' type='text' placeholder='Type de groupe' disabled><br>";
|
||||
echo "<button id='remove_submit' disabled>Supprimer</button>";
|
||||
echo "</form>";
|
||||
$view = View::load('group.form.remove');
|
||||
echo $view->render();
|
||||
|
||||
echo '</section>';
|
||||
|
||||
|
@ -146,21 +120,8 @@
|
|||
=========================================================*/
|
||||
echo "<section data-sublink='edit'>";
|
||||
|
||||
echo "<form class='neutral'>";
|
||||
echo "<input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br>";
|
||||
echo "<input id='edit_search_id' type='hidden' value=''>";
|
||||
// Indice du resultat
|
||||
echo "<span class='edit_search_view'>groupe <span class='edit_search_num'>0</span> sur <span class='edit_search_sum'>0</span></span><br><br>";
|
||||
echo "<button id='edit_search_submit' class='search'>Trouver/Suivant</button><br>";
|
||||
|
||||
echo "<br><br><hr class='OR' data-label='PUIS' /><br><br>";
|
||||
|
||||
echo "<input id='edit_name' type='text' placeholder='Nom'><br>";
|
||||
echo "<span class='error-msg edit_name'></span><br>";
|
||||
|
||||
echo "<input id='edit_class' type='text' placeholder='Type de groupe' disabled><br>";
|
||||
echo "<button id='edit_submit' disabled>Modifier</button>";
|
||||
echo "</form>";
|
||||
$view = View::load('group.form.edit');
|
||||
echo $view->render();
|
||||
|
||||
echo '</section>';
|
||||
|
||||
|
|
|
@ -71,19 +71,8 @@
|
|||
=========================================================*/
|
||||
echo "<section data-sublink='create'>";
|
||||
|
||||
echo "<form class='valid'>";
|
||||
echo "<input id='create_code' type='text' placeholder='CO-DE-RF-ID'><br>";
|
||||
echo "<span class='error-msg create_code'></span><br>";
|
||||
echo "<input id='create_username' type='text' placeholder='Username'><br>";
|
||||
echo "<span class='error-msg create_username'></span><br>";
|
||||
echo "<input id='create_firstname' type='text' placeholder='Firstname'><br>";
|
||||
echo "<span class='error-msg create_firstname'></span><br>";
|
||||
echo "<input id='create_lastname' type='text' placeholder='Lastname'><br>";
|
||||
echo "<span class='error-msg create_lastname'></span><br>";
|
||||
echo "<input id='create_mail' type='text' placeholder='Mail'><br>";
|
||||
echo "<span class='error-msg create_mail'></span><br>";
|
||||
echo "<button id='create_submit'>Créer</button>";
|
||||
echo "</form>";
|
||||
$view = View::load('user.form.create');
|
||||
echo $view->render();
|
||||
|
||||
echo '</section>';
|
||||
|
||||
|
@ -102,24 +91,8 @@
|
|||
=========================================================*/
|
||||
echo "<section data-sublink='remove'>";
|
||||
|
||||
echo "<form class='invalid'>";
|
||||
// Recherche d'utilisateur
|
||||
echo "<input id='remove_search_keyword' type='text' class='search' placeholder='Recherche...'><br>";
|
||||
echo "<input id='remove_search_id' type='hidden' value=''>";
|
||||
// Indice du resultat
|
||||
echo "<span class='remove_search_view'>utilisateur <span class='remove_search_num'>0</span> sur <span class='remove_search_sum'>0</span></span><br><br>";
|
||||
echo "<button id='remove_search_submit' class='search'>Trouver/Suivant</button><br>";
|
||||
|
||||
|
||||
echo "<br><br><hr class='OR' data-label='PUIS' /><br><br>";
|
||||
|
||||
// Suppression d'utilisateur
|
||||
echo "<input id='remove_code' type='text' placeholder='Code'><br>";
|
||||
echo "<span class='error-msg remove_code'></span><br>";
|
||||
echo "<input id='remove_username' type='text' placeholder='Username'><br>";
|
||||
echo "<span class='error-msg remove_username'></span><br>";
|
||||
echo "<button id='remove_submit' disabled>Supprimer</button>";
|
||||
echo "</form>";
|
||||
$view = View::load('user.form.remove');
|
||||
echo $view->render();
|
||||
|
||||
echo '</section>';
|
||||
|
||||
|
@ -138,27 +111,8 @@
|
|||
=========================================================*/
|
||||
echo "<section data-sublink='edit'>";
|
||||
|
||||
echo "<form class='neutral'>";
|
||||
echo "<input id='edit_search_keyword' type='text' class='search' placeholder='Recherche...'><br>";
|
||||
echo "<input id='edit_search_id' type='hidden' value=''>";
|
||||
// Indice du resultat
|
||||
echo "<span class='edit_search_view'>utilisateur <span class='edit_search_num'>0</span> sur <span class='edit_search_sum'>0</span></span><br><br>";
|
||||
echo "<button id='edit_search_submit' class='search'>Trouver/Suivant</button><br>";
|
||||
|
||||
echo "<br><br><hr class='OR' data-label='PUIS' /><br><br>";
|
||||
|
||||
echo "<input id='edit_code' type='text' placeholder='CO-DE-RF-ID'><br>";
|
||||
echo "<span class='error-msg edit_code'></span><br>";
|
||||
echo "<input id='edit_username' type='text' placeholder='Username'><br>";
|
||||
echo "<span class='error-msg edit_username'></span><br>";
|
||||
echo "<input id='edit_firstname' type='text' placeholder='Firstname'><br>";
|
||||
echo "<span class='error-msg edit_firstname'></span><br>";
|
||||
echo "<input id='edit_lastname' type='text' placeholder='Lastname'><br>";
|
||||
echo "<span class='error-msg edit_lastname'></span><br>";
|
||||
echo "<input id='edit_mail' type='text' placeholder='Mail'><br>";
|
||||
echo "<span class='error-msg edit_mail'></span><br>";
|
||||
echo "<button id='edit_submit' disabled>Modifier</button>";
|
||||
echo "</form>";
|
||||
$view = View::load('user.form.edit');
|
||||
echo $view->render();
|
||||
|
||||
echo '</section>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue