Files
fb/app_fb/templates/users.html
2018-05-12 04:47:41 +05:30

44 lines
2.4 KiB
HTML

<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<title>Users Manager</title>
</head>
<body>
<h2>Users {{ results | length }} displayed:</h2>
<br>
{% for result in results %}
<div class="panel panel-primary" style="width:300px; float:left; margin-right:10px">
<div class="panel-heading">{{result.name}}</div>
<form action="/api/product" method="POST">
<br><br>
First Name:
<input type="text" name="first_name" value="{{result.first_name}}" required><br>
Last Name:
<input type="text" name="last_name" value="{{result.last_name}}" required><br>
Username:
<input type="text" name="username" value="{{result.username}}" required><br>
Email:
<input type="text" name="email" value="{{result.email}}" required><br>
Password:
<input type="password" name="password" value="{{result.password}}" ><br>
Gender:
<input type="text" name="gender" value="{{result.gender}}" ><br>
Locale:
<input type="text" name="locale" value="{{result.locale}}" ><br>
<!--<input type="text" name="operation_type" value="delete" hidden />-->
<!--<input type="submit" value="update" >-->
<input type="submit" value="delete">
</form>
</div>
{% endfor %}
</body>
</html>