File size: 4,379 Bytes
b9a69cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172

{% extends 'base.html' %}

{% block conteudo %}

<style>

    .container {

    

    margin-top: 100px;

    max-width: 100vh;

}



.form-row{

    background-color: rgba(255, 255, 255, 0.7);

    display: flex;

    flex-direction:row;

    border-radius: 10px;

    margin: 4px;

   

    

}



.form-row label {

    margin-right: 250px;



}





.form-group{

    margin-top: 10px;

    margin-bottom: 20px;

    margin-left: 20px;

}



.labelClass {

    padding-bottom:6px;;

}



textarea {

    width: 100%;

    resize: none;

    padding: 10px;

    box-sizing: border-box;

    

}



.modal {

    display: none;

    position: fixed;

    z-index: 1;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    overflow: auto;

    background-color: rgba(0, 0, 0, 0.4);

  }

  

  .modal-content {

    background-color: #fefefe;

    margin: 15% auto;

    padding: 20px;

    border: 1px solid #888;

    width: 80%;

  }

  

  .close {

    color: #aaa;

    float: right;

    font-size: 28px;

    font-weight: bold;

  }

  

  .close:hover,

  .close:focus {

    color: black;

    text-decoration: none;

    cursor: pointer;

  }

</style>



<div class="container">
    
    <form method="post" action="/new_user">
        <div class="form-group">
            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="labelClass" for="inputEmail4">Nome</label>
                    <input type="text" name="nome" class="form-control" id="inputEmail4" required>
                </div>
            </div>

            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="labelClass" for="inputEmail4">Sobrenome</label>
                    <input type="text" name="sobrenome" class="form-control" id="inputEmail4" placeholder=required>
                </div>
            </div>

            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="labelClass" for="inputEmail4">Email</label>
                    <input type="text" name="email" class="form-control" id="inputEmail4" placeholder=required>
                </div>
            </div>

            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="labelClass" for="inputEmail4">Username</label>
                    <input type="text" name="username" class="form-control" id="inputEmail4" placeholder=required>
                </div>
            </div>
            
            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="labelClass" for="inputEmail4">Senha</label>
                    <input type="text" name="senha" class="form-control" id="inputEmail4"required>
                </div>
            </div>


            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="labelClass" for="inputEmail4">Status</label>
                    <input type="text" name="status" class="form-control" id="inputEmail4"required>
                </div>
            </div>


            <div class="form-row">
                <div class="form-group col-md-6">
                    <label class="labelClass" for="inputEmail4">Tipo de usuário</label>
                    <select class="form-select" name="role" aria-label="Default select example">
                        <option selected>Selecione uma opção</option>
                        <option value="Usuário padrão">Usuário padrão</option>
                        <option value="Administrador">Admin</option>
                    </select>
                </div>
            </div>
            
            <div class="form-row">
                <div class="form-group col-md-6"></div>
                    <button type="submit" id="submitBtn">
                </div>
            </div>

            <div id="myModal" class="modal">
                <div class="modal-content">
                  <span class="close">&times;</span>
                  <p>Sucesso!</p>
                </div>
              </div>
            </div>
            








        </div>         
    </form>  
</div>




{% endblock %}