add users controller and intermediate username step

This commit is contained in:
Zachary Chai
2016-10-19 11:47:37 -04:00
parent d26d4a86bd
commit 015dd7cda4
10 changed files with 95 additions and 8 deletions

View File

@ -0,0 +1,15 @@
<div class="col-sm-4 col-sm-offset-4">
<div class="jumbotron">
<h4>Enter Username below</h4>
<%= form_for(user, html: {class: "form-inline"}) do |f| %>
<div class="form-group">
<%= f.text_field :username, placeholder: "Username", class: "form-control input" %>
</div>
<%= f.submit class: "btn btn-success", value: "Save" %>
<% end %>
<div class="description">
<p>This username will be used to identify your personal room</p>
</div>
</div>
</div>

View File

@ -0,0 +1,3 @@
<div class="page-wrapper user edit">
<%= render 'form', user: @user %>
</div>