-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* begin linting views/groups * fix form autocomplete errors
- Loading branch information
1 parent
d0757a4
commit 083d1b8
Showing
6 changed files
with
56 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<li> | ||
<h3><%= group.name %></h3> | ||
<p><b><%= group.assessment_user_data.all.map{|aud| aud.course_user_datum.full_name }.join(", ") %></b></p> | ||
<p><b><%= group.assessment_user_data.all.map{ |aud| aud.course_user_datum.full_name }.join(", ") %></b></p> | ||
<p> | ||
<%= link_to "Ask to Join Group", [:join, @course, @assessment, group], method: :post %> | ||
<%= link_to "Ask to Join Group", join_course_assessment_group_path(@course, @assessment, group), method: :post %> | ||
<% if @cud.instructor then %> | ||
| <%= link_to "View", [@course, @assessment, group] %> | ||
| <%= link_to "Destroy", [@course, @assessment, group], method: :delete, data: { confirm: "Are you sure you want to disband this group?" } %> | ||
| <%= link_to "View", course_assessment_group_path(@course, @assessment, group) %> | ||
| <%= link_to "Destroy", course_assessment_group_path(@course, @assessment, group), | ||
method: :delete, data: { confirm: "Are you sure you want to disband this group?" } %> | ||
<% end %> | ||
</p> | ||
</li> | ||
</li> |
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,15 +1,15 @@ | ||
<%= form_tag [@course, @assessment, @group] do %> | ||
<%= form_tag action: :create do %> | ||
<div class="form-group"> | ||
<label class="control-label" for="group_name">Group Name</label> | ||
<%= text_field_tag :group_name, nil, class: "form-control" %> | ||
<%= text_field_tag :group_name, nil, class: "form-control", autocomplete: "off" %> | ||
<p class="help-block">Set the name of this group.</p> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="control-label" for="member_email">Partner Email</label> | ||
<%= text_field_tag :member_email, nil, class: "form-control" %> | ||
<%= text_field_tag :member_email, nil, class: "form-control", autocomplete: "email" %> | ||
<p class="help-block">The email of your desired partner. They will need to confirm their membership.</p> | ||
</div> | ||
|
||
<%= submit_tag "Create Group", class:"btn btn-primary" %> | ||
<% end %> | ||
<%= submit_tag "Create Group", class: "btn btn-primary" %> | ||
<% end %> |
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