participant page update with resizing address
This commit is contained in:
parent
0b13f8638f
commit
7673e5acdb
|
@ -5,4 +5,13 @@ class HomeController < ApplicationController
|
|||
def participant
|
||||
end
|
||||
|
||||
def Employer
|
||||
end
|
||||
|
||||
def Worker
|
||||
end
|
||||
|
||||
def Vendor
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
module WorkerHelper
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
<h1>Employer</h1>
|
|
@ -0,0 +1,52 @@
|
|||
<h1>Participant</h1>
|
||||
|
||||
<div class="container mt-4">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Program</th>
|
||||
<td><input type="text" class="form-control"></td>
|
||||
<th scope="row">MCI</th>
|
||||
<td><input type="text" class="form-control"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Name</th>
|
||||
<td><input type="text" class="form-control"></td>
|
||||
<th scope="row">DOB</th>
|
||||
<td><input type="text" class="form-control"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Address</th>
|
||||
<td><textarea class="form-control autoresize" rows="2"></textarea></td>
|
||||
<th scope="row">SSN</th>
|
||||
<td><input type="text" class="form-control"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Phone</th>
|
||||
<td><input type="tel" class="form-control"></td>
|
||||
<th scope="row">Gender</th>
|
||||
<td><input type="text" class="form-control"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Email</th>
|
||||
<td><input type="email" class="form-control"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
document.querySelectorAll('.autoresize').forEach(function (element) {
|
||||
element.style.overflow = 'hidden';
|
||||
element.addEventListener('input', autoResize, false);
|
||||
});
|
||||
|
||||
function autoResize() {
|
||||
this.style.height = 'auto';
|
||||
this.style.height = (this.scrollHeight) + 'px';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
<h1>Vendor</h1>
|
|
@ -0,0 +1 @@
|
|||
<h1>Worker</h1>
|
|
@ -1,6 +1,9 @@
|
|||
Rails.application.routes.draw do
|
||||
# get 'home/index'
|
||||
get 'home/participant'
|
||||
get 'home/employer'
|
||||
get 'home/worker'
|
||||
get 'home/vendor'
|
||||
root 'home#index'
|
||||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class WorkerControllerTest < ActionDispatch::IntegrationTest
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Loading…
Reference in New Issue