forked from External/greenlight
		
	add users controller and intermediate username step
This commit is contained in:
		
							
								
								
									
										15
									
								
								app/views/users/_form.html.erb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								app/views/users/_form.html.erb
									
									
									
									
									
										Normal 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>
 | 
			
		||||
							
								
								
									
										3
									
								
								app/views/users/edit.html.erb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								app/views/users/edit.html.erb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
<div class="page-wrapper user edit">
 | 
			
		||||
  <%= render 'form', user: @user %>
 | 
			
		||||
</div>
 | 
			
		||||
		Reference in New Issue
	
	Block a user