-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
141 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,80 @@ | ||
<div class="max-w-2xl mx-auto p-6 bg-gray-800 rounded-lg shadow-md"> | ||
<h2 class="text-2xl font-bold mb-6 text-lime-200">Sign up</h2> | ||
|
||
<% if Rails.application.config.sign_ups_open %> | ||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "space-y-6" }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "space-y-6" }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
|
||
<div> | ||
<%= f.label :email, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<div> | ||
<%= f.label :email, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :password, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<% if @minimum_password_length %> | ||
<em class="text-gray-400 text-sm">(<%= @minimum_password_length %> characters minimum)</em> | ||
<% end %> | ||
<%= f.password_field :password, autocomplete: "new-password", class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :password, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<% if @minimum_password_length %> | ||
<em class="text-gray-400 text-sm">(<%= @minimum_password_length %> characters minimum)</em> | ||
<% end %> | ||
<%= f.password_field :password, autocomplete: "new-password", class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<div> | ||
<%= f.label :password_confirmation, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :password_confirmation, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<div> | ||
<%= f.label :username, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :username, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :full_name, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :full_name, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :username, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :username, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<div> | ||
<%= f.label :tags, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :tags, value: @user.parsed_tags.join(', '), class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :full_name, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :full_name, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<div> | ||
<%= f.label :avatar, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :avatar, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :tags, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :tags, value: @user.parsed_tags.join(', '), class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<div> | ||
<%= f.label :avatar_border, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.select :avatar_border, options_for_select([ | ||
['White', 'white'], | ||
['Black', 'black'], | ||
['None', 'none'], | ||
['Rainbow', 'rainbow'], | ||
['Rainbow Overlay', 'rainbow-overlay'] | ||
], @user.avatar_border), {}, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :avatar, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :avatar, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<div> | ||
<%= f.label :banner, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :banner, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :banner, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :banner, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<div> | ||
<%= f.label :description, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_area :description, rows: 3, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div> | ||
<%= f.label :description, class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_area :description, rows: 3, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
<!-- Invite code field --> | ||
<div> | ||
<%= f.label :invite_code, "Invite Code", class: 'block text-lime-200 font-semibold mb-2' %> | ||
<%= f.text_field :invite_code, class: 'block w-full px-4 py-2 border border-gray-700 rounded bg-gray-900 text-white focus:outline-none focus:border-lime-500' %> | ||
</div> | ||
|
||
<div class="actions text-center"> | ||
<%= f.submit "Sign up", class: 'bg-lime-500 hover:bg-lime-600 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out focus:outline-none' %> | ||
</div> | ||
<% end %> | ||
<% else %> | ||
<div class="text-center text-red-500"> | ||
<p>Sign-ups are currently disabled.</p> | ||
<div class="actions text-center"> | ||
<%= f.submit "Sign up", class: 'bg-lime-500 hover:bg-lime-600 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out focus:outline-none' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="mt-4 text-center"> | ||
<%= render "devise/shared/links" %> | ||
</div> | ||
<div class="mt-4 text-center"> | ||
<%= render "devise/shared/links" %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.