Hash :
7eb24fc0
Author :
Thomas de Grivel
Date :
2022-08-03T10:27:09
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
<div class="container-fluid">
<h1><%= gettext "New admin" %></h1>
<p>
<%= gettext "Welcome to kmx git." %>
</p>
<p>
<%= gettext "Please create an administrator account." %>
</p>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<%= form_for @changeset, @action, fn f -> %>
<div class="mb-3">
<%= label f, :name, class: "form-label" %>
<%= text_input f, :name, class: "form-control" %>
<%= error_tag f, :name %>
</div>
<div class="mb-3">
<%= label f, :email, class: "form-label" %>
<%= text_input f, :email, class: "form-control" %>
<%= error_tag f, :email %>
</div>
<div class="mb-3">
<%= label f, :slug_, gettext("Login"), class: "form-label" %>
<%= text_input f, :slug_, class: "form-control" %>
<small class="form-text text-muted">Must start with a letter and contain no space.</small>
<%= error_tag f, :slug_ %>
</div>
<div class="mb-3">
<%= label f, :password, class: "form-label" %>
<%= password_input f, :password, class: "form-control" %>
<small class="form-text text-muted">Must contain letters, numbers, special characters and be 12 character long.</small>
<%= error_tag f, :password %>
</div>
<div class="mb-3">
<%= label f, :password_confirmation, class: "form-label" %>
<%= password_input f, :password_confirmation, class: "form-control" %>
<%= error_tag f, :password_confirmation %>
</div>
<div class="mb-3">
<%= submit "Submit", class: "btn btn-primary" %>
</div>
<% end %>
</div>