can't resist
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
789 B

<%= form_for @changeset, @action, fn f -> %>
<fieldset>
<%= label f, :name %>
<%= text_input f, :name%>
<%= error_tag f, :name %>
</fieldset>
<fieldset>
<%= label f, :username %>
<%= text_input f, :username %>
<%= error_tag f, :username %>
</fieldset>
<fieldset>
<%= label f, :theme, "Frontend Theme" %>
<%= select f, :theme, ["light", "dark"] %>
<%= error_tag f, :theme %>
</fieldset>
<fieldset>
<%= label f, :token, "API Token" %>
<%= text_input f, :token, readonly: true %>
<%= error_tag f, :token %>
</fieldset>
<fieldset>
<%= label f, :reset_token, "Reset API Token" %>
<%= checkbox f, :reset_token %>
<%= error_tag f, :reset_token %>
</fieldset>
<%= submit "submit", class: "button" %>
<% end %>